[XeTeX] XeTeX and code page 65001

Philip TAYLOR P.Taylor at rhul.ac.uk
Wed Feb 8 13:13:31 CET 2012



d fulano wrote:

> Maybe try to say \relax to the first ** prompt and then
> type your command at the single * prompt that will appear.

> This is the recommended method from the texbook to run tex
> interactively, as the ** prompt is where someone puts a file name,
> and \relax enters interactive mode.

\relax will certainly prevent [Xe]TeX from interpreting
command-line input as a filename, but that did not seem
to be what it was doing anyway. Here is a further
transcript with the default code page (437) followed
by the UTF-8 code page 65001 :

> F:\>cd \
>
> F:\>xetex
> This is XeTeX, Version 3.1415926-2.2-0.9997.4 (Web2C 2010)
>  restricted \write18 enabled.
> **\relax
> entering extended mode
>
> *é\end
> [1]
> (see the transcript file for additional information)
> Output written on texput.pdf (1 page).
> Transcript written on texput.log.
>
> F:\>chcp 65001
> Active code page: 65001
>
> F:\>xetex
> This is XeTeX, Version 3.1415926-2.2-0.9997.4 (Web2C 2010)
>  restricted \write18 enabled.
> **\relax
> entering extended mode
>
>>
> ! Emergency stop.
> <*> \relax
>
> No pages of output.
> Transcript written on texput.log.

As you can see, the é, when entered in code page
65001, is interpreted as a Ctrl-z.

Philip Taylor


More information about the XeTeX mailing list