[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: texi2dvi: locale-dependent error in egrep [A-z]
From: |
Eli Zaretskii |
Subject: |
Re: texi2dvi: locale-dependent error in egrep [A-z] |
Date: |
Wed, 31 Mar 2010 10:47:03 +0300 |
> Date: Tue, 30 Mar 2010 23:20:56 GMT
> From: address@hidden (Karl Berry)
> Cc: address@hidden
>
> Thanks for the report. I changed it to [A-Za-z] but I don't actually
> understand why [A-z] is invalid in UTF-8, including American English UTF-8.
>
> $ env LC_ALL=en_US.utf8 grep '[A-z]' /etc/issue
> grep: Invalid range end
>
> UTF-8 is the same as ASCII in this area, so where's the beef?
> Can you (or anyone) here explain?
Does it work to use [a-Z] instead? I think this has to do with a
different collating order under UTF-8, which is aAbB...zZ.
> Of course I know that [A-z] includes the ASCII characters between Z
> and a, namely [\]^_` which technically aren't allowed as DOS drive
> letters
Actually, DOS does allow these letters as drive specifiers. But DOS
emulations on Windows don't, so it's quite rare to see these drive
letters these days.