The real problem is in the PPD file compressor pyppd. The decompression code which it includes as head of the self-extracting PPD archives is not locale-agnostic. It only works with UTF-8 locales: en_US.UTF-8, C.UTF-8, ... As Ubuntu uses UTF-8 locales by default, foomatic-db usually works. To reproduce the bug one simply needs to run the self- extracting archive under a non-UTF-8 locale:
LC_ALL=C /usr/lib/cups/driver/openprinting-ppds list > out.txt foomatic-db also works if the PPDs contain only pure ASCII in their make/model information. As a workaround I have patched the 2 PPDs with non-ASCII characters in foomatic-db in the foomatic-db 20120823-0ubuntu4 package. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1014852 Title: openprinting-ppds crashed with UnicodeEncodeError in ls(): 'ascii' codec can't encode character '\ufffd' in position 92: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/foomatic-db/+bug/1014852/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs