← Back to team overview

desktop-packages team mailing list archive

[Bug 1400232] Re: system-config-printer crash UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1441: invalid continuation byte

 

Tim, it seems that system-config-printer needs some facility to make it
non-fatal when a (corrupted, broken, ...) PPD file containing bytes
which cannot get UTF-8 decoded. Can you have a look?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1400232

Title:
  system-config-printer crash UnicodeDecodeError: 'utf-8' codec can't
  decode byte 0xe9 in position 1441: invalid continuation byte

Status in system-config-printer package in Ubuntu:
  Confirmed

Bug description:
  system-config-printer crash with the following traceback :

  sramage@japc09:~$ system-config-printer
  Traceback (most recent call last):
    File "/usr/share/system-config-printer/asyncipp.py", line 191, in send_reply
      handler (self._conn, result)
    File "/usr/share/system-config-printer/asyncpk1.py", line 164, in _ipp_reply_handler
      self._client_reply_handler (self._conn, *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/share/system-config-printer/ppdcache.py", line 79, in <lambda>
      self._got_ppd3 (c, name, r, callback),
    File "/usr/share/system-config-printer/ppdcache.py", line 153, in _got_ppd3
      self.fetch_ppd (name, callback, check_uptodate=False)
    File "/usr/share/system-config-printer/ppdcache.py", line 90, in fetch_ppd
      tmpf.writelines (f.readlines ())
    File "/usr/lib/python3.4/codecs.py", line 313, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1441: invalid continuation byte

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1400232/+subscriptions


References