]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/fig2pdftex.py
* lib/scripts/TeXFiles.py:
[lyx.git] / lib / scripts / fig2pdftex.py
index 19207d107baefe5e64ef280b3d3042045022361a..6f711bffbce6f2e26595b8e3ca840ef46000a718 100644 (file)
@@ -28,7 +28,7 @@
 #
 
 
-import os, sys, re, locale
+import os, sys, re
 
 
 def runCommand(cmd):
@@ -44,12 +44,7 @@ def runCommand(cmd):
 if len(sys.argv) != 3:
     sys.exit(1)
 
-language, output_encoding = locale.getdefaultlocale()
-if output_encoding == None:
-    output_encoding = 'latin1'
-
-input = unicode(sys.argv[1], 'utf8').encode(output_encoding)
-output = unicode(sys.argv[2], 'utf8').encode(output_encoding)
+input, output = sys.argv[1:]
 
 # Fail silently if the file doesn't exist
 if not os.path.isfile(input):