[Top][All Lists]

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

[bug #18666] 'grep --color -i A' does not colour output in non-UTF8 loca

From: Benno Schulenberg
Subject: [bug #18666] 'grep --color -i A' does not colour output in non-UTF8 locale
Date: Mon, 01 Jan 2007 14:56:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061226 Firefox/


                 Summary: 'grep --color -i A' does not colour output in
non-UTF8 locale
                 Project: grep
            Submitted by: bens
            Submitted on: Monday 01/01/2007 at 15:56
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



The following commands all colour the a's and A's in their output:

  LC_ALL=en_GB.utf8  grep --color -i  a  file
  LC_ALL=en_GB.utf8  grep --color -i  A  file
  LC_ALL=en_GB  grep --color -i  a  file
  LC_ALL=C  grep --color -i  a  file

But these two commands do not:

  LC_ALL=en_GB  grep --color -i  A  file
  LC_ALL=C  grep --color -i  A  file

The combination of option -i with an uppercase letter in the search pattern
and a non-UTF8 locale makes colourisation fail.

(That is: with grep from CVS.  With grep-2.5.1 it works fine.)


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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