mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Use the latin-1 codec instead of ascii in Python bindings.
The latin-1 codec maps byte values 0-255 to unicode codepoints 0-255. The ascii codec only maps the lower half of that range.
This commit is contained in:
parent
bba2cf9f20
commit
a20d4fa362
2 changed files with 5 additions and 5 deletions
|
@ -10038,7 +10038,7 @@ class SeqRef(ExprRef):
|
|||
if self.is_string_value():
|
||||
string_length = ctypes.c_uint()
|
||||
chars = Z3_get_lstring(self.ctx_ref(), self.as_ast(), byref(string_length))
|
||||
return string_at(chars, size=string_length.value).decode('ascii')
|
||||
return string_at(chars, size=string_length.value).decode('latin-1')
|
||||
return Z3_ast_to_string(self.ctx_ref(), self.as_ast())
|
||||
|
||||
def __le__(self, other):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue