forked from qt-creator/qt-creator
Dumper: Use Latin1 as default for char array
Change-Id: Ia3e2fc737c4d40e9b8bce0fbb147fe3d8a523351 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1472,7 +1472,10 @@ class Dumper:
|
||||
self.putType(typeName)
|
||||
self.putNumChild(1)
|
||||
format = self.currentItemFormat()
|
||||
if format == 0:
|
||||
if format == None and str(targetType.unqualified()) == "char":
|
||||
# Use Latin1 as default for char [].
|
||||
self.putValue(encodeCharArray(value), Hex2EncodedLatin1)
|
||||
elif format == 0:
|
||||
# Explicitly requested Latin1 formatting.
|
||||
self.putValue(encodeCharArray(value), Hex2EncodedLatin1)
|
||||
elif format == 1:
|
||||
|
Reference in New Issue
Block a user