diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-12 10:02:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-12 10:02:29 +0000 |
commit | 8fc17df6789e8cbd3080464df48e32c089983e7c (patch) | |
tree | bb94074bab7906e297f157a2bff7db7ba0b68b4f /src | |
parent | 1ff67f6c5cc2ef87cfcdf2b97f3eb27cfd569ba8 (diff) | |
download | coreutils-8fc17df6789e8cbd3080464df48e32c089983e7c.tar.xz |
(show_date): Add a comment explaining why the
format string must not be translatable via _(). From Paul Eggert.
Diffstat (limited to 'src')
-rw-r--r-- | src/date.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/date.c b/src/date.c index 23a298286..b521d661d 100644 --- a/src/date.c +++ b/src/date.c @@ -461,6 +461,13 @@ show_date (const char *format, time_t when) else { char *date_fmt = DATE_FMT_LANGINFO (); + /* Do not wrap the following literal format string with _(...). + For example, suppose LC_ALL is unset, LC_TIME="POSIX", + and LANG="ko_KR". In that case, POSIX.2 says that LC_TIME + determines the format and contents of date and time strings + written by date, which means "date" must generate output + using the POSIX locale; but adding _() would cause "date" + to use a Korean translation of the format. */ format = *date_fmt ? date_fmt : "%a %b %e %H:%M:%S %Z %Y"; } } |