summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eb4a3c2)
This only happens on platforms with signed char. Reported by
COLIN Stéphane.
} else if (ret == 0) {
break; // EOF.
}
} else if (ret == 0) {
break; // EOF.
}
- if (*ptr < 32 || *ptr == '\'' || *ptr == '"' || *ptr == '\\') {
+ if ((unsigned char)*ptr < 32 || *ptr == '\'' || *ptr == '"' || *ptr == '\\') {
if (!in_escaped_mode) {
printf("'$'");
in_escaped_mode = true;
if (!in_escaped_mode) {
printf("'$'");
in_escaped_mode = true;