This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ #12986] Clarify that scanf does not use character classes.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Mon, 21 Oct 2013 09:34:42 +0200
- Subject: [PATCH][BZ #12986] Clarify that scanf does not use character classes.
- Authentication-results: sourceware.org; auth=none
Hi,
here is patch that clarifies a documentation a bit by explicitly saying
that character classes are not supported.
[BZ #12986]
* manual/stdio.texi: Clarify documentation.
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 30630ca..1be5fd9 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -3671,8 +3671,8 @@ of the width or precision by @code{MB_CUR_MAX}.
To read in characters that belong to an arbitrary set of your choice,
use the @samp{%[} conversion. You specify the set between the @samp{[}
-character and a following @samp{]} character, using the same syntax used
-in regular expressions. As special cases:
+character and a following @samp{]} character, using similar syntax an one
+used in regular expressions. As special cases:
@itemize @bullet
@item
@@ -3689,6 +3689,8 @@ then the set of allowed input characters is the everything @emph{except}
the characters listed.
@end itemize
+Note that character classes are not supported.
+
The @samp{%[} conversion does not skip over initial whitespace
characters.