This fixes a bug in the Unicode-enabled printf routines; uncovered through the unistdio/test-ulc-vasnprintf2.sh and unistdio/test-ulc-vasnprintf3.sh tests.
2008-03-30 Bruno Haible <[EMAIL PROTECTED]> Fix bug introduced on 2007-06-10. * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO. *** lib/vasnprintf.c.orig 2008-03-30 14:08:09.000000000 +0200 --- lib/vasnprintf.c 2008-03-30 14:08:04.000000000 +0200 *************** *** 4553,4559 **** DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; ! # if !DCHAR_IS_TCHAR if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */ --- 4553,4559 ---- DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; ! # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */