[tex-live] xelatex + files with non-ascii chars

Ulrike Fischer news3 at nililand.de
Wed Aug 10 13:40:51 CEST 2011


Am Wed, 10 Aug 2011 13:03:21 +0200 schrieb Martin Schröder:

> 2011/8/10 Martin Schröder <martin at oneiros.de>:
>> ! I can't find file `ÕÀ╝ÓáäΣ.tex'.
>> <*> ÕÀ╝ÓáäΣ.tex
> 
> It works with pdflatex (although the logged filename is garbage).
> 
> lualatex fails differently:
> 
> C:\Users\ms\tmp>lualatex äöüßÄÖÜ.tex
> This is LuaTeX, Version beta-0.70.0-2011051509 (rev 4264)
>  restricted \write18 enabled.
> ! String contains an invalid utf-8 sequence.
> <*>
>     õ÷³▀─Í▄.tex
> ?

I would say this means that your shell is passing the file name to
luatex 8-bit encoded and the byte sequence is no valid ut8. I get
the same on win7 while on winxp the name works fine. 

I don't think that this is the same problem as the xetex error. 

It is simply due that as not every byte sequence is valid utf8
applications that expect utf8 have problems 8-bit-input. A similar
problem just appeared with pdflatex + miktex. If you use e.g.
\input{tüte} in an 8-bit-encoded (e.g. ansinew) document you get the
equivalent windows api error:

% latex.exe: Windows API error 1113: Für das Unicode
% -Zeichen ist kein zugeordnetes Zeichen in der Mehrbytecodepage
vorhanden.
% Drücken Sie eine beliebige Taste . . .

Whoever thought that utf8 and unicode would make it easier to use
file names with non-ascii chars should reconsider this view. 

-- 
Ulrike Fischer 



More information about the tex-live mailing list