Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 29 Apr 1998 09:12:43 +0000 (09:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 29 Apr 1998 09:12:43 +0000 (09:12 +0000)
1998-04-29  Ulrich Drepper  <drepper@cygnus.com>

* stdio-common/vfprintf.c [%S]: Don't clear mbstate twice;
wcsrtombs must put it into initial state.

ChangeLog
localedata/ChangeLog
stdio-common/vfprintf.c

index 8e89260..76eaca0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-04-29  Ulrich Drepper  <drepper@cygnus.com>
+
+       * stdio-common/vfprintf.c [%S]: Don't clear mbstate twice;
+       wcsrtombs must put it into initial state.
+
 1998-04-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
 
        * iconv/gconv_simple.c: Fix endian bug.  Don't put side effects in
index fe9b664..2dc4aa7 100644 (file)
@@ -1,3 +1,8 @@
+1998-04-28  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locales/de_DE: Use . as thousands separator and 3;3 groups for
+       LC_NUMERIC.
+
 1998-03-30  Ulrich Drepper  <drepper@cygnus.com>
 
        * Makefile: Fix test rules from last patch.
index d8d0f87..dcc5cdb 100644 (file)
@@ -887,9 +887,9 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
              /* Illegal wide-character string.  */                           \
              return -1;                                                      \
                                                                              \
+           assert (__mbsinit (&mbstate));                                    \
            s2 = (const wchar_t *) string;                                    \
            string = alloca (len + 1);                                        \
-           memset (&mbstate, '\0', sizeof (mbstate_t));                      \
            (void) __wcsrtombs (string, &s2, prec != -1 ? prec : UINT_MAX,    \
                                &mbstate);                                    \
          }                                                                   \