[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32337] [:alnum:] depends on locale
From: |
anonymous |
Subject: |
[bug #32337] [:alnum:] depends on locale |
Date: |
Thu, 03 Feb 2011 12:07:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.0.19) Gecko/2010120923 Iceweasel/3.0.6 (Debian-3.0.6-3) |
URL:
<http://savannah.gnu.org/bugs/?32337>
Summary: [:alnum:] depends on locale
Project: grep
Submitted by: None
Submitted on: Do 03 Feb 2011 12:07:11 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
In the grep man page it is written: "For example, [[:alnum:]]
means [0-9A-Za-z], except the latter form depends upon the C
locale and the ASCII character encoding, whereas the former is
independent of locale and character set."
However, in my UTF-8 environment (LANG=de_DE.UTF-8) I get
$ echo -e "Haus\nHäuser\n" | LANG=de_DE.UTF-8 ./grep -E '^[[:alnum:]]+$'
Haus
Häuser
$ echo -e "Haus\nHäuser\n" | LANG=C ./grep -E '^[[:alnum:]]+$'
Haus
>From the man-page I expected both cases to match only against the first line.
grep-version: 2.7 (also confirmed on 2.5.3 and 2.5.4)
debian lenny
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32337>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [bug #32337] [:alnum:] depends on locale,
anonymous <=