|
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:1.8.0.9) Gecko/20061226 Firefox/1.5.0.9 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |