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

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