characters (brc#2112870) (bsc#1202029)

OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=336
This commit is contained in:
Dirk Mueller 2022-08-02 10:55:51 +00:00 committed by Git OBS Bridge
parent 03bb9aece5
commit 16c285303a
2 changed files with 2 additions and 2 deletions

View File

@ -4283,7 +4283,7 @@ index 7d6100f..04cd646 100644
- column++;
+ /* mb_width() returns 0 for control characters */
+ const int width = mb_width (c);
+ column += (width) ? width : 1;
+ column += MIN(1, width);
if (!column)
die (EXIT_FAILURE, 0, _("input line is too long"));
}

View File

@ -2,7 +2,7 @@
Mon Aug 1 21:16:27 UTC 2022 - Dirk Müller <dmueller@suse.com>
- refresh coreutils-i18n.patch to prevent unexpand from failing on control
characters (brc#2112870)
characters (brc#2112870) (bsc#1202029)
- extend psuffix handling to be quilt(1) compatible
-------------------------------------------------------------------