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.
This commit is contained in:
Ulrich Drepper 1998-04-29 09:12:43 +00:00
parent fdf19bf72d
commit f326a706f8
3 changed files with 11 additions and 1 deletions

View File

@ -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

View 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.

View 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); \
} \