forked from qt-creator/qt-creator
Debugger: Change default encoding for char * to UTF-8 in display
Task-number: QTCREATORBUG-16029 Change-Id: Idf14ec54a53bd71b15196aedc7fc5e40b7bb6b5d Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
@@ -1045,10 +1045,10 @@ class DumperBase:
|
||||
def tryPutSimpleFormattedPointer(self, value, typeName, innerTypeName, displayFormat, limit):
|
||||
if displayFormat == AutomaticFormat:
|
||||
if innerTypeName == "char":
|
||||
# Use Latin1 as default for char *.
|
||||
# Use UTF-8 as default for char *.
|
||||
self.putType(typeName)
|
||||
(elided, data) = self.encodeCArray(value, 1, limit)
|
||||
self.putValue(data, "latin1", elided=elided)
|
||||
self.putValue(data, "utf8", elided=elided)
|
||||
return True
|
||||
|
||||
if innerTypeName == "wchar_t":
|
||||
|
Reference in New Issue
Block a user