mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +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
|
@ -213,6 +213,9 @@ std::string zstring::encode() const {
|
|||
else if (ch == '\\') {
|
||||
strm << "\\\\";
|
||||
}
|
||||
else if (ch >= 128) {
|
||||
strm << "\\x" << std::hex << (unsigned)ch << std::dec;
|
||||
}
|
||||
else {
|
||||
strm << (char)(ch);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue