Barcode generation error

Silicon.Valet - November 3, 2009 - 18:32
Project:Barcode
Version:6.x-1.0-rc4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

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?)

#1

slip - November 12, 2009 - 15:56

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.

#2

slip - November 12, 2009 - 16:09

Here's a patch to the CVS HEAD branch

AttachmentSize
barcode-622250-2.patch 576 bytes

#3

slip - November 12, 2009 - 16:13

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.

#4

slip - November 12, 2009 - 16:15
Status:active» needs review

#5

Silicon.Valet - November 18, 2009 - 14:09
Status:needs review» fixed

Great!

#6

slip - November 18, 2009 - 14:15
Status:fixed» reviewed & tested by the community
 
 

Drupal is a registered trademark of Dries Buytaert.