mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +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"
|
||||
else:
|
||||
origin = document.dir.replace('\\', '/')
|
||||
if os.name != 'nt':
|
||||
origin = unicode(origin, sys.getfilesystemencoding())
|
||||
document.header[i:i] = ["\\origin " + origin]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user