Skip to content
Browse files

Revise [tools] Support more gdb-pp.py encodings

Use native endianness
  • Loading branch information...
1 parent 7aee78c commit b5b7a3c396fa15b3318bb6ad3e8350dc465fd383 @rurban rurban committed Sep 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/dev/gdb-pp.py
View
4 tools/dev/gdb-pp.py
@@ -161,7 +161,7 @@ def _parrot_str_to_str(val):
if encoding_name == 'binary':
encoding_name='raw_unicode_escape'
if encoding_name == 'ucs2':
- encoding_name='utf_16_le'
+ encoding_name='utf_16'
if encoding_name == 'ucs4':
- encoding_name=='utf_32_le'
+ encoding_name=='utf_32'
return val['strstart'].string(encoding=encoding_name,length=length)

0 comments on commit b5b7a3c

Please sign in to comment.
Something went wrong with that request. Please try again.