From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2789 invoked by alias); 18 Mar 2009 02:51:48 -0000 Received: (qmail 2774 invoked by uid 22791); 18 Mar 2009 02:51:46 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Mar 2009 02:51:39 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n2I2oqFW021197; Tue, 17 Mar 2009 22:50:52 -0400 Received: from opsy.redhat.com (vpn-14-28.rdu.redhat.com [10.11.14.28]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2I2oq3c020199; Tue, 17 Mar 2009 22:50:53 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 74FA8508085; Tue, 17 Mar 2009 20:50:50 -0600 (MDT) To: Eli Zaretskii Cc: mark.kettenis@xs4all.nl, brobecker@adacore.com, bauerman@br.ibm.com, andreolb@gmail.com, gdb-patches@sourceware.org Subject: Re: [PATCH] PR exp/9103 References: <20090311153711.GA5197@caradoc.them.org> <1236803010.11106.50.camel@localhost.localdomain> <20090313232515.GD30693@adacore.com> <200903132337.n2DNb26P011841@brahms.sibelius.xs4all.nl> From: Tom Tromey Reply-To: Tom Tromey Date: Wed, 18 Mar 2009 03:07:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Wed\, 18 Mar 2009 00\:04\:52 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00355.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Eli> This text is okay, but I think we should mention that libiconv is Eli> required for a _real_ support of these features. Thanks, after this I noticed that the manual has a section on install requirements. What do you think of the appended patch? Tom 2009-03-17 Tom Tromey * gdb.texinfo (Requirements): Mention iconv. diff --git a/gdb/NEWS b/gdb/NEWS index 3f084e7..a8ddd45 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -8,7 +8,9 @@ target. Strings whose character type is wchar_t, char16_t, or char32_t are now correctly printed. GDB supports wide- and unicode- literals in C, that is, L'x', L"string", u'x', u"string", U'x', and U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in -`printf'. +`printf'. This feature requires iconv to work properly; if your +system does not have a working iconv, GDB can use GNU libiconv. See +the installation instructions for more information. * GDB now supports automatic retrieval of shared library files from remote targets. To use this feature, specify a system root that begins diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7a49aea..72878a6 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24734,6 +24734,24 @@ The @samp{zlib} library is likely included with your operating system distribution; if it is not, you can get the latest version from @url{http://zlib.net}. +@item iconv +@value{GDBN}'s features related to character sets require a +functioning @code{iconv} implementation. If you are on a GNU system, +then this is provided by the GNU C Library. Some other systems also +provide a working @code{iconv}. + +On systems with @code{iconv}, you can install GNU Libiconv. If you +have previously installed Libiconv, you can use the +@option{--with-libiconv-prefix} option to configure. + +@value{GDBN}'s top-level @file{configure} and @file{Makefile} will +arrange to build Libiconv if a directory named @file{libiconv} appears +in the @file{src} directory. If Libiconv is built this way, and if +the operating system does not provide a suitable @code{iconv} +implementation, then the just-built library will automatically be used +by @value{GDBN}. One easy way to set this up is to download GNU +Libiconv, unpack it, and then rename its topmost directory to +@samp{libiconv}. @end table @node Running Configure