mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 12:27:09 +08:00
treat only characters with codes in [0, 0x20) range as non-ascii
This commit is contained in:
@@ -60,7 +60,7 @@ print_quoted_value(FILE *outfile, char* value, int bin_len) {
|
|||||||
fprintf(outfile, "%s%s", escape_char, escape_char);
|
fprintf(outfile, "%s%s", escape_char, escape_char);
|
||||||
value += orig_escape_len;
|
value += orig_escape_len;
|
||||||
#endif
|
#endif
|
||||||
} else if (*value < 0x20) {
|
} else if ((unsigned char)*value < 0x20) {
|
||||||
if (!is_binary || drop_nonascii) {
|
if (!is_binary || drop_nonascii) {
|
||||||
putc(' ', outfile);
|
putc(' ', outfile);
|
||||||
++value;
|
++value;
|
||||||
|
|||||||
Reference in New Issue
Block a user