[opensuse] Date display format in CLI
"locale" shows the correct info for me i.e. "en_GB.UTF-8" but the date is always displayed YYYYMMDD when doing "ls -l" etc in the console. KDE seems to deal with it correctly. Does anyone have an idea if this is a formatting bug, configuration issue or should it be this way (hope not) Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-12-19 at 09:48 -0000, ianseeks wrote:
"locale" shows the correct info for me i.e. "en_GB.UTF-8" but the date is always displayed YYYYMMDD when doing "ls -l" etc in the console. KDE seems to deal with it correctly. Does anyone have an idea if this is a formatting bug, configuration issue or should it be this way (hope not)
Configuration. It is controlled by the "LC_TIME" environment variable. "en_GB.UTF-8" does not exist: ~> locale -a | grep en_GB.UTF-8 ~> ~> locale -a | grep en_GB en_GB en_GB.iso885915 en_GB.utf8 ~> I think we just found a bug... Yes, indeed: cer@nimrodel:~> locale | grep LC_TIME ; date; LC_TIME="es_ES.utf8" date LC_TIME="en_US.UTF-8" Sat Dec 19 10:58:41 CET 2009 sáb dic 19 10:58:41 CET 2009 The locale is set wrong both in 11.0 and 11.2. Reporting right away. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksspNEACgkQtTMYHG2NR9X7gQCfb0HLwuX5HLU3XGX82o+26NFn vysAoIq2oJL80ZmsAd/2HgwANZpSdSE+ =gdme -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.2.00.0912191110550.4905@nimrodel.valinor> On Saturday, 2009-12-19 at 11:02 +0100, Carlos E. R. wrote:
I think we just found a bug... Yes, indeed:
cer@nimrodel:~> locale | grep LC_TIME ; date; LC_TIME="es_ES.utf8" date LC_TIME="en_US.UTF-8" Sat Dec 19 10:58:41 CET 2009 sáb dic 19 10:58:41 CET 2009
The locale is set wrong both in 11.0 and 11.2. Reporting right away.
Sorry, wrong test. This one is correct: cer@nimrodel:~> LC_TIME="es_ES."es_ES.UTF-8 date ; LC_TIME="es_ES.utf8" date Sat Dec 19 11:07:58 CET 2009 sáb dic 19 11:07:58 CET 2009 First date is in English, though locale is Spanish. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksspr4ACgkQtTMYHG2NR9XpSgCfeq/YNbY+MQR0eEh5HKnQz4x2 haAAniZoOSUng8OxoP2b5efIM2x2nFqb =pPWv -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.2.00.0912191116170.4905@nimrodel.valinor> On Saturday, 2009-12-19 at 11:11 +0100, I wrote:
On Saturday, 2009-12-19 at 11:02 +0100, Carlos E. R. wrote:
I think we just found a bug... Yes, indeed:
cer@nimrodel:~> locale | grep LC_TIME ; date; LC_TIME="es_ES.utf8" date LC_TIME="en_US.UTF-8" Sat Dec 19 10:58:41 CET 2009 sáb dic 19 10:58:41 CET 2009
The locale is set wrong both in 11.0 and 11.2. Reporting right away.
Sorry, wrong test. This one is correct:
cer@nimrodel:~> LC_TIME="es_ES."es_ES.UTF-8 date ; LC_TIME="es_ES.utf8" date Sat Dec 19 11:07:58 CET 2009 sáb dic 19 11:07:58 CET 2009
First date is in English, though locale is Spanish.
Ugh. Sorry again. I need more coffee. cer@nimrodel:~> LC_TIME="es_ES.UTF-8" date ; LC_TIME="es_ES.utf8" date sáb dic 19 11:15:36 CET 2009 sáb dic 19 11:15:36 CET 2009 Both settings give correct results. Now, the OP is using "en_GB.UTF-8". Lets test that one. cer@nimrodel:~> LC_TIME="en_GB.UTF-8" date ; LC_TIME="en_GB.UTF-8" date Sat Dec 19 11:16:46 CET 2009 Sat Dec 19 11:16:46 CET 2009 cer@nimrodel:~> LC_TIME="en_GB.UTF-8" ls -l p ; LC_TIME="en_GB.UTF-8" ls -l p - -rw-r--r-- 1 cer users 6219 2009-12-07 14:41 p - -rw-r--r-- 1 cer users 6219 2009-12-07 14:41 p So, both yield the correct result. The above was with 11.0, lets try 11.2: cer@bombadillo:~> LC_TIME="en_GB.UTF-8" ls -l p ; LC_TIME="en_GB.UTF-8" ls -l p - -rw-r--r-- 1 cer users 0 2009-12-19 11:18 p - -rw-r--r-- 1 cer users 0 2009-12-19 11:18 p So it is correct. Now, perhaps the OP does not want "YYYY-MM-DD"... well, it seems that is the standard for Great Britain now >:-p You have these choices for GB:
locale -a | grep GB cy_GB cy_GB.utf8 en_GB en_GB.iso885915 en_GB.utf8 gd_GB gd_GB.utf8 gv_GB gv_GB.utf8 kw_GB kw_GB.utf8
and many more for "en_*" - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkssqgYACgkQtTMYHG2NR9XjFgCfYXLVAWNIvWyYD/PvB0qtgp/f mdUAn2JZGoJc/w+68kmgs1e4VAo66CoA =7rg1 -----END PGP SIGNATURE-----
On Saturday 19 December 2009 11:02:51 Carlos E. R. wrote:
On Saturday, 2009-12-19 at 09:48 -0000, ianseeks wrote:
"locale" shows the correct info for me i.e. "en_GB.UTF-8" but the date is always displayed YYYYMMDD when doing "ls -l" etc in the console. KDE seems to deal with it correctly. Does anyone have an idea if this is a formatting bug, configuration issue or should it be this way (hope not)
Configuration. It is controlled by the "LC_TIME" environment variable. "en_GB.UTF-8" does not exist:
~> locale -a | grep en_GB.UTF-8 ~> ~> locale -a | grep en_GB en_GB en_GB.iso885915 en_GB.utf8 ~>
I think we just found a bug... Yes, indeed:
cer@nimrodel:~> locale | grep LC_TIME ; date; LC_TIME="es_ES.utf8" date LC_TIME="en_US.UTF-8" Sat Dec 19 10:58:41 CET 2009 sáb dic 19 10:58:41 CET 2009
The locale is set wrong both in 11.0 and 11.2. Reporting right away.
en_US.UTF-8 is correct, glibc transforms the string "UTF-8" and some variations of it to "utf8" and uses that one internally. I don't see a bug in what you explain above, Andreas -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-12-21 at 10:49 +0100, Andreas Jaeger wrote:
I don't see a bug in what you explain above,
Go on reading to the next emails I sent ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksvdrQACgkQtTMYHG2NR9UmSACffjAetWPJOM7OCeOlIgMdD2qA YLQAmwU0Wo3VoLK18yZYnmeB6fDIkMk4 =o2pa -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Carlos E. R.
-
ianseeks