+2004-02-10 Ulrich Drepper <drepper@redhat.com>
+
+ * stdio-common/_i18n_number.h: Finish last patch.
+
2004-02-09 Ulrich Drepper <drepper@redhat.com>
* sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
# define decimal NULL
# define thousands NULL
#else
-# define wdecimal L'\0'
-# define wthousands L'\0'
+ wint_t wdecimal = L'\0';
+ wint_t wthousands = L'\0';
char decimal[MB_LEN_MAX];
char thousands[MB_LEN_MAX];
#endif
wctrans_t map = __wctrans ("to_outpunct");
if (map != NULL)
{
+ wdecimal = __towctrans (L'.', map);
+ wthousands = __towctrans (L',', map);
+
+#ifndef COMPILE_WPRINTF
mbstate_t state;
memset (&state, '\0', sizeof (state));
if (__wcrtomb (thousands, wthousands, &state) == (size_t) -1)
memcpy (thousands, ",", 2);
+#endif
}
/* Copy existing string so that nothing gets overwritten. */