[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: texinfo.tex: non-ASCII support completely broken for XeTeX and LuaTe
From: |
Gavin Smith |
Subject: |
Re: texinfo.tex: non-ASCII support completely broken for XeTeX and LuaTeX |
Date: |
Sun, 25 Dec 2022 13:36:23 +0000 |
On Sun, Dec 25, 2022 at 07:19:01AM +0000, Werner LEMBERG wrote:
>
> [texinfo.tex 2022-12-19.22]
>
>
> Consider this input file
>
> ```
> \input texinfo
> ยท
> @bye
> ```
>
> (the character is U+00B7, MIDDLE DOT). Only pdfTeX produces this
> character; both XeTeX and LuaTeX silently discard it.
All the characters work with "@documentencoding UTF-8". UTF-8 is supposed
to be the default input encoding but evidently this isn't the case for
XeTeX and LuaTeX.
I have tested the change below both with and without the @documentencoding
declaration as well as with @documentencoding ISO-8859-1 and it seems to
work properly. I committed this change in version 2022-12-25.13.
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -11233,13 +11231,15 @@ directory should work if nowhere else does.}
\relax
}
-% Define all Unicode characters we know about. This makes UTF-8 the default
-% input encoding and allows @U to work.
+% Define all Unicode characters we know about
+% and make UTF-8 the default encoding.
\iftxinativeunicodecapable
\nativeunicodechardefsatu
\else
\utfeightchardefs
\fi
+\documentencodingzzz{UTF-8}
+
\message{formatting,}