system-config-printer crash UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1441: invalid continuation byte (only UTF-8-encoded PPD files can be used)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
system-config-printer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
system-
sramage@japc09:~$ system-
Traceback (most recent call last):
File "/usr/share/
handler (self._conn, result)
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
reply_handler (self, *args)
File "/usr/share/
self._got_ppd3 (c, name, r, callback),
File "/usr/share/
self.fetch_ppd (name, callback, check_uptodate=
File "/usr/share/
tmpf.writelines (f.readlines ())
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1441: invalid continuation byte
[Impact]
It is impossible to set up or manipulate a printer with a PPD file which is not UTF-8-encoded and no plain ASCII. Even worse, if such a PPD is installed into the system's PPD repository, the corresponding printer(s) will not auto-setup.
[Test Case]
Take a PPD file which is not UTF-8-encoded, for example a PPD file for Windows with Windows-1252 encoding. Try to set up a que with it or to change an existing queue to use it by means of system-
With the proposed package the PPD can be used without problems.
[Regression Potential]
The changes are very simple and therefore the regression potential is low.
Changed in system-config-printer (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in system-config-printer (Ubuntu Utopic): | |
status: | New → Triaged |
description: | updated |
summary: |
system-config-printer crash UnicodeDecodeError: 'utf-8' codec can't - decode byte 0xe9 in position 1441: invalid continuation byte + decode byte 0xe9 in position 1441: invalid continuation byte (only + UTF-8-encoded PPD files can be used) |
Changed in system-config-printer (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Status changed to 'Confirmed' because the bug affects multiple users.