mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Take into account the file system encoding.
This commit is contained in:
parent
55417b50da
commit
a0afd3459f
@ -1026,6 +1026,8 @@ def convert_origin(document):
|
|||||||
origin = "stdin"
|
origin = "stdin"
|
||||||
else:
|
else:
|
||||||
origin = document.dir.replace('\\', '/')
|
origin = document.dir.replace('\\', '/')
|
||||||
|
if os.name != 'nt':
|
||||||
|
origin = unicode(origin, sys.getfilesystemencoding())
|
||||||
document.header[i:i] = ["\\origin " + origin]
|
document.header[i:i] = ["\\origin " + origin]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user