bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix a bug in unistdio


From: Bruno Haible
Subject: fix a bug in unistdio
Date: Sun, 30 Mar 2008 13:09:15 +0100
User-agent: KMail/1.5.4

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

        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.  */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]