Bug#725882: system-config-printer: freezes in New Printer dialog with UnicodeEncodeError in _unpack_getDevices_reply
Zach Ploskey
zploskey at gmail.com
Wed Oct 9 16:12:10 UTC 2013
Package: system-config-printer
Version: 1.4.1-4
Severity: important
Steps to reproduce:
1. Run system-config-printer
2. Click the add button
3. Enter the password in the dialog
4. Wait a few seconds or try to use the dialogs
The widgets become unresponsive, though the window can still be moved. The
process has to be killed.
I receive this stack trace:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in
msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/share/system-config-printer/asyncpk1.py", line 115, in
_pk_reply_handler
self._client_reply_handler (self._conn, self._unpack_fn (*args))
File "/usr/share/system-config-printer/asyncpk1.py", line 442, in
_unpack_getDevices_reply
result_str[str (key)] = str (value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position
26: ordinal not in range(128)
It looks like the python code isn't handling the unicode correctly. Unicode
character (U+2019) is 'RIGHT SINGLE QUOTATION MARK'. The error occurs
regardless of whether I set LC_ALL=C as seemed to resolve another unicode issue
in #725799.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (50, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages system-config-printer depends on:
ii gir1.2-gdkpixbuf-2.0 2.28.2-1
ii gir1.2-glib-2.0 1.36.0-2+b1
ii gir1.2-gtk-3.0 3.8.4-1
ii gir1.2-notify-0.7 0.7.6-1
ii gir1.2-packagekitglib-1.0 0.8.10-2
ii gir1.2-pango-1.0 1.32.5-5+b1
ii gnome-icon-theme 3.8.3-1
ii python-cups 1.9.62-2
ii python-cupshelpers 1.4.1-4
ii python-dbus 1.2.0-2+b1
ii python-gi 3.8.2-1
ii python-libxml2 2.9.1+dfsg1-3
pn python:any <none>
Versions of packages system-config-printer recommends:
ii cups-pk-helper 0.2.5-1
ii gir1.2-gnomekeyring-1.0 3.4.1-1
ii python-smbc 1.0.6-1+b1
ii system-config-printer-udev 1.4.1-4
Versions of packages system-config-printer suggests:
pn python-gnomekeyring <none>
pn sessioninstaller <none>
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list