[rhelv6-beta-list] My first experiences with RHEL6 beta
James Antill
jantill at redhat.com
Thu Jun 17 15:16:47 UTC 2010
On Thu, 2010-06-17 at 08:53 +0100, John McNulty wrote:
> But sometimes it's not the easiest thing to trust upstream to do
> what's right when bugs that affect all distros go unfixed for years.
> e.g.
>
> [john at dsv03-pv1 ~]$ echo $LANG
> en_GB.UTF-8
> [john at dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null
>
> real 9m29.275s
>
> [john at dsv03-pv1 ~]$ export LANG=C
> [john at dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null
>
> real 0m0.116s
>
> This little gem has been hanging around since 2005
> (http://savannah.gnu.org/bugs/?14472)
That looks like a different bug to me "greping for a needle of ascii
text" vs. "grepping for what could be utf8 within ascii text haystack".
And, as far as I know, the former _has_ been fixed.
With the later the "problem" is that you are asking for different
answers if the haystack contains utf-8:
% echo ¼¼ | LANG=C grep '^..$'
% echo ¼¼ | LANG=en_US.UTF-8 grep '^..$'
¼¼
%
...and getting the correct answer is much harder to provide. But, of
course, feel free to open a bugzilla against RHEL-6 grep/egrep.
--
James Antill <jantill at redhat.com>
Red Hat
More information about the rhelv6-beta-list
mailing list