This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/12986] fscanf scan sets do not support embedded character classes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]