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

Alan Munn amunn at gmx.com
Wed Aug 10 16:55:41 CEST 2011


On Aug 10, 2011, at 10:34 AM, Ulrike Fischer wrote:

> Am Wed, 10 Aug 2011 09:50:00 -0400 schrieb Alan Munn:
> 
>> On Aug 10, 2011, at 9:41 AM, Ulrike Fischer wrote:
>> 
>>> Am Wed, 10 Aug 2011 14:10:41 +0200 schrieb Arno Trautmann:
>>> 
>>>> Ulrike Fischer wrote:
>>>>> Whoever thought that utf8 and unicode would make it easier to use
>>>>> file names with non-ascii chars should reconsider this view.
>>>> 
>>>> [1] arno at robocat> xelatex äöß∀ℵ∩Π∈.tex
>>>> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
>>>> restricted \write18 enabled.
>>>> entering extended mode
>>>> (./äöß∀ℵ∩Π∈.tex
>>>> LaTeX2e <2011/06/27>
>>>> 
>>>> [1] arno at robocat> lualatex äöß∀ℵ∩Π∈.tex
>>>> This is LuaTeX, Version beta-0.70.1-2011061410 (rev 4277)
>>>> restricted \write18 enabled.
>>>> (./äöß∀ℵ∩Π∈.tex
>>>> LaTeX2e <2011/06/27>
>>>> 
>>>> Using TeX live 2011 on a 64bit Linux, everything works fine here; 2010 
>>>> also works.
>>>> Whoever thought that using windows would make anything easier should 
>>>> reconsider this view.
>>> 
>>> ;-)
>>> 
>>> What happens if you try to compile this 8-bit encoded document with
>>> pdflatex
>>> 
>>> \documentclass{article}
>>> \usepackage[ansinew]{inputenc}
>>> \usepackage[T1]{fontenc}
>>> \begin{document}
>>> \input{tüte}
>>> \end{document}
>>> 
>>> (with and without that tüte.tex exists)
>>> 
>> 
>> 
>> On OS X:
>> 
>> ! LaTeX Error: File `t√$\relax {\begingroup 1\endgroup \over 4}$te.tex' not fou
>> nd.
> 
> Hm. This looks as if the "ü" has two bytes and the second is 1/4 so
> my guess is that you didn't encoded the file in ansinew but in utf8.
> (utf8-ü = Ã1/4 in ansinew).


Yes, you're right.  Sorry for the noise. With the file converted from utf8 to cp1252 (=ansinew according to the inputenc docs) I just get 

! LaTeX Error: File `t?te.tex' not found.


Alan
-- 
Alan Munn
amunn at gmx.com







More information about the tex-live mailing list