Permalink
Browse files

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

Use native endianness
  • Loading branch information...
Reini Urban
Reini Urban committed Sep 30, 2012
1 parent 7aee78c commit b5b7a3c396fa15b3318bb6ad3e8350dc465fd383
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/dev/gdb-pp.py
View
@@ -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.