From 16c285303a208230afe800fd94d6e4ab9b1b6d89164ad00ba52908306521dda2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Aug 2022 10:55:51 +0000 Subject: [PATCH] characters (brc#2112870) (bsc#1202029) OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=336 --- coreutils-i18n.patch | 2 +- coreutils.changes | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch index d492aad..470e79f 100644 --- a/coreutils-i18n.patch +++ b/coreutils-i18n.patch @@ -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")); } diff --git a/coreutils.changes b/coreutils.changes index 653f13e..0d174e0 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -2,7 +2,7 @@ Mon Aug 1 21:16:27 UTC 2022 - Dirk Müller - 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 -------------------------------------------------------------------