llvm.org GIT mirror llvm / c22e38d
[gdb] Use Latin-1 to decode StringRef git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335387 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1919 self.val = val
2020
2121 def to_string(self):
22 return self.val['Data'].string(length = self.val['Length'])
22 return self.val['Data'].string(encoding='Latin-1', length=self.val['Length'])
2323
2424 def display_hint (self):
2525 return 'string'