]> git.lyx.org Git - features.git/commitdiff
Take into account the file system encoding.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 17 May 2015 16:02:47 +0000 (18:02 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 17 May 2015 16:02:47 +0000 (18:02 +0200)
lib/lyx2lyx/lyx_2_2.py

index e225abf977ee43b9818b744642b3060a8fe63405..b52edbd872310ed41857e7eb0ebd126819237f13 100644 (file)
@@ -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]