[Techtalk] what the heck is it with locale and ls -l -- recap with correct outputs
Eeva Järvinen
ejarvinen at gmail.com
Fri Feb 24 08:16:53 UTC 2012
Hmm. On my F16 installation:
[eeva at napander ~]$ LC_TIME="en_US.UTF-8" ls -l
-rw-rw-r--. 1 eeva eeva 2112004 Dec 24 2007 00062.jpg
-rw-rw-r--. 1 eeva eeva 2258843 Aug 5 2007 00147.jpg
-rw-rw-r--. 1 eeva users 2703882 Aug 1 2007 00196.jpg
-rw-rw-r--. 1 eeva eeva 2745657 Aug 19 2008 00208.jpg
... and so on. Everything's nice AFAICT.
Plain:
[eeva at napander ~]$ ls -l
-rw-rw-r--. 1 eeva eeva 2112004 24.12.2007 00062.jpg
-rw-rw-r--. 1 eeva eeva 2258843 5.8.2007 00147.jpg
-rw-rw-r--. 1 eeva users 2703882 1.8.2007 00196.jpg
-rw-rw-r--. 1 eeva eeva 2745657 19.8.2008 00208.jpg
Once again, everything's just ok. My default locale is
LANG=fi_FI.UTF-8
LC_CTYPE="fi_FI.UTF-8"
LC_NUMERIC="fi_FI.UTF-8"
LC_TIME="fi_FI.UTF-8"
LC_COLLATE="fi_FI.UTF-8"
LC_MONETARY="fi_FI.UTF-8"
LC_MESSAGES="fi_FI.UTF-8"
LC_PAPER="fi_FI.UTF-8"
LC_NAME="fi_FI.UTF-8"
LC_ADDRESS="fi_FI.UTF-8"
LC_TELEPHONE="fi_FI.UTF-8"
LC_MEASUREMENT="fi_FI.UTF-8"
LC_IDENTIFICATION="fi_FI.UTF-8"
LC_ALL=
Actually, I can't get my Fedora installation to produce the results you give:
[eeva at napander ~]$ LC_TIME="C" ls -l
-rw-rw-r--. 1 eeva eeva 2112004 Dec 24 2007 00062.jpg
-rw-rw-r--. 1 eeva eeva 2258843 Aug 5 2007 00147.jpg
-rw-rw-r--. 1 eeva users 2703882 Aug 1 2007 00196.jpg
-rw-rw-r--. 1 eeva eeva 2745657 Aug 19 2008 00208.jpg
...which is exactly the same as en_US.UTF-8
[eeva at napander ~]$ rpm -q coreutils
coreutils-8.12-6.fc16.i686
Eeva
More information about the Techtalk
mailing list