From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Tom Tromey'" <tromey@redhat.com>,
"'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: RE: UTF-8 not working for MI?
Date: Fri, 27 Aug 2010 15:21:00 -0000 [thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC5716FB844B@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <m3pqxdyv6i.fsf@fleche.redhat.com>
> -----Original Message-----
> From: Tom Tromey [mailto:tromey@redhat.com]
> Sent: Friday, August 20, 2010 2:51 PM
> To: Marc Khouzam
> Cc: 'gdb@sourceware.org'
> Subject: Re: UTF-8 not working for MI?
Sorry for the delay.
> >>>>> "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.
Thanks for taking the time!
I'm not sure how PHONY_ICONV works, but I'm guessing you meant
that it may cause trouble when GDB is used from Eclipse.
I just tried using "set print sevenbit-strings off" in Eclipse
I can see the proper UTF-8 characters returned by GDB. So it seems
like a good solution.
I'd like to use this solution but I'm concerned at why MI conciously
uses sevenbit-strings? Maybe there is a reason behind it and I'm going
to shoot myself in the foot by ignoring it?
Thanks
Marc
next prev parent reply other threads:[~2010-08-27 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-19 17:25 Marc Khouzam
2010-08-19 18:20 ` Tom Tromey
2010-08-20 1:57 ` Marc Khouzam
2010-08-20 18:51 ` Tom Tromey
2010-08-27 15:21 ` Marc Khouzam [this message]
2010-08-27 16:45 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F7CE05678329534C957159168FA70DEC5716FB844B@EUSAACMS0703.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=gdb@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox