Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
print_objects: Handle unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jul 12, 2020
1 parent 828a727 commit 99b894a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/libs/ecl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ def print_objects():
cdef cl_object c, s
c = list_of_objects
while True:
s = si_coerce_to_base_string(cl_write_to_string(1,cl_car(c)))
print(char_to_str(ecl_base_string_pointer_safe(s)))

s = cl_write_to_string(1, cl_car(c))
print(ecl_string_to_python(s))

c = cl_cadr(c)
if c == Cnil:
break
Expand Down

0 comments on commit 99b894a

Please sign in to comment.