mirror of
https://github.com/Z3Prover/z3
synced 2025-07-03 11:25:40 +00:00
escape ascii above 127, issue #1571
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5cff0de844
commit
aef3de5fca
1 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,9 @@ std::string zstring::encode() const {
|
||||||
else if (ch == '\\') {
|
else if (ch == '\\') {
|
||||||
strm << "\\\\";
|
strm << "\\\\";
|
||||||
}
|
}
|
||||||
|
else if (ch >= 128) {
|
||||||
|
strm << "\\x" << std::hex << (unsigned)ch << std::dec;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
strm << (char)(ch);
|
strm << (char)(ch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue