Commit 3518934e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Dumper: Use Latin1 as default for char array



Change-Id: Ia3e2fc737c4d40e9b8bce0fbb147fe3d8a523351
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 57097a15
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment