logger has problems with errors/warnings containing non-ascii chars
Bug #1073197 reported by
Jiri Popelka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned | ||
hplip (Fedora) |
Won't Fix
|
Undecided
|
Bug Description
Hi,
I think I've found some bugs in logger.
As you can see in this [1] backtrace,
Logger.error(self, message) tries to encode message to "utf-8",
which fails if the message already is in "utf-8" and contains some non-ascii chars.
I think the error() (as well as warn() and fatal()) shouldn't try to encode the message to "utf-8" because Logger.log() does that itself when UnicodeEncodeError occurs.
See also debug(), debug2(), debug3(), info() and note() which do not do that.
Changed in hplip (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Won't Fix |
To post a comment you must log in.
Description of problem:
hplip error
Version-Release number of selected component: 12.10-4. a.fc17
hplip-3.
Additional info:
libreport version: 2.0.16
abrt_version: 2.0.16
cmdline: /usr/bin/python /usr/bin/hp-setup -u
kernel: 3.6.2-4.fc17.x86_64