Encoding mismatch

Bug #1308472 reported by Tim Waugh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

The "commafy" function has an encoding mismatch. locale.format() uses LC_NUMERIC, but locale.getpreferredencoding() may not.

Patch attached.

Original report:
  https://bugzilla.redhat.com/show_bug.cgi?id=984167#c9

Revision history for this message
Tim Waugh (twaugh) wrote :
Revision history for this message
Tim Waugh (twaugh) wrote :

Sorry, first patch had a typo.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hi Tim,

Thanks for providing the patch. However this part of the code is already modified, which will be available publicly in one of the upcoming releases of HPLIP.

Thanks,
Suma

Revision history for this message
Tim Waugh (twaugh) wrote :

I can't see which change you referred to.

Anyway, attaching the latest patch. If you could attach the patch you're thinking of so we can compare, that would be great.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hi Tim,

The change I referred to has not gone out yet. It is likely to be available in the next release.

Regards,
Suma

Revision history for this message
Tim Waugh (twaugh) wrote :

Thanks. Want to attach it here, or comment on how it differs from my patch, or comment on my patch?

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hi Tim,

I tried to get the patch, but there is a problem. The change I mentioned was done as part of a feature implementation. The nature of changes is such that giving a patch only for the commafy() function or the file containing it (utils.py) isn't going to help. So, we request you to wait for a little while more.

Regards,
Suma

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.