[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8
From: |
Johannes Meixner |
Subject: |
Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8 |
Date: |
Fri, 15 Jun 2012 15:59:03 +0200 (CEST) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
Hello,
On Jun 15 15:00 Johannes Meixner wrote (excerpt):
... not handled correctly in grep-2.7
Same with grep 2.12
-------------------------------------------------------------------------
$ export LC_ALL=el_GR.utf8 ; export LANG=el_GR.utf8
$ echo -e '\0316\0243\0316\0243' >SS
$ echo -e '\0316\0243\0317\0202' >Sf
$ echo -e '\0317\0203\0317\0202' >sf
$ echo -e '\0317\0203\0317\0203' >ss
$ grep -q -i -f SS ss && echo yes || echo no
yes
$ grep -q -i -f ss SS && echo yes || echo no
yes
$ grep -q -i -f Sf sf && echo yes || echo no
yes
$ grep -q -i -f sf Sf && echo yes || echo no
yes
$ grep -q -i -f SS sf && echo yes || echo no
no
$ grep -q -i -f sf SS && echo yes || echo no
no
$ export LC_ALL=de_DE.utf8 ; export LANG=de_DE.utf8
$ echo -e 'hei\0303\0237' >heif
$ echo 'HEISS' >HEISS
$ grep -q -i -f heif HEISS && echo yes || echo no
no
$ grep -q -i -f HEISS heif && echo yes || echo no
no
$ grep -V
grep (GNU grep) 2.12
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
-------------------------------------------------------------------------
Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer
- Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8, (continued)
Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8, Johannes Meixner, 2012/06/12
Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8, Johannes Meixner, 2012/06/14
Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8, Paolo Bonzini, 2012/06/15