From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23674 invoked by alias); 21 Mar 2009 08:34:30 -0000 Received: (qmail 23361 invoked by uid 22791); 21 Mar 2009 08:34:29 -0000 X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_37,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Mar 2009 08:34:21 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KGU00400KHH2I00@i-mtaout6.012.net.il> for gdb-patches@sourceware.org; Sat, 21 Mar 2009 10:34:08 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.23.114]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KGU0078CL4PZ3A0@i-mtaout6.012.net.il>; Sat, 21 Mar 2009 10:34:02 +0200 (IST) Date: Sat, 21 Mar 2009 08:52:00 -0000 From: Eli Zaretskii Subject: Re: FYI: character set handling rewrite In-reply-to: To: tromey@redhat.com Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00428.txt.bz2 > From: Tom Tromey > Date: Fri, 20 Mar 2009 17:02:59 -0600 > > I'm checking this in. Thanks. > doc/ChangeLog: > 2009-03-20 Tom Tromey > > * gdb.texinfo (Character Sets): Remove obsolete text. Document > set target-wide-charset. > (Requirements): Mention iconv. I fixed this by the patch below (which also corrects a few glitches that were there long before Tom touched this node): 2009-03-21 Eli Zaretskii * gdb.texinfo (Character Sets): Fix last change. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.569 diff -u -r1.569 gdb.texinfo --- gdb.texinfo 21 Mar 2009 03:13:02 -0000 1.569 +++ gdb.texinfo 21 Mar 2009 08:29:24 -0000 @@ -7973,16 +7973,9 @@ @table @code @item set target-charset @var{charset} @kindex set target-charset -Set the current target character set to @var{charset}. If you type -@code{set target-charset} followed by @key{TAB}@key{TAB}, @value{GDBN} -will list the target character sets it supports. - -@item set target-wide-charset @var{charset} -@kindex set target-wide-charset -Set the current target wide character set to @var{charset}. The -target wide character set is the character set used by @code{wchar_t}. -If you type @code{set target-charset} followed by @key{TAB}@key{TAB}, -@value{GDBN} will list the target character sets it supports. +Set the current target character set to @var{charset}. To display the +list of supported target character sets, type +@kbd{@w{set target-charset @key{TAB}@key{TAB}}}. @item set host-charset @var{charset} @kindex set host-charset @@ -7993,30 +7986,38 @@ @code{set host-charset} command. @value{GDBN} can only use certain character sets as its host character -set. If you type @code{set target-charset} followed by -@key{TAB}@key{TAB}, @value{GDBN} will list the host character sets it -supports. +set. If you type @kbd{@w{set target-charset @key{TAB}@key{TAB}}}, +@value{GDBN} will list the host character sets it supports. @item set charset @var{charset} @kindex set charset Set the current host and target character sets to @var{charset}. As -above, if you type @code{set charset} followed by @key{TAB}@key{TAB}, -@value{GDBN} will list the name of the character sets that can be used +above, if you type @kbd{@w{set charset @key{TAB}@key{TAB}}}, +@value{GDBN} will list the names of the character sets that can be used for both host and target. - @item show charset @kindex show charset -Show the names of the current host and target charsets. +Show the names of the current host and target character sets. -@itemx show host-charset +@item show host-charset @kindex show host-charset -Show the name of the current host charset. +Show the name of the current host character set. -@itemx show target-charset +@item show target-charset @kindex show target-charset -Show the name of the current target charset. +Show the name of the current target character set. +@item set target-wide-charset @var{charset} +@kindex set target-wide-charset +Set the current target's wide character set to @var{charset}. This is +the character set used by the target's @code{wchar_t} type. To +display the list of supported wide character sets, type +@kbd{@w{set target-wide-charset @key{TAB}@key{TAB}}}. + +@item show target-wide-charset +@kindex show target-wide-charset +Show the name of the current target's wide character set. @end table Here is an example of @value{GDBN}'s character set support in action.