CLI: Handle UTF-8 args on Windows; -b <barcode name>

This commit is contained in:
gitlost 2021-01-20 21:15:03 +00:00
parent 4efbd46f86
commit 484bd6e19a
12 changed files with 2101 additions and 1568 deletions

View file

@ -1307,6 +1307,9 @@ int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source, int
}
return error_tag(symbol->errtxt, error_number);
}
if (error_number && warn_number == 0) {
warn_number = error_number;
}
ustrcpy(local_source, reduced); // Cannot contain nul char
in_length = (int) ustrlen(local_source);
}