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

Manuel Pégourié-Gonnard mpg at elzevir.fr
Thu Aug 11 15:51:03 CEST 2011


Le 10/08/2011 23:03, Philipp Stephani a écrit :
> 2011/8/10 Ulrike Fischer <news3 at nililand.de>:
>>
>> When I try to compile a "büro.tex" with xelatex I get a quite
>> curious error (miktex on win xp)
>>
>> I:\Z-Test>xelatex büro
>> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9)
>> entering extended mode
>> ! Undefined control sequence.
>> <*> b^^?^^³
>>           ro
>> ? x
>> No pages of output.
>>
>> I get a similar error with miktex 2.8 on a win7 (only the umlaut is
>> encoded differently on the terminal).
> 
> Seems that the XeTeX program doesn't read the command line correctly.
> It should use the UTF-16 functions (GetCommandLineW) or any of its
> wrappers, e.g.
>    int main(int argc, wchar_t **argv)
> using Visual Studio.
> 
Yes, this is why the problem is specific to windows: on Unix, a filename is an
opaque string of bytes, so everything works as long as your shell (or file
manager) and your document encode the character as the same string of bytes.

Manuel.


More information about the tex-live mailing list