Blame SOURCES/system-config-printer-utf8-964673.patch
|
|
0a882b |
diff -up system-config-printer-1.4.1/statereason.py.utf8-964673 system-config-printer-1.4.1/statereason.py
|
|
|
0a882b |
--- system-config-printer-1.4.1/statereason.py.utf8-964673 2013-02-19 16:18:36.000000000 +0000
|
|
|
0a882b |
+++ system-config-printer-1.4.1/statereason.py 2013-05-21 17:20:50.123163282 +0100
|
|
|
0a882b |
@@ -1,6 +1,6 @@
|
|
|
0a882b |
#!/usr/bin/python
|
|
|
0a882b |
|
|
|
0a882b |
-## Copyright (C) 2007, 2008, 2009, 2010, 2012 Red Hat, Inc.
|
|
|
0a882b |
+## Copyright (C) 2007, 2008, 2009, 2010, 2012, 2013 Red Hat, Inc.
|
|
|
0a882b |
## Authors:
|
|
|
0a882b |
## Tim Waugh <twaugh@redhat.com>
|
|
|
0a882b |
## Jiri Popelka <jpopelka@redhat.com>
|
|
|
0a882b |
@@ -121,7 +121,7 @@ class StateReason:
|
|
|
0a882b |
try:
|
|
|
0a882b |
(title, text) = messages[self.get_reason ()]
|
|
|
0a882b |
try:
|
|
|
0a882b |
- text = text % self.get_printer ()
|
|
|
0a882b |
+ text = text.decode ('utf-8') % self.get_printer ()
|
|
|
0a882b |
except TypeError:
|
|
|
0a882b |
# Probably an incorrect translation, missing a '%s'.
|
|
|
0a882b |
pass
|
|
|
0a882b |
@@ -148,7 +148,8 @@ class StateReason:
|
|
|
0a882b |
except RuntimeError:
|
|
|
0a882b |
pass
|
|
|
0a882b |
|
|
|
0a882b |
- text = _("Printer '%s': '%s'.") % (self.get_printer (), reason)
|
|
|
0a882b |
+ text = (_("Printer '%s': '%s'.").decode ('utf-8') %
|
|
|
0a882b |
+ (self.get_printer (), reason))
|
|
|
0a882b |
return (title, text)
|
|
|
0a882b |
|
|
|
0a882b |
def get_tuple (self):
|