summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-25 15:34:03 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-25 15:34:03 +0000
commit26721ed62e2cefdfe6f1d1603342822d6d2bf616 (patch)
treec37a138de929467f97f0a2c446517bce76cc34c4 /misc
parent32868f8801a4800dd9f2b1597e7499ec76cf8dd1 (diff)
downloadglibc-26721ed62e2cefdfe6f1d1603342822d6d2bf616.tar.gz
glibc-26721ed62e2cefdfe6f1d1603342822d6d2bf616.tar.xz
glibc-26721ed62e2cefdfe6f1d1603342822d6d2bf616.zip
Update.
2003-09-25  Jakub Jelinek  <jakub@redhat.com>

	* misc/syslog.c: Include locale.h.
	(vsyslog): Add date always in C locale %h %e %T format.
Diffstat (limited to 'misc')
-rw-r--r--misc/syslog.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/misc/syslog.c b/misc/syslog.c
index d84cbbf47f..fac969ae98 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -48,6 +48,7 @@ static char sccsid[] = "@(#)syslog.c	8.4 (Berkeley) 3/18/94";
 #include <stdlib.h>
 #include <bits/libc-lock.h>
 #include <signal.h>
+#include <locale.h>
 
 #if __STDC__
 #include <stdarg.h>
@@ -187,10 +188,11 @@ vsyslog(pri, fmt, ap)
 	    prioff = fprintf (f, "<%d>", pri);
 	    (void) time (&now);
 #ifdef USE_IN_LIBIO
-	    f->_IO_write_ptr += strftime (f->_IO_write_ptr,
-					  f->_IO_write_end - f->_IO_write_ptr,
-					  "%h %e %T ",
-					  __localtime_r (&now, &now_tm));
+	    f->_IO_write_ptr += __strftime_l (f->_IO_write_ptr,
+					      f->_IO_write_end - f->_IO_write_ptr,
+					      "%h %e %T ",
+					      __localtime_r (&now, &now_tm),
+					      &_nl_C_locobj);
 #else
 	    f->__bufp += strftime (f->__bufp, f->__put_limit - f->__bufp,
 				   "%h %e %T ", __localtime_r (&now, &now_tm));