coreutils
[Top][All Lists]
Advanced

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

Dates in coreutils with zh_CN (simplified chinese) locales


From: Ondřej Vašík
Subject: Dates in coreutils with zh_CN (simplified chinese) locales
Date: Tue, 22 Mar 2016 15:28:25 +0100

Hi,
as reported in https://bugzilla.redhat.com/show_bug.cgi?id=1319594 , ls
-lh shows unexpected date format in simplified chinese.

When user executes "ls -lh" in Simplified Chinese locale, the output is:
$ ls -lh
总用量 168K
-rw-rw-r--. 1 guest guest 165K 3月  21 14:27 coreutils.po

He expects it to be 
Expected results:
总用量 168K
-rw-rw-r--. 1 guest guest 165K 3月21日 14:27 coreutils.po

Command ls uses "%b %e %H:%M" format for dates. %b means locale abbreviated 
name of month
, %e means space padded day of month (no locales mentioned there). This may be 
the reason,
but I'm not sure what's the upstream position here.

In addition, when using 
LC_ALL=zh_CN date , it shows the "month" chinese letter there as expected - 
using nl_langinfo().

What's your opinion? Where should we request such change (if anywhere)?
glibc? Coreutils translation project? Or not really a bug?

Regards,
       Ondrej






reply via email to

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