UTF-8 not working for MI?

Tom Tromey tromey@redhat.com
Thu Aug 19 18:20:00 GMT 2010


>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:

Marc> I've noticed that in MI mode, gdb does not show UTF-8 characters
Marc> properly.

Marc> The host character set is "auto; currently UTF-8".

Marc> ~"$1 = 228 L'\303\244'"

\303\244 is the UTF-8 representation of U+00E4

I can't readily find where the escaping is done, but the MI docs say:

`C-STRING ==>'
     `""" SEVEN-BIT-ISO-C-STRING-CONTENT """'

which I presume means that readers must do this decoding.

Tom



More information about the Gdb mailing list