This is the mail archive of the libc-alpha@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]

[PATCH][BZ #12986] Clarify that scanf does not use character classes.


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.
 


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