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

z z z23571113 at gmail.com
Tue Nov 7 18:51:11 CET 2023


For example
```
xelatex.exe --interaction=errorstopmode --synctex=-1 "Banana🍌.tex"
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded
format=xelatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `Banana'.
<to be read again>
                   
<*> Banana
           .tex
(Press Enter to retry, or Control-Z to exit)
Please type another input file name:
```

This is caused by the binaries not treating the encoding of argv(filename)
on windows properly.
On windows, we can use wmain to get the wchar version of argv and then
convert it to utf-8 (type char).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20231108/1172fb1e/attachment.htm>


More information about the tex-live mailing list.