]> git.ipfire.org Git - ipfire-3.x.git/blame - coreutils/patches/coreutils-i18n-fix-unexpand.patch
coreutils: Update to 8.31
[ipfire-3.x.git] / coreutils / patches / coreutils-i18n-fix-unexpand.patch
CommitLineData
e8da1929
SS
1From 02424bfcd719bbaa695f4e1c3ef17ad91b0d23c0 Mon Sep 17 00:00:00 2001
2From: Lubomir Rintel <lkundrak@v3.sk>
3Date: Thu, 28 Jan 2016 20:57:22 +0100
4Subject: [PATCH] unexpand: fix blank line handling
5
6 echo '' |./src/unexpand -a
7
8Really?
9---
10 src/unexpand.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/unexpand.c b/src/unexpand.c
14index 569a7ee..3bbbd66 100644
15--- a/src/unexpand.c
16+++ b/src/unexpand.c
17@@ -233,7 +233,7 @@ unexpand (void)
18 next_tab_column = column;
19 tab_index -= !!tab_index;
20 }
21- else
22+ else if (!mb_iseq (c, '\n'))
23 {
24 column += mb_width (c);
25 if (!column)
26--
272.7.4
28