[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
date default output format : locale-dependency
From: |
Jungshik Shin |
Subject: |
date default output format : locale-dependency |
Date: |
Fri, 10 Nov 2000 18:07:13 -0500 (EST) |
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)
Thank you in advance for your kind consideration,
Jungshik Shin
- date default output format : locale-dependency,
Jungshik Shin <=