mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Also escape DEL code
This commit is contained in:
parent
7b4b5e0840
commit
27f7b047e0
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue