On 2010-07-21 02:23 +0200, Samuel Thibault wrote:
> Package: grep
> Version: 2.6.3-3
> Severity: normal
>
> Hello,
>
> $ echo cla | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
> $ echo cle | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
> cle
> found
> $ echo clA | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
> clA
> found
> $ echo clE | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
> clE
> found
> $
> $ echo cle | LC_ALL=C grep '\<cl[A-Z]' && echo found
> $ echo cle | LC_ALL=C grep 'cl[A-Z]' && echo found
> $
>
> So cla doesn't match \<cl[A-Z] but cle does!
This is because collation in fr_FR is something like aAbB...zZ, so 'a'
is outside of the [A-Z] range. You can see the same in bash:
$ touch cl{A,a,e,E}
$ LC_ALL=fr_FR bash -c 'echo cl[A-Z]'
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]