From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2338 invoked by alias); 20 Aug 2010 01:57:56 -0000 Received: (qmail 2330 invoked by uid 22791); 20 Aug 2010 01:57:55 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,RCVD_ILLEGAL_IP,SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from imr4.ericy.com (HELO imr4.ericy.com) (198.24.6.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Aug 2010 01:57:50 +0000 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id o7K22IuV016882; Thu, 19 Aug 2010 21:02:19 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.134]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Thu, 19 Aug 2010 21:57:30 -0400 From: Marc Khouzam To: Tom Tromey CC: "'gdb@sourceware.org'" Date: Fri, 20 Aug 2010 01:57:00 -0000 Subject: RE: UTF-8 not working for MI? Message-ID: References: , In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00122.txt.bz2 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 =3D=3D>' > `""" 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=3D"var1",numchild=3D"0",value=3D"228 L'=E4'",type=3D"wchar_t",ha= s_more=3D"0" Or maybe using "interpreter-exec mi" does not quite give the true MI interp= reter? Marc =20 ________________________________________ 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" =3D=3D Marc Khouzam 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 =3D 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 =3D=3D>' `""" SEVEN-BIT-ISO-C-STRING-CONTENT """' which I presume means that readers must do this decoding. Tom