Branch 'develop' - liveusb/creator.py

Luke Macken lmacken at fedoraproject.org
Tue Jan 15 17:47:20 UTC 2013


 liveusb/creator.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6d2f5450a364ef73c8488d1f71759cc5f790e91b
Author: Luke Macken <lmacken at redhat.com>
Date:   Tue Jan 15 12:43:38 2013 -0500

    Apply a patch from ivanromanov to fix non-ascii file names ([ticket:631])

diff --git a/liveusb/creator.py b/liveusb/creator.py
index 345b51a..bec1ecf 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -32,6 +32,7 @@ import shutil
 import time
 import os
 import re
+import sys
 
 from StringIO import StringIO
 from datetime import datetime
@@ -181,7 +182,7 @@ class LiveUSBCreator(object):
         """
         self.log.debug(cmd)
         if isinstance(cmd, unicode):
-            cmd = cmd.encode('utf-8', 'replace')
+            cmd = cmd.encode(sys.getfilesystemencoding(), 'replace')
         self.output.write(cmd)
         proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
                                 stderr=subprocess.PIPE, stdin=subprocess.PIPE,




More information about the liveusb-creator mailing list