summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 245c0d3a..d6952482 100644
--- a/lib.c
+++ b/lib.c
@@ -8283,7 +8283,7 @@ static void out_str_char(wchar_t ch, val out, int *semi_flag)
case '\\': put_string(lit("\\\\"), out); break;
case 27: put_string(lit("\\e"), out); break;
default:
- if (ch >= ' ') {
+ if ((ch >= ' ' && ch != 127 && ch < 0xDC00) || ch > 0xDCFF) {
put_char(chr(ch), out);
} else {
format(out, lit("\\x~,02X"), num(ch), nao);