Cups Filter Falid with HP Laserjet

Bug #1656348 reported by Landarzar on 2017-01-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned

Bug Description

On Archlinux with HPLIP 3.16.11 i get the following error:

D [12/Jan/2017:19:52:58 +0100] [Job 1129] File \"/usr/share/hplip/base/sixext.py\", line 109, in to_bytes_utf8
D [12/Jan/2017:19:52:58 +0100] [Job 1129] return s.encode(\"utf-8\")
D [12/Jan/2017:19:52:58 +0100] [Job 1129] UnicodeEncodeError: \'utf-8\' codec can\'t encode characters in position 44-45: surrogates not allowed
D [12/Jan/2017:19:52:58 +0100] [Job 1129] PID 16062 (/usr/lib/cups/filter/hpps) stopped with status 1.

i fixed it with, changing line 109 and line 113 in /usr/share/hplip/base/sixext.py to the following fixes the problem:
return s.encode("utf-8", errors="surrogateescape")

maybe you can include the fix upstream

Changed in hplip:
status: New → Fix Committed
Max Meyer (maxmeyer) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers