Commit Graph

113 Commits

Author SHA1 Message Date
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
Ondřej Vašík
1801957473 fix multibyte issue in unexpand(by R.Kollar, #821262) 2013-02-20 16:33:47 +01:00
Ondrej Oprala
1812652505 fix sort-mb-tests.sh test (B.Voelker) 2013-02-18 18:31:54 +01:00
Mark Wielaard
970e32111e fix coreutils-i18n.patch to terminate mbdelim string (#911929)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
2013-02-18 10:32:30 +01:00
Ondřej Vašík
4c4be9e1c9 new upstream release 8.21, update patches 2013-02-15 17:50:47 +01:00
Ondrej Oprala
9ae2bc3ca1 add missing sort-mb-tests.sh to local.mk 2013-02-08 14:55:22 +01:00
Ondřej Vašík
5089cf4365 Fix multiple segmantation faults in i18n patch (by SUSE) - (#869442, #902917) 2013-01-23 10:04:52 +01:00
Ondřej Vašík
8b177c8f26 Update patches for new-upstream release 8.20, please DO NOT BUILD - no su 2012-10-27 21:14:41 +02:00
Ondřej Vašík
fa6f383f16 fix multibyte issues in cut and expand (M.Briza, #821260) 2012-08-20 13:57:53 +02:00
Ondřej Vašík
89d1aa92a0 New upstream release changes, su/runuser ones just commented out atm, don't build 2012-08-13 00:14:40 +02:00
Ondřej Vašík
315471e18a new upstream release 8.17, defuzz patches 2012-05-11 09:58:08 +02:00