Resolves: #2112870 - make the last fix actually effective

This commit is contained in:
Kamil Dudka 2022-08-02 14:20:57 +02:00
parent d559e8c810
commit 98f2693202
2 changed files with 5 additions and 2 deletions

View File

@ -4141,7 +4141,7 @@ index cec392d..483f0ef 100644
- column++; - column++;
+ /* mb_width() returns 0 for control characters */ + /* mb_width() returns 0 for control characters */
+ const int width = mb_width (c); + const int width = mb_width (c);
+ column += MIN(1, width); + column += MAX(1, width);
if (!column) if (!column)
die (EXIT_FAILURE, 0, _("input line is too long")); die (EXIT_FAILURE, 0, _("input line is too long"));
} }

View File

@ -1,7 +1,7 @@
Summary: A set of basic GNU tools commonly used in shell scripts Summary: A set of basic GNU tools commonly used in shell scripts
Name: coreutils Name: coreutils
Version: 9.0 Version: 9.0
Release: 6%{?dist} Release: 7%{?dist}
License: GPLv3+ License: GPLv3+
Url: https://www.gnu.org/software/coreutils/ Url: https://www.gnu.org/software/coreutils/
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
@ -269,6 +269,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%license COPYING %license COPYING
%changelog %changelog
* Mon Aug 01 2022 Kamil Dudka <kdudka@redhat.com> - 9.0-7
- make the last fix actually effective (#2112870)
* Mon Aug 01 2022 Kamil Dudka <kdudka@redhat.com> - 9.0-6 * Mon Aug 01 2022 Kamil Dudka <kdudka@redhat.com> - 9.0-6
- prevent unexpand from failing on control characters (#2112870) - prevent unexpand from failing on control characters (#2112870)