[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
time/strftime.c bug for %r
From: |
Daniel Yacob |
Subject: |
time/strftime.c bug for %r |
Date: |
Mon, 19 May 2003 08:33:24 -0400 |
Greetings,
I noticed the same bug with strftime.c in coreutils a few days
ago (http://mail.gnu.org/archive/html/bug-coreutils/2003-05/msg00058.html)
In strftime.c of glibc the problem begins at 1146 (using the cvs version).
In a nutshell the 'r' case does not defer to the locale for the format
specification (t_fmt_ampm in the locale). 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. The snippet below resloved
the problem for the coreutils version:
# if HAVE_STRFTIME
goto underlying_strftime;
# else
subfmt = L_("%I:%M:%S %p");
# endif
thanks,
/Daniel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- time/strftime.c bug for %r,
Daniel Yacob <=