utils.XMLToDictParser().parseXML() shouldn't encode input to 'utf-8'

Bug #1073228 reported by Jiri Popelka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Sanjay Kumar

Bug Description

Hi,

I have this bug report https://bugzilla.redhat.com/show_bug.cgi?id=870402
It contains this backtrace https://bugzilla.redhat.com/attachment.cgi?id=633807
which reveals two problems.

I already reported the first one as bug #1073197.
The second seems to be in utils.XMLToDictParser().parseXML() which tries to convert the input text from unicode to utf-8. Problem is that the input XML already is utf-8 and that's why the UnicodeDecodeError is thrown out.
I see the try:catch: section was added in 3.12.9 and I think it can be removed, see the attached patch.

--
Jiri

Revision history for this message
Jiri Popelka (jpopelka) wrote :
Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Jiri,

Thanks for the patch. We will look into this.

Changed in hplip:
assignee: nobody → Sanjay Kumar (sanjay-kumar14)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.