Fixed encoding issue (bug #1023968).

Resolves: rhbz#1023968
This commit is contained in:
Tim Waugh 2013-10-30 17:27:38 +00:00
parent d3ca8545b4
commit 341c0b437c
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up system-config-printer-1.4.3/applet.py.utf8 system-config-printer-1.4.3/applet.py
--- system-config-printer-1.4.3/applet.py.utf8 2013-07-22 14:58:32.000000000 +0100
+++ system-config-printer-1.4.3/applet.py 2013-10-30 17:26:40.606867609 +0000
@@ -117,7 +117,7 @@ class NewPrinterNotification(dbus.servic
device = "%s %s" % (mfg, mdl)
else:
device = des
- text = _("No printer driver for %s.") % device
+ text = _("No printer driver for %s.").decode ('utf-8') % device
else:
text = _("No driver for this printer.")
n = Notify.Notification.new (title, text, 'printer')

View File

@ -1,13 +1,14 @@
Summary: A printer administration tool
Name: system-config-printer
Version: 1.4.3
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
URL: http://cyberelk.net/tim/software/system-config-printer/
Group: System Environment/Base
Source0: http://cyberelk.net/tim/data/system-config-printer/1.4/%{name}-%{version}.tar.xz
Patch1: system-config-printer-no-applet-in-gnome.patch
Patch2: system-config-printer-decorator.patch
Patch3: system-config-printer-utf8.patch
BuildRequires: cups-devel >= 1.2
BuildRequires: desktop-file-utils >= 0.2.92
@ -72,6 +73,9 @@ printers.
# Fixed typo in D-Bus signature decorator (bug #1023449).
%patch2 -p1 -b .decorator
# Fixed encoding issue (bug #1023968).
%patch3 -p1 -b .utf8
%build
%configure --with-udev-rules
@ -171,6 +175,9 @@ touch %buildroot%{_localstatedir}/run/udev-configure-printer/usb-uris
exit 0
%changelog
* Wed Oct 30 2013 Tim Waugh <twaugh@redhat.com> 1.4.3-3
- Fixed encoding issue (bug #1023968).
* Fri Oct 25 2013 Tim Waugh <twaugh@redhat.com> 1.4.3-2
- Fixed typo in D-Bus signature decorator (bug #1023449).