summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-17 22:36:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-17 22:36:48 +0900
commit27f7b047e07ceb9ee963e5d74ab0399b5e94ac4c (patch)
tree55ddcd0201fba4081ea3ec48f100cb772942146b /ext
parent7b4b5e08409f1df2a99c00d40f4859b584cd1dd6 (diff)
Also escape DEL code
Diffstat (limited to 'ext')
-rw-r--r--ext/objspace/objspace_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c
index 81e490f06d..d5996f67a8 100644
--- a/ext/objspace/objspace_dump.c
+++ b/ext/objspace/objspace_dump.c
@@ -85,6 +85,9 @@ dump_append_string_value(struct dump_config *dc, VALUE obj)
case '\r':
dump_append(dc, "\\r");
break;
+ case '\177':
+ dump_append(dc, "\\u007f");
+ break;
default:
if (c <= 0x1f)
dump_append(dc, "\\u%04x", c);