mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Expand ECI support and enforce binary mode when ECI is set
This commit is contained in:
@ -485,7 +485,6 @@ static int supports_eci(const int symbology) {
|
||||
case BARCODE_DOTCODE:
|
||||
case BARCODE_GRIDMATRIX:
|
||||
case BARCODE_HANXIN:
|
||||
case BARCODE_UPNQR:
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
@ -991,6 +990,10 @@ int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source,int
|
||||
if ((symbol->input_mode < 0) || (symbol->input_mode > 2)) {
|
||||
symbol->input_mode = DATA_MODE;
|
||||
}
|
||||
|
||||
if (symbol->eci != 3) {
|
||||
symbol->input_mode = DATA_MODE;
|
||||
}
|
||||
|
||||
if (symbol->input_mode == GS1_MODE) {
|
||||
for (i = 0; i < in_length; i++) {
|
||||
|
Reference in New Issue
Block a user