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 f163f84 commit 8874b903272efd9a16bad43f8db891aecdb55395
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 8874b90

Please sign in to comment.