1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-23 20:06:02 +00:00

latin1_process function changed

This commit is contained in:
tgotic
2011-05-16 20:03:21 +02:00
parent 3407239b80
commit d550f18d90
7 changed files with 68 additions and 80 deletions

View File

@@ -469,8 +469,11 @@ int reduced_charset(struct zint_symbol *symbol, unsigned char *source, int lengt
preprocessed[length] = '\0';
break;
case UNICODE_MODE:
error_number = latin1_process(symbol, source, preprocessed, &length);
if(error_number != 0) { return error_number; }
error_number = latin1_process(source, preprocessed, &length);
if(error_number != 0) {
strcpy(symbol->errtxt, "error: Invalid character in input string (only Latin-1 characters supported)");
return error_number;
}
break;
}