Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
gdb: "code points"
  • Loading branch information
vstinner committed Jun 1, 2023
commit a5c227598c22ce0d6e57d51aaa4eb277bec5de4f
6 changes: 3 additions & 3 deletions Tools/gdb/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,13 +1410,13 @@ def proxyval(self, visited):
elif repr_kind == 4:
field_str = field_str.cast(_type_unsigned_int_ptr())

# Gather a list of ints from the character array; these are either
# Gather a list of ints from the code point array; these are either
# UCS-1, UCS-2 or UCS-4 code points:
characters = [int(field_str[i]) for i in safe_range(field_length)]
code_points = [int(field_str[i]) for i in safe_range(field_length)]

# Convert the int code points to unicode characters, and generate a
# local unicode instance.
result = u''.join(map(chr, characters))
result = u''.join(map(chr, code_points))
return result

def write_repr(self, out, visited):
Expand Down