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)
when executed in a directory which contains unicode chars, hp-scan fails with
Traceback (most recent call last): warn("Defaultin g to '%s'." % output) hplip/base/ logger. py", line 295, in warn encode( 'utf-8' )
File "/usr/bin/hp-scan", line 768, in <module>
log.
File "/usr/share/
txt = "warning: %s" % message.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 60: ordinal not in range(128)
I’ll attach a fix.