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

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 01 Jan 2007 02:56:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Dec 2009 09:11:30 AM UTCbonziniStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1