buggrep - Bugs: bug #18666, 'grep --color -i A' does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18666: 'grep --color -i A' does not colour output in non-UTF8 locale

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 01 Jan 2007 02:56:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 22 Dec 2009 09:11:30 AM UTC, comment #2: 

Dup of bug 12995.

Paolo Bonzini <bonzini>
Fri 04 Dec 2009 07:14:38 PM UTC, comment #1: 

Still reproducible.

Paolo Bonzini <bonzini>
Mon 01 Jan 2007 02:56:47 PM UTC, original submission:  

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.)

Benno Schulenberg <bens>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-22 bonzini StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code