1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[gdb] Use Latin-1 to decode StringRef

llvm-svn: 335387
This commit is contained in:
Fangrui Song 2018-06-22 20:29:42 +00:00
parent 953911a150
commit c7c7f4565b

View File

@ -20,7 +20,7 @@ class StringRefPrinter:
self.val = val
def to_string(self):
return self.val['Data'].string(length = self.val['Length'])
return self.val['Data'].string(encoding='Latin-1', length=self.val['Length'])
def display_hint (self):
return 'string'