This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/12986] fscanf scan sets do not support embedded character classes
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 16 Jul 2011 00:50:35 +0000
- Subject: [Bug manual/12986] fscanf scan sets do not support embedded character classes
- Auto-submitted: auto-generated
- References: <bug-12986-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12986
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugdal at aerifal dot cx
Resolution| |INVALID
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2011-07-16 00:50:30 UTC ---
The scanf family of functions has a formal specification in the C standard -
and also in the POSIX standard, which defers to C, but which you can easily
read online at:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/fscanf.html
You cannot simply add features to scanf which would break conforming programs.
In particular, the format string "%[[:alpha:]]" matches a string containing
only characters from the set { [, :, a, l, p, h } followed by a literal ].
Please also mark the openSUSE bug RESOLVED/INVALID.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.