Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436794 - net-print/hplip-3.12.4: hp-scan fails in directory which contains unicode chars
Summary: net-print/hplip-3.12.4: hp-scan fails in directory which contains unicode chars
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 14:29 UTC by Arne Babenhauserheide
Modified: 2012-10-03 17:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-unicode.diff (fix-unicode.diff,763 bytes, text/plain)
2012-10-01 14:31 UTC, Arne Babenhauserheide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2012-10-01 14:29:30 UTC
when executed in a directory which contains unicode chars, hp-scan fails with

Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 768, in <module>
    log.warn("Defaulting to '%s'." % output)
  File "/usr/share/hplip/base/logger.py", line 295, in warn
    txt = "warning: %s" % message.encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 60: ordinal not in range(128)

I’ll attach a fix.
Comment 1 Arne Babenhauserheide 2012-10-01 14:31:33 UTC
Created attachment 325476 [details]
fix-unicode.diff

Fix Unicode Error when in dir containing unicode chars.
Comment 2 Arne Babenhauserheide 2012-10-01 14:32:29 UTC
Importance High, because this actually makes the program crash.
Comment 3 Daniel Pielmeier gentoo-dev 2012-10-03 17:56:54 UTC
+*hplip-3.12.9-r2 (03 Oct 2012)
+
+  03 Oct 2012; Daniel Pielmeier <billie@gentoo.org> +hplip-3.12.9-r2.ebuild:
+  Fix bug #436794 - hp-scan fails in directories containing unicode characters.
+  Thanks to Arne Babenhauserheide for the report and the patch.