[luatex] luatex problem with file with umlauts on windows 10

Ulrike Fischer luatex at nililand.de
Sun Apr 26 17:12:08 CEST 2020


Am Sun, 26 Apr 2020 11:00:50 +0100 schrieb Philip Taylor:

> Trying to understand why Akira-san had written :
> 
>>
>>         local function is_texlive ()
>>              local a = kpse.var_value ('command_line_encoding')
>>              if a
>>              then
>>                    return true
>>              else
>>                    return false
>>              end
>>         end
> 
> rather than
> 
>>         local function is_texlive ()
>>              local a = kpse.var_value ('command_line_encoding')
>>              return a
>>         end
> 

because a is = "utf-8" and  not "true" in texlive. 

Try 

\directlua{ local a = kpse.var_value ('command_line_encoding')
print(a)}


> Could a Lua expert possibly explain why OFILE is reporting 'nil'
> for "grüße.tex", please ?  Both are in the directory from which I
> am issuing the TeXLua command.

Because as Akira mentioned in a later posting kpse in a texlua
script handles file names differently than kpse in a luatex
document. You need to convert the file name before passing it to
kpse.


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/



More information about the luatex mailing list.