Am 30.03.2017 um 14:37 schrieb José Abílio Matos:

What about changing that line to:

os.write(fd, b'\\relax')

it should work for both versions, no?

No. This works for Python 2 but it does not fix the real problem I desribed:

inpname = shortPath(str(tmpfname, encoding)).replace('\\', '/')

failes because tmpfname is a byte-like object and no string.

As I also wrote Python 3 opens the file by default in binary mode. This is the bug, we must open it explicitly as text.

I don't know enough about Python and cannot provide a patch.

regards Uwe

Reply via email to