[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lib/strftime.c bug for %r
From: |
Daniel Yacob |
Subject: |
lib/strftime.c bug for %r |
Date: |
Fri, 16 May 2003 20:49:03 -0400 |
Greetings,
I found that the "date" utility was not displaying the format defined
in locales properly for %r (aka t_fmt_ampm). The 'r' case at line
1173 in coreutils-5.0 seems to be the problem. There is no
"goto underlying_strftime;" statement as seen for the related
%c, %x, %X cases.
The "if" statement in the 'r' case seems a little suspect too, but
I don't know what the _NL_CURRENT is about.
Please look into, I tested with the following snippet and it worked
as I was expecting (defferred to the locale):
# if HAVE_STRFTIME
goto underlying_strftime;
# else
subfmt = L_("%I:%M:%S %p");
# endif
thanks,
/Daniel
- lib/strftime.c bug for %r,
Daniel Yacob <=