Blame SOURCES/coreutils-4.5.3-langinfo.patch
|
|
e63663 |
diff --git a/src/date.c b/src/date.c
|
|
|
e63663 |
index ddb011e..619a72b 100644
|
|
|
e63663 |
--- a/src/date.c
|
|
|
e63663 |
+++ b/src/date.c
|
|
|
e63663 |
@@ -490,14 +490,7 @@ main (int argc, char **argv)
|
|
|
e63663 |
format = DATE_FMT_LANGINFO ();
|
|
|
e63663 |
if (! *format)
|
|
|
e63663 |
{
|
|
|
e63663 |
- /* Do not wrap the following literal format string with _(...).
|
|
|
e63663 |
- For example, suppose LC_ALL is unset, LC_TIME=POSIX,
|
|
|
e63663 |
- and LANG="ko_KR". In that case, POSIX says that LC_TIME
|
|
|
e63663 |
- determines the format and contents of date and time strings
|
|
|
e63663 |
- written by date, which means "date" must generate output
|
|
|
e63663 |
- using the POSIX locale; but adding _() would cause "date"
|
|
|
e63663 |
- to use a Korean translation of the format. */
|
|
|
e63663 |
- format = "%a %b %e %H:%M:%S %Z %Y";
|
|
|
e63663 |
+ format = dcgettext(NULL, N_("%a %b %e %H:%M:%S %Z %Y"), LC_TIME);
|
|
|
e63663 |
}
|
|
|
e63663 |
}
|
|
|
e63663 |
|