1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-23 04:47:03 +00:00

EAN-8: specify in check digit error

test suite: deal with ZXing-C++ changes re DBAR and EAN/UPC with
  add-ons
This commit is contained in:
gitlost
2025-04-13 17:25:13 +01:00
parent 26805338f8
commit 0b7103e21e
3 changed files with 111 additions and 118 deletions

View File

@@ -473,7 +473,8 @@ static int ean8_cc(struct zint_symbol *symbol, const unsigned char source[], int
hrt_cat_chr_nochk(symbol, gs1_check_digit(gtin, 7));
} else {
if (source[length - 1] != gs1_check_digit(gtin, 7)) {
return ZEXT errtxtf(ZINT_ERROR_INVALID_CHECK, symbol, 276, "Invalid check digit '%1$c', expecting '%2$c'",
return ZEXT errtxtf(ZINT_ERROR_INVALID_CHECK, symbol, 276,
"Invalid EAN-8 check digit '%1$c', expecting '%2$c'",
source[length - 1], gs1_check_digit(gtin, 7));
}
}