bug-grep
[Top][All Lists]
Advanced

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

[bug #18633] regular expressions case-insensitivity


From: Benno Schulenberg
Subject: [bug #18633] regular expressions case-insensitivity
Date: Sat, 30 Dec 2006 20:28:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061226 Firefox/1.5.0.9

Follow-up Comment #3, bug #18633 (project grep):

> I've also tested LC_ALL-en_US.UTF-8 and this suffers from the
> same problem.

Well, it's not really a problem, it's how it's supposed to work.

> http://www.gnu.org/software/grep/doc/grep_8.html#IDX178
> "It matches any single character that sorts between the two
> characters, inclusive, using the locale's collating sequence 
> and character set"

Read on a bit: "Many locales sort characters in dictionary order, and in
these locales `[a-d]' is typically not equivalent to `[abcd]'; it might be
equivalent to `[aBbCcDd]', for example."

If you do not like that ordering, set somewhere in your startup or login
scripts 'export LC_COLLATE=POSIX'.



    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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