Blame SOURCES/system-config-printer-utf8-965578.patch

0a882b
diff -up system-config-printer-1.4.1/printerproperties.py.utf8-965578 system-config-printer-1.4.1/printerproperties.py
0a882b
--- system-config-printer-1.4.1/printerproperties.py.utf8-965578	2013-05-21 17:20:20.853036185 +0100
0a882b
+++ system-config-printer-1.4.1/printerproperties.py	2013-05-21 17:21:56.763452869 +0100
0a882b
@@ -65,10 +65,14 @@ class PrinterPropertiesDialog(GtkGUI):
0a882b
         'dialog-closed': ( GObject.SIGNAL_RUN_LAST, None, ()),
0a882b
         }
0a882b
 
0a882b
-    printer_states = { cups.IPP_PRINTER_IDLE: _("Idle"),
0a882b
-                       cups.IPP_PRINTER_PROCESSING: _("Processing"),
0a882b
-                       cups.IPP_PRINTER_BUSY: _("Busy"),
0a882b
-                       cups.IPP_PRINTER_STOPPED: _("Stopped") }
0a882b
+    printer_states = { cups.IPP_PRINTER_IDLE:
0a882b
+                           _("Idle").decode ('utf-8'),
0a882b
+                       cups.IPP_PRINTER_PROCESSING:
0a882b
+                           _("Processing").decode ('utf-8'),
0a882b
+                       cups.IPP_PRINTER_BUSY:
0a882b
+                           _("Busy").decode ('utf-8'),
0a882b
+                       cups.IPP_PRINTER_STOPPED:
0a882b
+                           _("Stopped").decode ('utf-8') }
0a882b
 
0a882b
     def __init__(self):
0a882b
         GObject.GObject.__init__ (self)
0a882b
@@ -1635,7 +1639,8 @@ class PrinterPropertiesDialog(GtkGUI):
0a882b
         debugprint ("update printer properties")
0a882b
         printer = self.printer
0a882b
         self.entPMakeModel.set_text(printer.make_and_model)
0a882b
-        state = self.printer_states.get (printer.state, _("Unknown"))
0a882b
+        state = self.printer_states.get (printer.state,
0a882b
+                                         _("Unknown").decode ('utf-8'))
0a882b
         reason = printer.other_attributes.get ('printer-state-message', '')
0a882b
         if len (reason) > 0:
0a882b
             state += ' - ' + reason