[luatex] Accented characters on Windows / lfs

Patrick Gundlach patrick at gundla.ch
Fri Sep 28 09:19:36 CEST 2018


Hello all,

I have a problem with Windows, accented characters and lfs.

My code is something like this:


for entry in lfs.dir(dir) do
  ...
end

and I have a file named 'cöw.pdf'

(LATIN SMALL LETTER O WITH DIAERESIS, U+00F6)

and the "entry" variable above has the bytes

63 F6 77 2E 70 64 66
c  ö  w  .  p  d  f


So the ö is encoded as F6.

Is it possible to get utf8 encoding there? Or do I need a mapping such as:

filename on disk -> utf8 -> filename on disk (for file access)?

Any advice on this topic?

Patrick







More information about the luatex mailing list