]> git.lyx.org Git - features.git/commitdiff
Fix bug #10218, in a way less invasive than it has been fixed in
authorRichard Heck <rgheck@lyx.org>
Sat, 18 Jun 2016 16:59:02 +0000 (12:59 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 18 Jun 2016 16:59:02 +0000 (12:59 -0400)
master. Patch due to Enrico.

lib/lyx2lyx/lyx_2_2.py

index 37a26be592b04ab9e8a08a01efc7246c0bbd4ead..d969179652ffc4eb4b56ff1d42cfdd5c632cf0f6 100644 (file)
@@ -1154,8 +1154,7 @@ def convert_origin(document):
             origin = document.dir.replace('\\', '/') + '/'
         else:
             origin = os.path.join("/systemlyxdir", relpath).replace('\\', '/') + '/'
-        if os.name != 'nt':
-            origin = unicode(origin, sys.getfilesystemencoding())
+        origin = unicode(origin, sys.getfilesystemencoding())
     document.header[i:i] = ["\\origin " + origin]