Blame SOURCES/coreutils-i18n-fix-unexpand.patch

e63663
From 02424bfcd719bbaa695f4e1c3ef17ad91b0d23c0 Mon Sep 17 00:00:00 2001
e63663
From: Lubomir Rintel <lkundrak@v3.sk>
e63663
Date: Thu, 28 Jan 2016 20:57:22 +0100
e63663
Subject: [PATCH] unexpand: fix blank line handling
e63663
e63663
  echo '' |./src/unexpand -a
e63663
e63663
Really?
e63663
---
e63663
 src/unexpand.c | 2 +-
e63663
 1 file changed, 1 insertion(+), 1 deletion(-)
e63663
e63663
diff --git a/src/unexpand.c b/src/unexpand.c
e63663
index 569a7ee..3bbbd66 100644
e63663
--- a/src/unexpand.c
e63663
+++ b/src/unexpand.c
e63663
@@ -233,7 +233,7 @@ unexpand (void)
e63663
                   next_tab_column = column;
e63663
                   tab_index -= !!tab_index;
e63663
                 }
e63663
-              else
e63663
+              else if (!mb_iseq (c, '\n'))
e63663
                 {
e63663
                   column += mb_width (c);
e63663
                   if (!column)
e63663
-- 
e63663
2.7.4
e63663