util/ProcessLogger.py
changeset 788 3cec473bef94
parent 726 ae63ccc29444
child 958 511bf048b8b7
--- a/util/ProcessLogger.py	Mon Jul 02 16:02:38 2012 +0200
+++ b/util/ProcessLogger.py	Tue Jul 17 21:25:28 2012 +0200
@@ -27,7 +27,7 @@
 import wx
 import subprocess, ctypes
 from threading import Timer, Lock, Thread, Semaphore
-import os
+import os, sys
 if os.name == 'posix':
     from signal import SIGTERM, SIGKILL
 
@@ -86,7 +86,10 @@
         else:
             self.Command = Command
             self.Command_str = subprocess.list2cmdline(self.Command)
-            
+        
+        self.Command = map(lambda x: x.encode(sys.getfilesystemencoding()),
+                           self.Command)
+        
         self.finish_callback = finish_callback
         self.no_stdout = no_stdout
         self.no_stderr = no_stderr