Skip to content

Commit f2b547f

Browse files
committed
[gdb] Use Latin-1 to decode StringRef
llvm-svn: 335387
1 parent 56a196c commit f2b547f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/gdb-scripts/prettyprinters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, val):
2020
self.val = val
2121

2222
def to_string(self):
23-
return self.val['Data'].string(length = self.val['Length'])
23+
return self.val['Data'].string(encoding='Latin-1', length=self.val['Length'])
2424

2525
def display_hint (self):
2626
return 'string'

0 commit comments

Comments
 (0)