Description of problem: UTF-8 enabled: --- snipp --- [robert@tux robert]$ export LANG=de_DE.UTF-8 # this is also RH default [robert@tux robert]$ echo Y | grep -i '[y,Y]' [robert@tux robert]$ --- snapp --- UTF-8 disabled: --- snipp --- [robert@tux robert]$ export LANG=de_DE.iso88591 # alternative: de_DE@euro [robert@tux robert]$ echo Y | grep -i '[y,Y]' Y [robert@tux robert]$ --- snapp --- The behaviour without (!) UTF-8 is correct...so there's something going wrong :-( Version-Release number of selected component (if applicable): grep-2.5.1-7 (and maybe before, too) up to grep-2.5.1-26 How reproducible & Steps to Reproduce: Everytime, see above. Actual results: It seems so, that there's a problem at grep using UTF-8...for debugging I attached you two strace logs. Expected results: Using "echo Y | grep -i '[y,Y]'" with any locale and charset ;-) Additional info: This issue is also affected to Fedora Core 1, Fedora Core 2 and Red Hat Enterprise Linux 3, I only reported it to Fedora Core devel, because it's the active development tree.
Created attachment 100274 [details] grep-non-utf8.log
Created attachment 100275 [details] grep-utf8.log
Fixed package is grep-2.5.1-27. Thanks for reporting it.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-449.html