Recently, I noticed that the date format in the output from "ls -l" has
changed in squeeze. Before, it used the ISO standard (2010-05-29 20:00)
but now it's started printing "May 29 20:00" or "May 29 2009" if it's
not the current year.
My locale, which hasn't changed in years, is en_US.UTF-8. If I run ls
with LC_TIME="ja_JP.UTF-8", I get the ISO format, so ls is still capable
of displaying it.
Two servers running lenny and a box running Ubuntu 10.04, all with the
en_US.UTF-8 locale, display the ISO format.
I suspect it's coreutils' fault, because while the version of the
locales package is about the same in Ubuntu and Debian (2.11 and 2.10),
coreutils is significantly newer in Debian (8.5 compared to 7.4).
Can anyone else confirm this issue? Is it a bug or a feature? How can I
get ls to print the ISO date format again?
Thanks,
Brian
05-30-2010, 04:17 AM
Teemu Likonen
ls has stopped using the ISO date format
* 2010-05-29 20:25 (-0700), Brian Marshall wrote:
> Recently, I noticed that the date format in the output from "ls -l"
> has changed in squeeze. Before, it used the ISO standard (2010-05-29
> 20:00) but now it's started printing "May 29 20:00" or "May 29 2009"
> if it's not the current year.
> I suspect it's coreutils' fault, because while the version of the
> locales package is about the same in Ubuntu and Debian (2.11 and
> 2.10), coreutils is significantly newer in Debian (8.5 compared to
> 7.4).
>
> Can anyone else confirm this issue? Is it a bug or a feature? How can
> I get ls to print the ISO date format again?
Yes, the default has changed. You can change the default with TIME_STYLE
environment variable, like this:
--
Feel free to Cc me your replies if you want to make sure I'll notice
them. I can't read all the list mail.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87aari3twk.fsf@mithlond.arda">http://lists.debian.org/87aari3twk.fsf@mithlond.arda
05-30-2010, 04:21 AM
Teemu Likonen
ls has stopped using the ISO date format
* 2010-05-30 07:17 (+0300), Teemu Likonen wrote:
> Related tips here:
Here's a better link which points to the Debian Reference manual:
http://www.debian.org/doc/manuals/debian-reference/debian-reference.en.html#_customized_display_of_time_and_ date
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 8763263tpw.fsf@mithlond.arda">http://lists.debian.org/8763263tpw.fsf@mithlond.arda
05-30-2010, 05:58 AM
Brian Marshall
ls has stopped using the ISO date format
On Sun, May 30, 2010 at 07:17:31AM +0300, Teemu Likonen wrote:
> * 2010-05-29 20:25 (-0700), Brian Marshall wrote:
>
> > Recently, I noticed that the date format in the output from "ls -l"
> > has changed in squeeze. Before, it used the ISO standard (2010-05-29
> > 20:00) but now it's started printing "May 29 20:00" or "May 29 2009"
> > if it's not the current year.
> Yes, the default has changed. You can change the default with TIME_STYLE
> environment variable, like this:
>
> export TIME_STYLE=long-iso
Thanks, this works.
On Sun, May 30, 2010 at 07:21:31AM +0300, Teemu Likonen wrote:
> Here's a better link which points to the Debian Reference manual:
>
> http://www.debian.org/doc/manuals/debian-reference/debian-reference.en.html#_customized_display_of_time_and_ date
Thanks for the link.
Any idea why the default was changed? I guess it didn't really make
sense to change the date format based on whether it was an ISO-8859 or
UTF-8 locale? (en_US.ISO-8859, to my knowledge, has always used the date
format that en_US.UTF-8 is now using.)
Brian
05-30-2010, 08:04 AM
Andrei Popescu
ls has stopped using the ISO date format
On Sat,29.May.10, 22:58:59, Brian Marshall wrote:
>
> Any idea why the default was changed? I guess it didn't really make
> sense to change the date format based on whether it was an ISO-8859 or
> UTF-8 locale? (en_US.ISO-8859, to my knowledge, has always used the date
> format that en_US.UTF-8 is now using.)
Why not? This way people using other languages now have a localized
date.
Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
05-30-2010, 08:07 AM
Teemu Likonen
ls has stopped using the ISO date format
* 2010-05-29 22:58 (-0700), Brian Marshall wrote:
> Any idea why the default was changed?
No idea. Indeed, I think long-iso would be better default for this kind
of technical dates which are shown in tabular form. With fi_FI.UTF-8
locale the output of "ls -l" is difficult to read because the width of
the date column is not fixed. In practice TIME_STYLE=locale is not
usable at all (with "ls -l").
--
Feel free to Cc me your replies if you want to make sure I'll notice
them. I can't read all the list mail.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 871vct4xu1.fsf@mithlond.arda">http://lists.debian.org/871vct4xu1.fsf@mithlond.arda
05-30-2010, 09:19 AM
Camalen
ls has stopped using the ISO date format
On Sun, 30 May 2010 11:04:59 +0300, Andrei Popescu wrote:
> On Sat,29.May.10, 22:58:59, Brian Marshall wrote:
>>
>> Any idea why the default was changed? I guess it didn't really make
>> sense to change the date format based on whether it was an ISO-8859 or
>> UTF-8 locale? (en_US.ISO-8859, to my knowledge, has always used the
>> date format that en_US.UTF-8 is now using.)
>
> Why not? This way people using other languages now have a localized
> date.
Having an option to change the default is very good, but ISO date
representation is there precisely to avoid the date localization madness,
so I for one would also expect as default the using of ISO date standard.
Greetings,
--
Camalen
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.05.30.09.19.03@gmail.com">http://lists.debian.org/pan.2010.05.30.09.19.03@gmail.com
05-30-2010, 09:44 AM
Nuno Magalhães
ls has stopped using the ISO date format
On Sun, May 30, 2010 at 10:19, Camaleón <noelamac@gmail.com> wrote:
> Having an option to change the default is very good, but ISO date
> representation is there precisely to avoid the date localization madness,
> so I for one would also expect as default the using of ISO date standard.
+1 for ISO as default
In any case if locales were the reasoning, pt_PT.UTF-8 oughta be "30
Mai 2010" or something when it's actually just a translation from
english, "Mai 30 2010".
Is there a way to push things into changing back?
--
() ascii-rubanda kampajno - kontra* html-a retpoŝto
/ ascii ribbon campaign - against html e-mail
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimvWYOPWUaRxXzUYj_CLNeNNKpndRfW2ekD6F_I@mail .gmail.com">http://lists.debian.org/AANLkTimvWYOPWUaRxXzUYj_CLNeNNKpndRfW2ekD6F_I@mail .gmail.com
05-30-2010, 10:01 AM
Teemu Likonen
ls has stopped using the ISO date format
* 2010-05-30 10:44 (+0100), Nuno Magalhes wrote:
> +1 for ISO as default
> Is there a way to push things into changing back?
Use TIME_STYLE=long-iso or contact the GNU coreutils upstream. First
search their mailing list archives for related discussions:
--
Feel free to Cc me your replies if you want to make sure I'll notice
them. I can't read all the list mail.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87sk59u2ru.fsf@mithlond.arda">http://lists.debian.org/87sk59u2ru.fsf@mithlond.arda
05-30-2010, 11:20 AM
Ron Johnson
ls has stopped using the ISO date format
On 05/29/2010 11:17 PM, Teemu Likonen wrote:
[snip]
Yes, the default has changed. You can change the default with TIME_STYLE
environment variable, like this:
export TIME_STYLE=long-iso
Another method is the --time-style option. For example:
$ alias dir='ls -aFl --time-style=+"%F %T"'
$ dir 19*jpg
-rw------- 1 me me 158770 2007-09-25 23:15:08 19_20_Aircraft10.jpg
-rw------- 1 me me 114455 2007-09-25 23:15:26 19_20_Aircraft11.jpg
-rw------- 1 me me 139353 2007-09-25 23:13:45 19_20_Aircraft12.jpg
-rw------- 1 me me 85438 2007-09-25 23:15:57 19_20_Aircraft6.jpg
--
Dissent is patriotic, remember?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org