Jungshik Shin <[EMAIL PROTECTED]> wrote:
| To whom it may concern:
|
| I'm writing to suggest that the default output format of 'date' (when
| neither '-R' nor '-I' option is given) has to be made locale-dependent
| using gettext().
|
| date.c (in sh-utils-2.0) has the following:
|
| format = (rfc_format
| ? (universal_time
| ? "%a, %_d %b %Y %H:%M:%S GMT"
| : "%a, %_d %b %Y %H:%M:%S %z")
| : (iso_8601_format
| ? iso_format_string[iso_8601_format][universal_time]
| : "%a %b %e %H:%M:%S %Z %Y"));
|
| All but the last one is locale-independent. However, the last one "%a %b
| %e %H:%M:%S %Z %Y" is locale-dependent. For instance, in ko_KR locale,
| "%x %r" is more appropriate. Therefore, I think it has to be enclosed
| with 'gettext()' (or _() macro)
Thanks for the suggestion.
That problem was addressed by this change:
2000-03-29 Paul Eggert <[EMAIL PROTECTED]>
* src/date.c: Include <langinfo.h> if it exists.
(DATE_FMT_LANGINFO): New macro.
(show_date): Use it to get the locale-specific default format for
"date" if it exists.
I'll probably go ahead and add _() regardless,
for those systems that lack _DATE_FMT.
The latest release is here:
ftp://alpha.gnu.org/gnu/fetish/sh-utils-2.0.11.tar.gz
_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils