[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: UTF-8 not working for MI?
From:       Tom Tromey <tromey () redhat ! com>
Date:       2010-08-20 18:51:17
Message-ID: m3pqxdyv6i.fsf () fleche ! redhat ! com
[Download RAW message or body]

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

Marc> Or maybe using "interpreter-exec mi" does not quite give the true
Marc> MI interpreter?

I dug harder and found this:

static void
mi_command_loop (int mi_version)
{
  /* Turn off 8 bit strings in quoted output.  Any character with the
     high bit set is printed using C's octal format. */
  sevenbit_strings = 1;


So, you can reproduce this situation from the CLI by "set print
sevenbit-strings on" before invoking the MI command.

It is an oddity that currently an MI consumer must check gdb's host
charset in order to know how to decode its output.  I would recommend
that the client force it to be UTF-8, but I think this currently may not
work with PHONY_ICONV.

Tom

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic