internationalization

SCCS-file: date.c
SCCS-SID: 7.15
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:15 -04:00
committed by Paul Eggert
parent 85d991fc5a
commit 480f0366a5
+4 -5
View File
@@ -490,11 +490,10 @@ const char * const format;
(void) time(&now);
tm = *localtime(&now);
if (format == NULL) {
timeout(stdout, "%a %b ", &tm);
(void) printf("%2d ", tm.tm_mday);
timeout(stdout, "%X %Z %Y", &tm);
} else timeout(stdout, format, &tm);
#if HAVE_SETLOCALE
setlocale(LC_TIME, "");
#endif
timeout(stdout, format ? format : "%+", &tm);
(void) putchar('\n');
(void) fflush(stdout);
(void) fflush(stderr);