Unicode support is broken.

Bug #811575 reported by David Green
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QR Tools
Fix Released
Critical
David Green

Bug Description

In various data types, unicode characters don't encode+decode properly. This needs to be fixed. Unicode needs to be completely transparent to users of the API.

Revision history for this message
Alexis Wilke (alexis-m2osw) wrote :

As I was on Bug #1242399 I found this bug. There seem to be a problem in the latest version which refuses to decode a PNG. Note that the URL does not even contain Unicode, this is 100% pure ASCII.

Traceback (most recent call last):
  File "/usr/bin/qtqr", line 540, in decodeFile
    if qr.decode():
  File "/usr/lib/python2.7/dist-packages/qrtools.py", line 181, in decode
    raw = pil.tostring()
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 695, in tostring
    "Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.

Revision history for this message
Alexis Wilke (alexis-m2osw) wrote :

As the error says, I tried to change the tostring() with tobytes() and it works now.

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 811575] Re: Unicode support is broken.

Hello Alexis,

This has been already fixed in the daily PPA months ago. Thank you for
input!

Regards,
Ramiro.

El sáb., 4 de mar. de 2017 a la(s) 20:09, Alexis Wilke <
<email address hidden>> escribió:

> As the error says, I tried to change the tostring() with tobytes() and
> it works now.
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https://bugs.launchpad.net/bugs/811575
>
> Title:
> Unicode support is broken.
>
> Status in QR Tools:
> Confirmed
>
> Bug description:
> In various data types, unicode characters don't encode+decode
> properly. This needs to be fixed. Unicode needs to be completely
> transparent to users of the API.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/811575/+subscriptions
>

Changed in qr-tools:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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