Bug#586134: texi2dvi: improper call to grep
Le -10/01/-28163 20:59, Hilmar Preuße a écrit :
> hille@drachi:~$ egrep '^(/|[A-z]:/)' a.tex
> hille@drachi:~$
> hille@drachi:~$ locale
> LANG=en_US.UTF-8
> <etc.>
Err...
steph@sayshell:~$ LC_ALL=en_US.UTF-8 egrep '^(/|[A-z]:/)' /tmp/test.tex
egrep: Invalid range end
steph@sayshell:~$ echo $?
2
> Is this problem limited to the French locale? Do you eventually have
> a solution, perhap setting the locale to POSIX before running this
> command?
IMHO, it looks safer to set the locale to POSIX.
BTW, I'm not sure about the semantics of [A-z]: for example, does `
(which is between Z and a in ASCII) belong to it? If '[A-Za-z]' is
meant, then it's probably better to use that (or '[[:alpha:]]').
Cheers,
--
Stéphane
Reply to: