2004-06-02 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
        reset digit flags appropriately after we have discovered "0x".
        * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
This commit is contained in:
Jeff Johnston 2004-06-02 19:22:14 +00:00
parent cdb055db02
commit 8b57e664af
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-06-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
reset digit flags appropriately after we have discovered "0x".
* libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2004-05-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF): Move file locking

View File

@ -911,6 +911,10 @@ __svfscanf_r (rptr, fp, fmt0, ap)
{
base = 16;/* if %i */
flags &= ~PFXOK;
/* We must reset the NZDIGITS and NDIGITS
flags that would have been unset by seeing
the zero that preceded the X or x. */
flags |= NZDIGITS | NDIGITS;
goto ok;
}
break;

View File

@ -872,6 +872,10 @@ _DEFUN(__svfscanf_r, (rptr, fp, fmt0, ap),
{
base = 16;/* if %i */
flags &= ~PFXOK;
/* We must reset the NZDIGITS and NDIGITS
flags that would have been unset by seeing
the zero that preceded the X or x. */
flags |= NZDIGITS | NDIGITS;
goto ok;
}
break;