coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ls: use right-aligned abbreviated month names


From: Lion Yang
Subject: [PATCH] ls: use right-aligned abbreviated month names
Date: Sat, 16 Feb 2019 02:03:41 +0800

* src/ls.c: Use right-alignment for the list of months
to make it more visually aligned. Locales which have names
with fixed lengths will not be affected.
---
 src/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ls.c b/src/ls.c
index 243c186..e73e29a 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1132,7 +1132,7 @@ abmon_init (char abmon[12][ABFORMAT_SIZE])
           if (strchr (abbr, '%'))
             return false;
           size_t req = mbsalign (abbr, abmon[i], ABFORMAT_SIZE,
-                                 &width, MBS_ALIGN_LEFT, 0);
+                                 &width, MBS_ALIGN_RIGHT, 0);
           if (! (req < ABFORMAT_SIZE))
             return false;
           required_mon_width = MAX (required_mon_width, width);
--
2.18.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]