Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marc Khouzam <marc.khouzam@ericsson.com>
To: Tom Tromey <tromey@redhat.com>
Cc: "'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: RE: UTF-8 not working for MI?
Date: Fri, 20 Aug 2010 01:57:00 -0000	[thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC57169BC587@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <m3iq364g78.fsf@fleche.redhat.com>

Sorry for the poorly formatted reply: I'm on a dumb web client.

> Tom Tromey wrote:
>
> 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.

I guess that will have to be my solution, but it still seems suspicious
since running this MI command from CLI works (notice the value field):

(gdb) interpreter-exec mi "-var-create - * a"
^done,name="var1",numchild="0",value="228 L'ä'",type="wchar_t",has_more="0"

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

Marc
 
________________________________________
From: Tom Tromey [tromey@redhat.com]
Sent: August 19, 2010 2:20 PM
To: Marc Khouzam
Cc: 'gdb@sourceware.org'
Subject: Re: UTF-8 not working for MI?

>>>>> "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


  reply	other threads:[~2010-08-20  1:57 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 [this message]
2010-08-20 18:51     ` Tom Tromey
2010-08-27 15:21       ` Marc Khouzam
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=F7CE05678329534C957159168FA70DEC57169BC587@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