Skip to content

Commit

Permalink
Merge pull request zrax#344 from seashell11234455/master
Browse files Browse the repository at this point in the history
Fix unicode string display bug
  • Loading branch information
zrax authored Apr 27, 2023
2 parents 2e76e56 + 006b3e4 commit c815673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyc_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void OutputString(PycRef<PycString> str, char prefix, bool triple, FILE* F, cons
fputc(useQuotes ? '"' : '\'', F);
}
while (len--) {
if (*ch < 0x20 || *ch == 0x7F) {
if ((unsigned char)(*ch) < 0x20 || *ch == 0x7F) {
if (*ch == '\r') {
fputs("\\r", F);
} else if (*ch == '\n') {
Expand Down

0 comments on commit c815673

Please sign in to comment.