mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-21 19:06:05 +00:00
latin1_process function changed
This commit is contained in:
@@ -575,8 +575,11 @@ int maxicode(struct zint_symbol *symbol, unsigned char source[], int length)
|
||||
local_source[length] = '\0';
|
||||
break;
|
||||
case UNICODE_MODE:
|
||||
error_number = latin1_process(symbol, source, local_source, &length);
|
||||
if(error_number != 0) { return error_number; }
|
||||
error_number = latin1_process(source, local_source, &length);
|
||||
if(error_number != 0) {
|
||||
strcpy(symbol->errtxt, "error: Invalid character in input string (only Latin-1 characters supported)");
|
||||
return error_number;
|
||||
}
|
||||
break;
|
||||
}
|
||||
memset(maxi_codeword, 0, sizeof(maxi_codeword));
|
||||
|
||||
Reference in New Issue
Block a user