mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 18:37:07 +00:00
Correct processing of escape char mode
This commit is contained in:
@@ -1079,7 +1079,8 @@ int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source, int
|
|||||||
local_source[in_length] = '\0';
|
local_source[in_length] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol->input_mode &= ESCAPE_MODE) {
|
if (symbol->input_mode & ESCAPE_MODE) {
|
||||||
|
printf("Esc process\n");
|
||||||
error_number = escape_char_process(symbol, local_source, &in_length);
|
error_number = escape_char_process(symbol, local_source, &in_length);
|
||||||
if (error_number != 0) {
|
if (error_number != 0) {
|
||||||
return error_number;
|
return error_number;
|
||||||
|
|||||||
@@ -627,7 +627,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!strcmp(long_options[option_index].name, "esc")) {
|
if (!strcmp(long_options[option_index].name, "esc")) {
|
||||||
if (!(my_symbol->input_mode &= ESCAPE_MODE)) {
|
if (!(my_symbol->input_mode & ESCAPE_MODE)) {
|
||||||
my_symbol->input_mode += ESCAPE_MODE;
|
my_symbol->input_mode += ESCAPE_MODE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user