Bug 617033
Summary: | LANG=en_US.UTF-8 displays same time stamp format as LANG=C | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Drew <adamrdrew> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | jakub, kc8hfi, kdudka, kevin, ovasik, twaugh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-07-22 08:55:33 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Adam Drew
2010-07-22 01:49:59 UTC
Are you sure your Fedora 12 outputs aren't swapped? If anything, I'd expect C to use the ISO format (yyyy-mm-dd). en_US.UTF-8 should use the US format. FYI, LC_TIME=ja_JP.UTF-8 is an effective way to force the format you want. Either way, it don't matter. You can set the LANG environment variable to anything and the date format doesn't change. both en_US.UTF-8 and C are showing the same format. I was figuring that the format would be different for each type. This is what is happening on an f12 system Looking at the LANG variable, [kc8hfi@charlie perl]$ echo $LANG en_US.UTF-8 The output of ls -l [kc8hfi@charlie perl]$ ls -l total 276 -rw-rw-r--. 1 kc8hfi kc8hfi 240 2010-05-03 19:38 client.pl Now change the LANG variable to something else, like C [kc8hfi@charlie perl]$ export LANG=C [kc8hfi@charlie perl]$ ls -l total 276 -rw-rw-r--. 1 kc8hfi kc8hfi 240 May 3 19:38 client.pl Now, from an f13 system: kc8hfi@bandit1 virtualmachines]$ echo $LANG en_US.UTF-8 [kc8hfi@bandit1 virtualmachines]$ ls -l total 17790060 -rw-r--r--. 1 kc8hfi kc8hfi 10737418240 Jun 16 16:50 f13-i686.img -rw-r--r--. 1 kc8hfi kc8hfi 10737418240 Jun 24 07:18 f13-x86_64.img and then if you change the LANG variable [kc8hfi@bandit1 virtualmachines]$ export LANG=C [kc8hfi@bandit1 virtualmachines]$ echo $LANG C [kc8hfi@bandit1 virtualmachines]$ ls -l total 17790060 -rw-r--r--. 1 kc8hfi kc8hfi 10737418240 Jun 16 16:50 f13-i686.img -rw-r--r--. 1 kc8hfi kc8hfi 10737418240 Jun 24 07:18 f13-x86_64.img I was expecting to see the date format change. Is LC_TIME set? And LC_ALL? In the absence of other LC_* settings, the Fedora 12 behavior would be the bug. It's not normal for en_US.UTF-8 to display yyyy-mm-dd dates as this is not a format commonly used in the USA. Is it really present in F-13 coreutils? As I think this is duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=525134 ( ls shows ISO format when no localized translation for the date string is present - and therefore english translations for ls date formats were added to coreutils in 8.4 (which is present in F-13). See http://lists.gnu.org/archive/html/bug-coreutils/2009-09/msg00388.html (and other emails in that thread) for details. Ah, now I see - the request is totally oposite ... you request the old ISO format to be back ... in fact until 2005, common timestamp style was used for en_* locales, so moving it to iso style was some kind of regression. So restoring the correct behaviour from the times before 2005 is not a bug. Closing NOTABUG. |