[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor bug in *wscanf in 2.2.4
From: |
Jason Merrill |
Subject: |
Minor bug in *wscanf in 2.2.4 |
Date: |
Tue, 26 Feb 2002 14:27:37 +0000 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) |
In the following testcase, swscanf should return '0', as the scanset does
not match any of the input characters. Instead, it returns 1 and sets
buf[0] to 0. The non-wide *scanf functions do not seem to have this bug.
Seen with Red Hat glibc-2.2.4-19.3 rpm.
---
#include <wchar.h>
int main ()
{
wchar_t buf[10];
return swscanf (L"foo", L"%[q]", buf);
}
- Minor bug in *wscanf in 2.2.4,
Jason Merrill <=