Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 25 Sep 2003 15:34:03 +0000 (15:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 25 Sep 2003 15:34:03 +0000 (15:34 +0000)
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.

ChangeLog
misc/syslog.c
sysdeps/i386/fpu/fclrexcpt.c

index dbcac80..1668593 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2003-09-24  Paul Eggert  <eggert@twinsun.com>
 
        * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
index d84cbbf..fac969a 100644 (file)
@@ -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));
index f7ccd3a..0873ad9 100644 (file)
@@ -1,5 +1,5 @@
 /* Clear given exceptions in current floating-point environment.
-   Copyright (C) 1997,99,2000,01 Free Software Foundation, Inc.
+   Copyright (C) 1997,99,2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -48,10 +48,10 @@ __feclearexcept (int excepts)
 
       /* Get the current MXCSR.  */
       __asm__ ("stmxcsr %0" : "=m" (*&xnew_exc));
-      
+
       /* Clear the relevant bits.  */
       xnew_exc &= excepts ^ FE_ALL_EXCEPT;
-      
+
       /* Put the new data in effect.  */
       __asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc));
     }