Ascii character code 127 (DEL) is not printable.
This commit is contained in:
parent
8dd5e94f5a
commit
87888e8129
2 changed files with 2 additions and 2 deletions
|
|
@ -220,7 +220,7 @@ proc makeLLVMString*(s: string): Rope =
|
|||
add(result, rope(res))
|
||||
setLen(res, 0)
|
||||
case s[i]
|
||||
of '\0'..'\x1F', '\x80'..'\xFF', '\"', '\\':
|
||||
of '\0'..'\x1F', '\x7F'..'\xFF', '\"', '\\':
|
||||
add(res, '\\')
|
||||
add(res, toHex(ord(s[i]), 2))
|
||||
else: add(res, s[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue