Bug: On Windows, Unicode file name not supported by tex binaries

ttk at t-lab.opal.ne.jp ttk at t-lab.opal.ne.jp
Tue Nov 14 14:36:26 CET 2023

Thank you for your reports and helpful discussion.

I have confirmed the error with plain tex inputs on Msys2 mingw64, Windows 11.
However, the results were found also on Windows Subsystem for Linux (Ubuntu).

(A) pdftex -ini -interaction nonstopmode -jobname=foo BananaXXX.tex
(B) euptex -ini -interaction nonstopmode -jobname=foo BananaXXX.tex
(C) xetex -ini -interaction nonstopmode -jobname=foo BananaXXX.tex

file name:
(1) Bananaбанан.tex (2byte UTF-8)
(2) Bananaバナナ.tex (3byte UTF-8)
(3) Banana🍌.tex (4byte UTF-8)

The input file is plain tex with UTF-8 text ::

The results on my environment (both Msys2, WSL)
(A) : OK for (1)(2)(3)
(B) : OK for (1)(2)(3)
(C) : OK for (1)(2), fail for (3)

The treatment of Unicode file name on Windows are very different from that of Linux.
However, the error seems not caused by the difference.
More study is required.

Takuji Tanaka

More information about the tex-live mailing list.