diff options
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"; } } |