qtQR adds BOM to the generated QR code

Bug #2065725 reported by psl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QR Tools
Fix Released
Undecided
Unassigned

Bug Description

qtQR 2.0~bzr33-2
Linux Mint 20.3, amd64

I tried to replicate a demaged QR code with qtQR but application cannot decode the QR code. I found that qtQR creates QR codes with BOM (UTF-8, Byte Order Mark).

I created QR of type "text" with value "TEST" but when I use BinaryEye mobile app, I see that QR code is generated with BOM - "{BOM}TEXT", where BOM is \xEF\xBB\xBF. Such information should not be in QR code, there is no need to use BOM for ASCII text. I cannot find any option to disable such behavior in qtQR.

It is interesting then when I try to decode QR code with "zbarimg", there is no information about BOM in the data... "zbarimg" is not reliable application to troubleshoot this issue!

$ zbarimg --xml qtQR-TEST-BOM-1.png
<barcodes xmlns='http://zbar.sourceforge.net/2008/barcode'>
<source href='qtQR-TEST-BOM-1.png'>
<index num='0'>
<symbol type='QR-Code' quality='1' orientation='UP'><data><![CDATA[TEST]]></data></symbol>
</index>
</source>
</barcodes>
scanned 1 barcode symbols from 1 images in 0.04 seconds

$ zbarimg --version
0.23

Similar QR code can be generated with "qrencode" and that one has no BOM (I like it!):

$ qrencode -l L -s 5 -m 10 -o qrencode-QR-TEST-1.png "TEST"

$ zbarimg --xml qrencode-QR-TEST-1.png
<barcodes xmlns='http://zbar.sourceforge.net/2008/barcode'>
<source href='qrencode-QR-TEST-1.png'>
<index num='0'>
<symbol type='QR-Code' quality='1' orientation='UP'><data><![CDATA[TEST]]></data></symbol>
</index>
</source>
</barcodes>
scanned 1 barcode symbols from 1 images in 0.01 seconds

I will attach some images.

BTW, BinaryEye can be downloaded from https://github.com/markusfisch/BinaryEye

Revision history for this message
psl (slansky) wrote :
Revision history for this message
psl (slansky) wrote :
Revision history for this message
psl (slansky) wrote :
Revision history for this message
psl (slansky) wrote :
description: updated
psl (slansky)
description: updated
description: updated
description: updated
Revision history for this message
psl (slansky) wrote :
psl (slansky)
description: updated
description: updated

Hi psl,

Please try with a newer version of QtQR, there's a checkbox now to include
(or not) the SBOM in the generated QR code.

El mar, 14 may 2024 a la(s) 9:50 p.m., psl (<email address hidden>)
escribió:

> ** Attachment added: "qtQR-screenshot-TEST-BOM.png: screenshot of qtQR -
> QR with BOM"
>
> https://bugs.launchpad.net/qr-tools/+bug/2065725/+attachment/5778442/+files/qtQR-screenshot-TEST-BOM.png
>
> --
> 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/2065725
>
> Title:
> qtQR adds BOM to the generated QR code
>
> Status in QR Tools:
> New
>
> Bug description:
> qtQR 2.0~bzr33-2
> Linux Mint 20.3, amd64
>
> I tried to replicate a demaged QR code with qtQR but application
> cannot decode the QR code. I found that qtQR creates QR codes with BOM
> (UTF-8, Byte Order Mark).
>
> I created QR of type "text" with value "TEST" but when I use BinaryEye
> mobile app, I see that QR code is generated with BOM - "{BOM}TEXT",
> where BOM is \xEF\xBB\xBF. Such information should not be in QR code,
> there is no need to use BOM for ASCII text. I cannot find any option
> to disable such behavior in qtQR.
>
> It is interesting then when I try to decode QR code with "zbarimg",
> there is no information about BOM in the data... "zbarimg" is not
> reliable application to troubleshoot this issue!
>
> $ zbarimg --xml qtQR-TEST-BOM-1.png
> <barcodes xmlns='http://zbar.sourceforge.net/2008/barcode'>
> <source href='qtQR-TEST-BOM-1.png'>
> <index num='0'>
> <symbol type='QR-Code' quality='1'
> orientation='UP'><data><![CDATA[TEST]]></data></symbol>
> </index>
> </source>
> </barcodes>
> scanned 1 barcode symbols from 1 images in 0.04 seconds
>
> $ zbarimg --version
> 0.23
>
> Similar QR code can be generated with "rencode" and that one has no
> BOM (I like it!):
>
> $ qrencode -l L -s 5 -m 10 -o rencode-QR-TEST-1.png "TEST"
>
> $ zbarimg --xml rencode-QR-TEST-1.png
> <barcodes xmlns='http://zbar.sourceforge.net/2008/barcode'>
> <source href='rencode-QR-TEST-1.png'>
> <index num='0'>
> <symbol type='QR-Code' quality='1'
> orientation='UP'><data><![CDATA[TEST]]></data></symbol>
> </index>
> </source>
> </barcodes>
> scanned 1 barcode symbols from 1 images in 0.01 seconds
>
> I will attach some images.
>
> BTW, BinaryEye can be downloaded from
> https://github.com/markusfisch/BinaryEye
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/2065725/+subscriptions
>
>

--
Ramiro Algozino
Telecommunications Engineer
https://algozino.com.ar/ <http://algozino.com.ar/>

Changed in qr-tools:
status: New → Fix Released
To post a comment you must log in.