mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 20:14:28 -04:00
Add escape sequence support to GUI
Also ensures that CR/LF formatted files remain unaltered when importing Fixes #72 reported by Siniša Sudec
This commit is contained in:
parent
0314ca65a8
commit
29dbb49325
3 changed files with 25 additions and 7 deletions
|
@ -852,7 +852,7 @@ int escape_char_process(struct zint_symbol *symbol, unsigned char *input_string,
|
|||
hex1 = ctoi(input_string[in_posn + 2]);
|
||||
hex2 = ctoi(input_string[in_posn + 3]);
|
||||
if ((hex1 >= 0) && (hex2 >= 0)) {
|
||||
escaped_string[out_posn] += (hex1 << 4) + hex2;
|
||||
escaped_string[out_posn] = (hex1 << 4) + hex2;
|
||||
in_posn += 4;
|
||||
} else {
|
||||
strcpy(symbol->errtxt, "233: Corrupt escape character in input data");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue