mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Allow explicit ECI 3
Setting ECI to 3 now causes Zint to include ECI 3 in symbol, and allows entry of data formatted in ISO 8859_1 Fixes #127 requested by Harald Oehlmann
This commit is contained in:
@ -606,7 +606,7 @@ static int pdf417(struct zint_symbol *symbol, unsigned char chaine[], const size
|
||||
mclength++;
|
||||
}
|
||||
|
||||
if (symbol->eci != 3) {
|
||||
if (symbol->eci != 0) {
|
||||
/* Encoding ECI assignment number, according to Table 8 */
|
||||
if (symbol->eci <= 899) {
|
||||
chainemc[mclength] = 927; /* ECI */
|
||||
@ -956,7 +956,7 @@ int micro_pdf417(struct zint_symbol *symbol, unsigned char chaine[], const size_
|
||||
return ZINT_ERROR_INVALID_OPTION;
|
||||
}
|
||||
|
||||
if (symbol->eci != 3) {
|
||||
if (symbol->eci != 0) {
|
||||
/* Encoding ECI assignment number, according to Table 8 */
|
||||
if (symbol->eci <= 899) {
|
||||
chainemc[mclength] = 927; /* ECI */
|
||||
|
Reference in New Issue
Block a user