Bug#725799: system-config-printer freezes in the "New Printer" dialog with Russian locale
Vlad Orlov
monsta at inbox.ru
Tue Oct 8 14:54:06 UTC 2013
Package: system-config-printer
Version: 1.4.1-4
Severity: normal
Steps to reproduce:
1. Run system-config-printer.
2. Click "Add".
3. Enter your password in the window that appears.
4. See the program freeze.
In the console you can see this error message:
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/asyncconn.py", line 91, in reply_handler
self._reply_handler (self, self._reply_data, *args)
File "/usr/share/system-config-printer/asyncconn.py", line 209, in _subst_reply_handler
reply_handler (self, *args)
File "/usr/lib/python2.7/dist-packages/cupshelpers/cupshelpers.py", line 637, in _reply_handler
self._client_reply_handler (connection, devices)
File "/usr/share/system-config-printer/newprinter.py", line 1660, in <lambda>
current_uri))
File "/usr/share/system-config-printer/newprinter.py", line 1690, in local_devices_reply
self.add_devices (result, current_uri)
File "/usr/share/system-config-printer/newprinter.py", line 2050, in add_devices
self.devices.sort()
File "/usr/share/system-config-printer/PhysicalDevice.py", line 230, in __cmp__
return cmp (self.devices[0], other.devices[0])
File "/usr/lib/python2.7/dist-packages/cupshelpers/cupshelpers.py", line 614, in __cmp__
other.info.encode ('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
The error does not appear if you set the locale to system default (i.e. run LC_ALL=C system-config-printer).
More information about the pkg-gnome-maintainers
mailing list