URL:
  <http://savannah.gnu.org/bugs/?18666>

                 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

    _______________________________________________________

Details:

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:

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

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



Reply via email to