Commit Graph

123 Commits

Author SHA1 Message Date
Kamil Dudka 4dcaf08c8b Resolves: #2112870 - fix regression introduced in the last commit 2022-08-02 14:19:10 +02:00
Kamil Dudka 26b2c3ae54 Related: #2112870 - reflect review comments on the previous change 2022-08-02 11:08:50 +02:00
Kamil Dudka e0f6afe5e6 Resolves: #2112870 - prevent unexpand from failing on control characters 2022-08-01 17:17:07 +02:00
Kamil Dudka 9325dbbef7 new upstream release 9.1 2022-04-19 12:45:57 +02:00
Kamil Dudka 97967f71c8 coreutils-i18n.patch: synchronize the patch with openSUSE 2021-10-04 09:01:57 +02:00
Kamil Dudka 59649f0733 coreutils-i18n.patch: squash all i18n patches together
... so that we can easily synchronize the patch with openSUSE
2021-10-04 08:57:28 +02:00
Bernhard Voelker 4a2b84513e make upstream test-suite work again with i18n patch
New tests in tests/pr/pr-tests.pl have names which - with the suffix
"-mb" for the i18n test - become "too long (>30)".  I adjusted
'tests/Coreutils.pm' accordingly.
2021-10-04 08:54:26 +02:00
Kamil Dudka baf6440388 new upstream release 9.0 2021-10-04 08:54:26 +02:00
Kamil Dudka d27f8523e2 uniq: remove collation handling as required by newer POSIX
Related upstream commit:
https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=8e81d44b5

Related Austin Group ticket:
https://www.austingroupbugs.net/view.php?id=963

Patch provided by Bernhard Voelker.
2020-03-11 14:20:22 +01:00
Kamil Dudka b0dc3833bf adapt i18n patch for the new release 2020-03-05 16:51:18 +01:00
Kamil Dudka 5637e2b274 new upstream release 8.31 2019-03-11 12:25:47 +01:00
Bernhard Voelker 822c7685b5 sync i18n patches with Suse
- coreutils-i18n-suse-merge.patch:
  * src/exand.c,src/unexpand.c: Avoid -Wcomment warning.
  * src/cut.c (cut_characters_or_cut_bytes_no_split): Change idx from size_t
    to uintmax_t type to avoid a regression on i586, armv7l and ppc.
    Compare upstream, non-MB commit:
      https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=d1a754c8272
    (cut_fields_mb): Likewise for field_idx.
  * tests/misc/cut.pl: Remove downstream tweaks as upstream MB tests are
     working since a while.
2018-07-04 13:02:12 +02:00
Kamil Dudka 2d00e2bb9a new upstream release 8.28 2017-09-04 11:43:42 +02:00
Kamil Dudka 7a7c1a231c new upstream release 8.27 2017-03-09 09:57:09 +01:00
Kamil Dudka 8d9eac4093 new upstream release 8.26 2016-12-01 19:14:56 +01:00
Kamil Dudka d3849ced08 fix patches such that they apply without offset 2016-07-14 16:29:59 +02:00
Ondrej Oprala ab00e1ea64 Adjust the i18n patch for coreutils-8.25 2016-01-22 14:58:03 +01:00
Ondřej Vašík 7d9c9afa38 Initial commit for coreutils 8.25 ... still need to fix two failing tests before build (likely i18n stuff) 2016-01-20 16:43:39 +01:00
Ondrej Oprala 01067b2813 Use the new i18n implementation for the cut utility 2016-01-15 10:20:05 +01:00
Ondrej Oprala 32b1e5a154 Use the new i18n implementation for expand/unexpand 2015-12-01 11:20:49 +01:00
Kamil Dudka c7c3ee3fab Resolves: #1259942 - fix memory leak in sort/I18N
Patches written by Pádraig.

Note that the corresponding i18n/sort-month test was not included
because it breaks unless sort is compiled -Dlint and we do not want
to decrease performance of the resulting RPMs (and valgrind is not
installed in production buildroots anyway).
2015-09-16 20:09:55 +02:00
Ondřej Vašík 7b7a0554fb use newer version of sort/I18N fix for CVE-2015-4041 and CVE-2015-4042 2015-07-16 10:35:36 +02:00
Ondřej Vašík 3775f446fe new upstream release 8.24 2015-07-05 09:17:02 +02:00
Ondrej Oprala 7adccbb026 sort - fix buffer overflow in some case conversions
- patch by Pádraig Brady
2015-05-13 10:53:55 +02:00
Ondřej Vašík cae27396ec fix the sorting in multibyte locales (NUL-terminate sort keys) - patch by Andreas Schwab (#1146185) 2014-10-01 14:49:30 +02:00
Ondřej Vašík 9c33d82fb4 new upstream release 8.23, synchronize the old differences in ls SELinux options with upstream 2014-07-22 14:01:39 +02:00
Ondřej Vašík 72a0b599c4 Fix the i18n cut optimization restriction (we need UTF8 to grant uniqueness of characters and using strchr() approach), unset the unnecessary envvars after colorls scripts(#1051703) 2014-01-13 12:49:45 +01:00
Ondrej Oprala be3c926a11 Limit the cut optimizations to UTF-8 locales only 2014-01-10 16:06:15 +01:00
Ondřej Vašík 02d5a162e7 Adjust the patch 2014-01-08 14:55:05 +01:00
Bernhard Voelker dc1142233b i18n patch: simplify multi-byte handling in uniq
* src/uniq.c (check_file): Instead of copying the whole code, simply
determine the value of 'new_group' by invoking different_multi in
the multi-byte case.
2014-01-08 14:54:22 +01:00
Bernhard Voelker e241867dd1 i18n patch: avoid test failure for uniq's 145-mb test case
* tests.misc/uniq.pl: For comparing the stderr message with the
expected result, all multibyte-typical ‘...’ must be replaced
by '...'.  Add a ERR_SUBST expression to do that.
2014-01-08 13:59:00 +01:00
Ondřej Vašík ff51f0cc5e Rediff the changes 2014-01-08 13:58:02 +01:00
Bernhard Voelker ef63c71412 maint: avoid compiler warnings introduced by i18n patch
* src/cut.c (convfail,CONVFAIL): Change to bool to avoid a GCC
warning about signed vs. unsigned.  Also avoid "set but not used"
of convfail in cut_characters_or_cut_bytes_no_split.
(cut_fields_mb): Fix indentation.

* src/expand.c: Add include for wctype.h to declare isblank().

* src/fold.c (fold_file): Add "const" attribute to 'filename' parameter
to avoid "const cast away" in call in main().

* src/join.c (xfields_multibyte): Remove unused variable 't'.
(keycmp): Evaluate the return value of wcrtomb().  Furthermore,
when copying 'beg' to 'copy' array elements, remove the unnecessary
cast to unsigned.
(main): When assigning the newline string to 'newtab', cast away the
implicit const.

* src/pr.c: Remove the unneeded include of wctype.h and the define
of iswprint().
(print_stored): Add the unsigned qualifier to 'first' and 'last' to
avoid a signedness warning.

* src/sort.c (getmonth_mb): Cast away the 'const' qualifier of 's'
when assigning to *ea.

* src/uniq.c (different_multi): Evaluate the return result of wcrtomb();
Add the include of assert.h for that.
2014-01-08 13:48:41 +01:00
Bernhard Voelker 963813cd96 i18n patch: fix wrongly merged code in cut.c
* src/cut.c (cut_characters_or_cut_bytes_no_split): Move setting
of print_delimiter into the correct scope.
2014-01-08 13:17:10 +01:00
Ondrej Oprala 45bd042713 Related:#1021403 - Don't use cut mb path if not necessary 2014-01-08 13:01:49 +01:00
Ondrej Oprala 9b303ebcee Fix sorting by non-first field (#1003544) 2014-01-06 11:49:31 +01:00
Ondrej Oprala d6d7448c6a reverted an old change and constricted it's condition, turned off two multibyte tests (wrong strcoll return value) 2014-01-02 21:29:29 +01:00
Ondřej Vašík 94edc2ddc8 Fix the sigabrt caused by 8.22-2 2013-12-22 16:39:13 +01:00
Ondřej Vašík f1ce0c9000 reset buffer before copying to prevent some rare cases of invalid output in join and uniq(#1036289) 2013-12-19 11:09:01 +01:00
Ondřej Vašík 6f9637e525 cut - Fix the variables in multibyte path to work on 64 bit 2013-12-17 22:24:10 +01:00
Ondřej Vašík 8ff0950897 fix uniq group support in multibyte 2013-12-16 17:48:21 +01:00
Ondřej Vašík a1f9baa6b8 Fix the i18n path in cut.c 2013-12-15 09:05:15 +01:00
Ondřej Vašík bb33bc40ad New upstream version 8.22, rediff, adjusting i18n patch to work after upstream optimizations, will investigate cut.pl before build (failing df symlink check is not a regression) 2013-12-14 18:41:07 +01:00
Ondřej Vašík 595c0722d7 skip output-is-input-mb.p test - failing on armv7l (reported by B.Voelker) 2013-12-12 13:34:32 +01:00
Ondřej Vašík b9de06b267 Remove no longer needed files in coreutils-i18n testsuite 2013-12-02 10:53:06 +01:00
Ondřej Vašík cc8ce57be2 Enable cut and sort-merge perl tests for multibyte as well 2013-11-28 01:35:10 +01:00
Ondřej Vašík 3e3be79dfd turn on the multibyte path in the testsuite to cover i18n regressions 2013-11-28 01:24:16 +01:00
Ondřej Vašík 32c6651930 pr -e, with a mix of backspaces and TABs, could corrupt the heap in multibyte locales (analyzed by J.Koncicky) 2013-08-15 13:26:11 +02:00
Ondrej Oprala 0dcc5a0d5e sort: fix multibyte incompabilities (#821264) 2013-08-14 19:01:16 +02:00
Ondřej Vašík bdd83b2e69 merge changes 2013-02-20 16:34:53 +01:00