Ticket #252 (Fixed)Tue Sep 28 21:16:47 UTC 2010
scanf %[
Reported by: | Ben Avison (25) | Severity: | Normal |
Part: | RISC OS: Module | Release: | |
Milestone: | Status | Fixed |
Details by Ben Avison (25):
Reported on gccsdk mailing list (thread “Different behaviour between scl and unixlib”) where there is a somewhat rambling discussion…
To characterise the problem more precisely, the (f|s)scanf format string conversion specifier %[ is supposed to match a nonempty character sequence (ISO/IEC 9899 p.286) but in practice it is matching an empty string if the first input character is not in the specified range.
Changelog:
Modified by Sprow (202) Wed, March 20 2013 - 08:35:49 GMT
- Status changed from Open to Fixed
Fixed in RISC_OSLib 5.76