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:
Robin Stuart 2017-10-22 10:55:50 +01:00
parent 0314ca65a8
commit 29dbb49325
3 changed files with 25 additions and 7 deletions

View file

@ -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");