]> git.lyx.org Git - features.git/commit
Always use utf-8 in scripts with Python3
authorEnrico Forestieri <forenr@lyx.org>
Thu, 25 Jan 2024 09:17:23 +0000 (10:17 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 25 Jan 2024 09:17:23 +0000 (10:17 +0100)
commit48a065e89effb4029c779328498f62f751c4b12d
tree837cea765a980b54f7f462efa547deb07b10c99d
parent40c90688768ca0ab9573660cfbd9c4db6b0bdeba
Always use utf-8 in scripts with Python3

In order to perform a conversion of graphic format LyX generates
a python script containing the path of the original file to convert.
While Python2 needs the file in the native encoding of the OS, in
Python3 the encoding has to strictly be how announced by the first
line of a script, in our case utf-8.
src/graphics/GraphicsConverter.cpp