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

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