mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
library: compat symbology 39 fix; ISBN: "X" check
WARN_FAIL_ALL: always return error: ZINT_ERROR_USES_ECI/NON_COMPLIANT Fuller error messages; more comments zint.h mainwindow.cpp: replace metaobject ENUM with array (suppresses virtual in constructor warning)
This commit is contained in:
@ -1562,7 +1562,7 @@ INTERNAL int qr_code(struct zint_symbol *symbol, unsigned char source[], int len
|
||||
if (error_number == 0) {
|
||||
done = 1;
|
||||
} else if (symbol->eci) {
|
||||
strcpy(symbol->errtxt, "575: Invalid characters in input data");
|
||||
sprintf(symbol->errtxt, "575: Invalid character in input data for ECI %d", symbol->eci);
|
||||
return error_number;
|
||||
}
|
||||
}
|
||||
@ -2707,7 +2707,7 @@ INTERNAL int upnqr(struct zint_symbol *symbol, unsigned char source[], int lengt
|
||||
case UNICODE_MODE:
|
||||
error_number = utf8_to_eci(4, source, preprocessed, &length);
|
||||
if (error_number != 0) {
|
||||
strcpy(symbol->errtxt, "572: Invalid characters in input data");
|
||||
strcpy(symbol->errtxt, "572: Invalid character in input data for ECI 4");
|
||||
return error_number;
|
||||
}
|
||||
for (i = 0; i < length; i++) {
|
||||
|
Reference in New Issue
Block a user