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

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