bug-coreutils
[Top][All Lists]
Advanced

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

Re: misalignment in ls -l in fr_FR locale


From: Samuel Thibault
Subject: Re: misalignment in ls -l in fr_FR locale
Date: Fri, 20 Mar 2009 13:36:09 +0100
User-agent: Mutt/1.5.12-2006-07-14

Pádraig Brady, le Fri 20 Mar 2009 12:23:29 +0000, a écrit :
> Samuel Thibault wrote:
> > $ ls -l
> > drwxr-xr-x  5 samy samy 4,0K mars 17 22:33 tmp/
> > drwx------  5 samy samy 4,0K févr. 12 18:20 u/
> > 
> > Because in the fr_FR locale abmon does not have a constant width, the
> > content of ls -l is misaligned.  Locale standards require abday to have
> > a constant width, but that does not apply to abmon, so coreutils should
> > take that into account.
> 
> Hi Samuel,
> I can't reproduce that. What distro and ls version are you using?

The version of coreutils doesn't matter.
I'm using the CVS HEAD glibc.

> $ LC_ALL=fr_FR.utf8 TIME_STYLE=+"%b %e %H:%M" ./ls -l -h ls.c nl.c
> -rw-rw-r-- 1 padraig padraig 124K mar  6 22:47 ls.c
> -rw-rw-r-- 1 padraig padraig  15K fév 25 09:46 nl.c
> 
> Note that I get shorter abmon values, and also the alignment is fine?

That's because it's an old glibc. You can try using some other locale
that has variable sized-abmon, like possibly ar_JO, ar_LB, ar_SY, as_IN,
bn_BD, bn_IN, el_GR, fa_IR, ga_IE, hi_IN, ht_HT, hu_HU, mi_NZ, ml_IN,
sd_IN, ta_IN, te_IN, yi_US.

> All my french locales have the shorter abbreviations BTW?
> $ locale -a | grep ^fr.*utf8 | while read LANG; do echo -n $(locale abmon); 
> echo " $LANG"; done
> jan;fév;mar;avr;mai;jun;jui;aoû;sep;oct;nov;déc fr_BE.utf8

Yes, that's the old abmon from glibc, is has changed in HEAD.

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]