Comment 2 for bug 1061099

Revision history for this message
In , ArneBab (arne-bab) wrote :

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.