When attempting to generate CODE-39 barcode, I get an error on the A character. My barcode reader and a site generator agree that the A is incorrect.

CCP-1BA42B91
scans as
CCP-1B942B91

ABC-AABBCC
scans as
9BC-99BBCC

The A consistently seems to be encoded as a 9. I have no means of verifying that this is module or font specific. I am using arialbd.ttf (should I attach it in response?)

CommentFileSizeAuthor
#2 barcode-622250-2.patch576 bytesslip

Comments

slip’s picture

Yes, I verified this problem. Shouldn't have anything to do with your font file.

Must be a bug in the library the module uses to generate barcodes. No other characters have this problem... just 'A'.

I'll look into it a bit.

slip’s picture

StatusFileSize
new576 bytes

Here's a patch to the CVS HEAD branch

slip’s picture

BTW, it looks like there might be other errors:

http://www.phpclasses.org/discuss/package/2441/

Not sure how well this php class is maintained and I know skyredwang is considering switching.

slip’s picture

Status: Active » Needs review
Silicon.Valet’s picture

Status: Needs review » Fixed

Great!

slip’s picture

Status: Fixed » Reviewed & tested by the community
slip’s picture

Version: 6.x-1.0-rc4 » 6.x-2.x-dev
Status: Reviewed & tested by the community » Closed (fixed)

Fixed in the 2.0 branch.