#583838 localized date in ls -l is wrong for Romanian

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
Andrei Popescu
Date:
2011-07-09 08:45:04 UTC
Severity:
normal
#583838#5
Date:
2010-05-30 23:47:09 UTC
From:
To:
Hello,

Currently ls -l displays the date in as "%b %d %Y", where it should be
"%d %b %Y" (the month is never before the day in Romanian).

Regards,
Andrei

#583838#10
Date:
2011-07-08 12:26:23 UTC
From:
To:
Hi Andrei,

What are the values of your LC_ALL and LC_TIME environement variables?
Does this issue only manifest itself with ls -l, or in other commands
that output a date too? Can you paste the output of

  $ date
  $ LC_TIME=ro_RO.UTF-8 date

please?

Cheers,

#583838#15
Date:
2011-07-09 08:41:02 UTC
From:
To:
Hi Benoît,

Thanks for following up on this old bug. Here is the info you requested:

LC_ALL and LC_TIME are both unset, but

$ locale
LANG=ro_RO.UTF-8
LANGUAGE=
LC_CTYPE="ro_RO.UTF-8"
LC_NUMERIC="ro_RO.UTF-8"
LC_TIME="ro_RO.UTF-8"
LC_COLLATE="ro_RO.UTF-8"
LC_MONETARY="ro_RO.UTF-8"
LC_MESSAGES="ro_RO.UTF-8"
LC_PAPER="ro_RO.UTF-8"
LC_NAME="ro_RO.UTF-8"
LC_ADDRESS="ro_RO.UTF-8"
LC_TELEPHONE="ro_RO.UTF-8"
LC_MEASUREMENT="ro_RO.UTF-8"
LC_IDENTIFICATION="ro_RO.UTF-8"
LC_ALL=

$ date
sâmbătă 9 iulie 2011, 11:31:02 +0300
$ LC_TIME=ro_RO.UTF-8 date
sâmbătă 9 iulie 2011, 11:31:49 +0300

I assume the order month/day is hard-coded somewhere, instead of using
something that can be over-riden by the locale. It would be probably
best to just use ISO 8601 instead ;)

Regards,
Andrei