Bug 144845

Summary: i18n: inconsistent date format in ls -l command in Simplified Chinese
Product: [Fedora] Fedora Reporter: Mitrophan Chin <stmitrophan>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.2.1-37 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-13 11:37:18 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
changed the msgstr for src/ls.c:648 and src/ls.c:656 none

Description Mitrophan Chin 2005-01-11 17:11:42 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
ls -l in Simplified Chinese locale, gives previous year's datestamp
hyphenated YYYY-MM-DD, and it gives current year's datestamp as Month
name DD HH:MM and also it doesn't justify both formats to same width
for a cleaner output, like in the English locale. The datestamp should
be same width for both current and previous years' dates to make it
nicer for the eyes, and use the Chinese characters for year month and
day after each of the numerals, YYYY MM DD. Spacing is not necessary
between YYYYMMDD since Chinese doesn't use space to delineate words,
other than to line up the columns.

Version-Release number of selected component (if applicable):
coreutils-5.2.1-31

How reproducible:
Always

Steps to Reproduce:
1. login in Simplified Chinese local
2. cd /etc
3. ls -l | tail
    

Actual Results:  $ ls -l | tail
-rw-r--r--   1 root    root       585  1&#26376;  3 11:46 yp.conf
-rw-r--r--   1 root    root      1757 10&#26376; 14 15:15 ypserv.conf
-rw-r--r--   1 root    root        38  9&#26376; 13 11:08 ytalkrc
-rw-r--r--   1 root    root       253 12&#26376;  8 22:00 yum.conf
drwxr-xr-x   2 root    root      4096 12&#26376;  8 22:00 yum.repos.d
-rw-r--r--   1 root    root       252 2004-04-09  zlogin
-rw-r--r--   1 root    root        86 2002-10-14  zlogout
-rw-r--r--   1 root    root       168 2004-07-05  zprofile
-rw-r--r--   1 root    root       304 2002-11-28  zshenv
-rw-r--r--   1 root    root       640 2004-07-05  zshrc


Expected Results:  $ ls -l | tail
-rw-r--r--   1 root    root       585  1&#26376; 3&#26085; 11:46 yp.conf
-rw-r--r--   1 root    root      1757 10&#26376;14&#26085; 15:15
ypserv.conf
-rw-r--r--   1 root    root        38  9&#26376;13&#26085; 11:08 ytalkrc
-rw-r--r--   1 root    root       253 12&#26376; 8&#26085; 22:00 yum.conf
drwxr-xr-x   2 root    root      4096 12&#26376; 8&#26085; 22:00
yum.repos.d
-rw-r--r--   1 root    root       252 2004&#24180;04&#26376;09&#26085;
zlogin
-rw-r--r--   1 root    root        86 2002&#24180;10&#26376;14&#26085;
zlogout
-rw-r--r--   1 root    root       168 2004&#24180;07&#26376;05&#26085;
zprofile
-rw-r--r--   1 root    root       304 2002&#24180;11&#26376;28&#26085;
zshenv
-rw-r--r--   1 root    root       640 2004&#24180;07&#26376;05&#26085;
zshrc


Additional info:
Comment 1 Tim Waugh 2005-01-12 05:31:28 EST
Please supply a patch to the coreutils-5.2.1/po/ja.po file (or the corrected
file itself).

Thanks.
Comment 3 Mitrophan Chin 2005-01-12 16:42:46 EST
i think ja.po is japanese.. probably should be zh_CN.po
I never done this before.. How do I extract the file to edit it? The expected
results above, I did it with manual copy and paste.
Comment 4 Mitrophan Chin 2005-01-12 16:47:57 EST
I found this site. Is this used by fedora?

http://www.iro.umontreal.ca/translation/trans/zh_CN/
Comment 5 Tim Waugh 2005-01-13 05:35:46 EST
Sorry, I was thinking this was the same as bug #124862.

Not sure what you copied and pasted from, but it doesn't look like Chinese at
this end.  Get the zh_CN.po file from the coreutils source RPM:

CVSROOT=:pserver:anonymous@cvs.fedora.redhat.com:/cvs/dist
export CVSROOT
cvs -qz3 co coreutils
cd coreutils/devel
make prep
Comment 6 Mitrophan Chin 2005-01-13 11:30:49 EST
Created attachment 109725 [details]
changed the msgstr for src/ls.c:648 and src/ls.c:656
Comment 7 Tim Waugh 2005-01-13 11:37:18 EST
Thanks.  Fixed in coreutils-5.2.1-37.