Blame coreutils-4.5.3-langinfo.patch
|
Tim Waugh |
c3e4c8 |
--- coreutils-5.92/src/date.c.langinfo 2005-09-16 09:06:57.000000000 +0100
|
|
Tim Waugh |
c3e4c8 |
+++ coreutils-5.92/src/date.c 2005-10-24 18:09:16.000000000 +0100
|
|
Tim Waugh |
c3e4c8 |
@@ -451,14 +451,7 @@
|
|
Tim Waugh |
c3e4c8 |
format = DATE_FMT_LANGINFO ();
|
|
Tim Waugh |
c3e4c8 |
if (! *format)
|
|
cvsdist |
de6548 |
{
|
|
cvsdist |
de6548 |
- /* Do not wrap the following literal format string with _(...).
|
|
cvsdist |
de6548 |
- For example, suppose LC_ALL is unset, LC_TIME="POSIX",
|
|
Tim Waugh |
c3e4c8 |
- and LANG="ko_KR". In that case, POSIX says that LC_TIME
|
|
cvsdist |
de6548 |
- determines the format and contents of date and time strings
|
|
cvsdist |
de6548 |
- written by date, which means "date" must generate output
|
|
cvsdist |
de6548 |
- using the POSIX locale; but adding _() would cause "date"
|
|
cvsdist |
de6548 |
- to use a Korean translation of the format. */
|
|
Tim Waugh |
c3e4c8 |
- format = "%a %b %e %H:%M:%S %Z %Y";
|
|
Tim Waugh |
c3e4c8 |
+ format = dcgettext(NULL, N_("%a %b %e %H:%M:%S %Z %Y"), LC_TIME);
|
|
cvsdist |
de6548 |
}
|
|
cvsdist |
de6548 |
}
|
|
Tim Waugh |
c3e4c8 |
|