Commit graph

137 commits

Author SHA1 Message Date
Lukáš Zaoral
eb04a0fe33
rebase to latest upstream release
Resolves: rhbz#2413803
2025-11-26 14:54:16 +01:00
Lukáš Zaoral
0095d94d91
tail: fix tailing larger number of lines in regular files
Resolves: rhbz#2398008
2025-09-25 10:23:54 +02:00
Lukáš Zaoral
20976b8be8
rebase to latest upstream release
- remove downstream patch for selinux options deprecated since 2009

Resolves: rhbz#2397467
2025-09-24 10:00:43 +02:00
Lukáš Zaoral
c3c18147bd
stty: add support for arbitrary baud rates
Resolves: rhbz#2375439
2025-06-30 12:36:00 +02:00
Lukáš Zaoral
e454479c5c
sort: fix buffer under-read
Resolves: CVE-2025-5278
2025-05-28 09:40:47 +02:00
Lukáš Zaoral
fdfe50c891
rebase to latest upstream release
Resolves: rhbz#2358624
2025-04-10 10:44:55 +02:00
Lukáš Zaoral
ec87f84093
rebase to latest upstream version
Resolves: rhbz#2338620
2025-01-20 12:26:44 +01:00
Lukáš Zaoral
8080f5a15a
fix fold -b with UTF8 locale
Fixes the following incorrect behaviour of fold caused by the i18n patch:
```
$ LC_ALL=en_US.UTF-8 fold -b -w6 <<<  $'1234567890\nabcdefghij\n1234567890\n'
123456
7890
a
bcdefg
hij
12
345678
90
```

Fixes: 97967f71c8 ("coreutils-i18n.patch: synchronize the patch with openSUSE")
Resolves: RHE L-60295
2024-09-27 10:31:35 +02:00
Sohum Mendon
e02261a471
Fix fold exit status for nonexistent files
Resolves: rhbz#2296201
2024-07-15 10:39:40 +02:00
Lukáš Zaoral
a91df5db11
rebase to latest upstream version
- sync i18n patch with SUSE (Kudos to Berny Völker!)
- add some test dependencies to execute additional part of the upstream test-suite

Resolves: rhbz#2272063
2024-04-02 15:13:14 +02:00
Lukáš Zaoral
bf7dfdb2ce
fix compilation on i686 2024-01-18 16:52:09 +01:00
Lukáš Zaoral
bf0817f5a5
new upstream release 9.4
- enable integration with systemd
- fix the license field

Resolves: rhbz#2235759
2023-09-15 15:52:15 +02:00
Kamil Dudka
43d181cda7 new upstream release 9.2 2023-03-22 10:55:08 +01:00
Kamil Dudka
f3c6ff7e2c Related: #2112870 - improve handling of control characters in unexpand 2022-08-08 12:47:47 +02:00
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