First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 76192
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michael Mauch <michael.mauch@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 76192 depends on: Show dependency tree
Bug 76192 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-30 18:13 0000
Two bugs from Debian's BTS relating to grep and UTF-8, both also seen on
Gentoo. The one mentioned in the URL above:

# echo utf breaks grep | LC_ALL=en_US.utf8 grep "[A-Z]"
utf breaks grep
#

And the one from
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249245&archive=yes>:

# echo Y | LC_ALL=en_US.utf8 egrep -i '[y]'
#                                        



Reproducible: Always
Steps to Reproduce:
1. Set your locale to *.utf8.
2. Use grep to search for plain old 7 bit characters.


Actual Results:  
See Details.

Expected Results:  
The first expression should find nothing, because there are no uppercase
characters in the input.

The second expression should print the "Y", because it's an uppercase "y".

The expected results are printed with locales that are not *.utf8.

grep-2.5.1a from the GNU mirrors does not fix these problems (I tested that).

<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249245&archive=yes>
apparently
was fixed by the Debian guys.

------- Comment #1 From Michael Mauch 2004-12-31 01:10:27 0000 -------
Both of these problems are fixed in the CVS version:

# echo utf breaks grep | LC_ALL=en_US.utf8 ./grep "[A-Z]"
# echo Y | LC_ALL=en_US.utf8 ./egrep -i '[y]'
Y
#

------- Comment #2 From Stian Skjelstad 2004-12-31 13:24:10 0000 -------
Is this releated to the sed bugs I have seen refered where people are seeing
odd results when using estonian (I remember right) locals and [a-z] ranges ?

------- Comment #3 From Ciaran McCreesh 2004-12-31 14:35:52 0000 -------
Comment #2 -- no, not really.

------- Comment #4 From SpanKY 2005-01-05 21:37:17 0000 -------
added deb patch to 2.5.1-r7

First Last Prev Next    No search results available      Search page      Enter new bug