This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.18-691-g9878ad4
- From: neleai at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 23 Dec 2013 16:55:53 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.18-691-g9878ad4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 9878ad46907ac57c49d5f92931845b7c4d37eb03 (commit)
from fb55fcd21a125fc3bf9cc86330ad66dfc681df66 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=9878ad46907ac57c49d5f92931845b7c4d37eb03
commit 9878ad46907ac57c49d5f92931845b7c4d37eb03
Author: OndÅ?ej BÃlka <neleai@seznam.cz>
Date: Mon Dec 23 17:44:47 2013 +0100
Clarify that scanf does not use character classes. Fixes bug 12986
Update documentation to say that scanf ("%[[:alpha:]]", c) does not read
alphabetic characters but is parsed literarily.
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 30630ca..7dcacd8 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -3672,7 +3672,7 @@ 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:
+in regular expressions for explicit sets of characters. As special cases:
@itemize @bullet
@item
@@ -3692,6 +3692,10 @@ the characters listed.
The @samp{%[} conversion does not skip over initial whitespace
characters.
+Note that the @dfn{character class} syntax available in character sets
+that appear inside regular expressions (such as @samp{[:alpha:]}) is
+@emph{not} available in the @samp{%[} conversion.
+
Here are some examples of @samp{%[} conversions and what they mean:
@table @samp
-----------------------------------------------------------------------
Summary of changes:
manual/stdio.texi | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources