From abde5ebd708efc0305d78a3370c9a3f0dcfbd657 Mon Sep 17 00:00:00 2001
From: Reuben Thomas <rrt@sc3d.org>
Date: Thu, 3 Feb 2011 23:34:05 +0000
Subject: [PATCH] doc: Improve [[:alnum:]] example.

 * doc/grep.in.1: Improve wording of [[:alnum:]] example.
 * doc/grep.texi: ditto.
---
 doc/grep.in.1 |    9 ++++-----
 doc/grep.texi |    6 +++---
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/doc/grep.in.1 b/doc/grep.in.1
index e9b4589..6026157 100644
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -676,11 +676,10 @@ and
 .BR [:xdigit:].
 For example,
 .B [[:alnum:]]
-means
-.BR [0\-9A\-Za\-z] ,
-except the latter form depends upon the C locale and the
-\s-1ASCII\s0 character encoding, whereas the former is independent
-of locale and character set.
+means the character class of numbers and
+letters in the current locale. In the C locale and \s-1ASCII\s0
+character set encoding, this is the same as
+.BR [0-9A-Za-z] .
 (Note that the brackets in these class names are part of the symbolic
 names, and must be included in addition to the brackets delimiting
 the bracket expression.)
diff --git a/doc/grep.texi b/doc/grep.texi
index da27aa1..1613c78 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -1257,9 +1257,9 @@ Hexadecimal digits:
 @code{0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f}.
 
 @end table
-For example, @samp{[[:alnum:]]} means @samp{[0-9A-Za-z]}, except the latter
-depends upon the @samp{C} locale and the @sc{ascii} character
-encoding, whereas the former is independent of locale and character set.
+For example, @samp{[[:alnum:]]} means the character class of numbers and
+letters in the current locale. In the @samp{C} locale and @sc{ascii}
+character set encoding, this is the same as @samp{[0-9A-Za-z]}.
 (Note that the brackets in these class names are
 part of the symbolic names, and must be included in addition to
 the brackets delimiting the bracket expression.)
-- 
1.7.1

