We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c4cfb commit 702e2d5Copy full SHA for 702e2d5
src/bytecode.rs
@@ -48,7 +48,9 @@ impl LispObject {
48
if c == '\"' || c == '\\' {
49
result.push('\\');
50
result.push(c);
51
- } else if (c as u32) < 32 || (c as u32) == 127 { // not printable
+ } else if (c as u32) < 32 || (c as u32) == 127 {
52
+ // not printable
53
+ // NOTE: cannot use escape for c in 128..=255, otherwise the string would become unibyte
54
result += &format!("\\{:03o}", c as u32);
55
} else {
56
0 commit comments