Don't escape high chars. :)

This commit is contained in:
Dianne Skoll
2024-12-09 20:55:26 -05:00
parent 6b412062c2
commit c747ebebb4

View File

@@ -119,11 +119,7 @@ print_escaped_string(FILE *fp, char const *s)
case '"': putc('\\', fp); putc('"', fp); break;
case '\\': putc('\\', fp); putc('\\', fp); break;
default:
if (*s < 32) {
fprintf(fp, "\\x%02x", (unsigned int) *s);
} else {
putc(*s, fp); break;
}
putc(*s, fp); break;
}
s++;
}