[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [locales] change date/time display format for german locale in lenny like it has been on etch



On Mon, Jan 19, 2009 at 02:31:09PM +0100, Johannes Wiedersich wrote:
> bugtracker@slideomania.com wrote:
> > Hi list,
> > 
> > I recently noticed (took a while of head-scratching like "WTF? Something is 
> > very weird here, but what is it?") that after the upgrade from etch to lenny, 
> > the default display format for date/time when doing a "ls -al" for the german 
> > locale unfortunately changed from
> > 
> > etch: �31.12.2008 12:34� to
> > lenny: �13. Dez 12:34� and (IMO abdominable...!):
> > lenny: �13. Dez 2006� (for older entries)
> 
> That looks horrible, indeed.
> 
> > Is there an easy way to get back my desired format as it has been on etch, 
> > preferably without the need to customize a locale file?
> 
> Probably not.
> 
> > As a workaround, I changed LC_TIME to "en_US.UTF-8", as this provides me at 
> > least with an ISO-8601-conform format, but I'd prefer the numerical display 
> > for german like it has been on etch.
> 
> This looks promising
> 
> http://ccollins.wordpress.com/2009/01/06/how-to-change-date-formats-on-ubuntu/

It was important to use en_IE when we were using non-UTF-8 locales.

Now even en_US.UTF-8 gives nice "2008-12-29 05:43" display. 
(So does ja_JP.UTF-8 , but French, German, Spanish seems not to do so)

osamu@snoopy:~$ LANG=de_DE.UTF-8 ls -l
insgesamt 172
drwxr-xr-x  3 osamu osamu   4096 23. Dez 01:21 bin
...
osamu@snoopy:~$ LANG=de_DE.UTF-8 LC_TIME=en_US.UTF-8 ls -l
insgesamt 172
drwxr-xr-x  3 osamu osamu   4096 2008-12-23 01:21 bin
...

Here LC_MESSAGE is de_DE.UTF-8 while date is ISO-8601 format! 

Osamu


Reply to: