2 commits - liveusb/gui.py

Luke Macken lmacken at fedoraproject.org
Thu Nov 13 23:33:30 UTC 2008


 liveusb/gui.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cf309bf1a51a349240c8b3ac3ab95611bef5a403
Merge: e62709a... 67326c8...
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Nov 13 18:33:18 2008 -0500

    Merge branch 'master' of ssh://git.fedorahosted.org/git/liveusb-creator



commit e62709af2c776193b0f83ac6d9579647d83c036d
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Nov 13 18:31:13 2008 -0500

    Do not encode our unicode strings back to UTF-8 before rendering in QTextArea.
    This fixes the UTF-8 rendering issues mentioned in Bug #471367.

diff --git a/liveusb/gui.py b/liveusb/gui.py
index 6e32ee0..54ee38a 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -213,7 +213,7 @@ class LiveUSBLogHandler(logging.Handler):
 
     def emit(self, record):
         if record.levelname in ('INFO', 'ERROR'):
-            self.cb(record.msg.encode('utf8', 'replace'))
+            self.cb(record.msg)
 
 
 class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
@@ -316,7 +316,7 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
         self.progressBar.setMaximum(value)
 
     def status(self, text):
-        self.textEdit.append(text.encode('utf8', 'replace'))
+        self.textEdit.append(text)
 
     def enable_widgets(self, enabled=True):
         self.startButton.setEnabled(enabled)




More information about the liveusb-creator mailing list