bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32337] [:alnum:] depends on locale


From: Reuben Thomas
Subject: [bug #32337] [:alnum:] depends on locale
Date: Thu, 03 Feb 2011 13:03:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.17 (KHTML, like Gecko) Ubuntu/10.10 Chromium/11.0.656.0 Chrome/11.0.656.0 Safari/534.17

Follow-up Comment #1, bug #32337 (project grep):

The man page here is misleading. [:alnum:] does not mean a-zA-Z0-9, it means
"the set of characters with the letter and/or number property in the current
locale".

Grep's behavior is correct here, but the man page could do with improvement.
Suggested rewording:

For example, [[:alnum:]] means the character class of numbers and letters in
the current locale (in the C locale and ASCII character set encoding, this is
the same as [0-9A-Za-z]).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32337>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]