bug-coreutils
[Top][All Lists]
Advanced

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

Re: lib/strftime.c bug for %r


From: Daniel Yacob
Subject: Re: lib/strftime.c bug for %r
Date: Wed, 28 May 2003 14:40:11 -0400

I'll send my data this evening.  French is probably not the best
test, %p and %r are undefined -at least they are in the 1996-10-15
locale by Keld Simonsen (the only one I have at my finger tips).


> $ LC_ALL=fr_FR.UTF-8 date +%r
>   07:55:29 <--- notice the trailing blank, and no AM/PM indicator

>   That's because %r expands to the empty string in that locale.


Do you mean %p or %r here?  There should be no AM/PM because %p
is undefined, so the space is expected.  If %r is undefined, the
"07:55:29" shouldn't even appear.  The test shows that the hard
coded and not underlieing format was used.  Check if your locale
fr_FR really has "t_fmt_ampm" defined.  If its empty, add something
to it (anything) and reinstall, it shouldn't appear for date +%r.

strftime.c in glibc has the same bug!

thanks,

/Daniel




reply via email to

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