zint / zint-gpl-only

Zint Barcode Generator
https://zint.org.uk/
GNU General Public License v3.0
522 stars 137 forks source link

[Bug] Wrong checkdigit for NVE18/EAN14 #24

Closed chaosben closed 2 years ago

chaosben commented 11 years ago

Example: 2605 Barcode-Generator calcs "3" as checksum Correct value (according to http://www.gs1.org/barcodes/support/check_digit_calculator ): "5"

Imho, its caused by the wrong condition in line 965 and 1006 of code128.c. The condition should be this one: if (!((length - 1 - i) & 1))

gitlost commented 2 years ago

This issue is now fixed in the latest version of Zint, so am closing now. Thanks for your feedback. Note that this fork is no longer used, see https://sourceforge.net/projects/zint/.