Bug#574637: python-cupsutils: Problem parsing PPD attributes : UnicodeDecodeError: 'utf8' codec can't decode
Olivier Berger
olivier.berger at it-sudparis.eu
Fri Mar 19 15:41:08 UTC 2010
Package: python-cupsutils
Version: 1.0.0-6
Severity: normal
Hi.
I've tried and configure a Canon imagerunner 3225 printer using system-config-printer, and get the following traces :
raceback (most recent call last):
File "/usr/bin/system-config-printer", line 4317, in on_tvNPModels_cursor_changed
self.fillDriverList(self.NPMake, pmodel)
File "/usr/bin/system-config-printer", line 4280, in fillDriverList
self.NPDrivers = self.ppds.orderPPDNamesByPreference(ppds.keys())
File "/usr/lib/pymodules/python2.5/cupsutils/ppds.py", line 378, in orderPPDNamesByPreference
ppdnamelist.sort (sort_ppdnames)
File "/usr/lib/pymodules/python2.5/cupsutils/ppds.py", line 356, in sort_ppdnames
ca = is_C_locale (a)
File "/usr/lib/pymodules/python2.5/cupsutils/ppds.py", line 342, in is_C_locale
elif x[i - 1] not in string.letters:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xaa in position 52: unexpected code byte
Here's the contents of the (I hope) corresonding description in /usr/share/ppd/openprinting.org-gs/Canon/Canon-imageRunner_3225-pxlmono.ppd.gz :
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "PXLMONO.PPD"
*Manufacturer: "Canon"
*Product: "(imageRunner 3225)"
*cupsVersion: 1.0
*cupsManualCopies: True
*cupsModelNumber: 2
*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
*cupsFilter: "application/vnd.apple-pdf 25 foomatic-rip"
*%pprRIP: foomatic-rip other
*ModelName: "Canon imageRunner 3225"
*ShortNickName: "Canon imageRunner 3225 pxlmono"
*NickName: "Canon imageRunner 3225 Foomatic/pxlmono (recommended)"
I believe the error shouldn't be silently displayed on the stdout, whereas nothing appears wrong in the GUI (but an empty driver list... maybe smae problem as in #530263 btw ?).
Then of course, there's also a bug somewhere.
Hope this helps.
Best regards,
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-cupsutils depends on:
ii python 2.5.4-9 An interactive high-level object-o
ii python-cups 1.9.48-1 Python bindings for CUPS
ii python-elementtree 1.2.6-14 Light-weight toolkit for XML proce
ii python-support 1.0.6.1 automated rebuilding support for P
python-cupsutils recommends no packages.
python-cupsutils suggests no packages.
-- debconf-show failed
More information about the pkg-gnome-maintainers
mailing list