From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10926 invoked by alias); 1 Feb 2009 23:18:39 -0000 Received: (qmail 10869 invoked by uid 22791); 1 Feb 2009 23:18:39 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 01 Feb 2009 23:18:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1D57C109AE; Sun, 1 Feb 2009 23:18:34 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 05036108C4; Sun, 1 Feb 2009 23:18:34 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LTlaD-0006t3-MN; Sun, 01 Feb 2009 18:18:33 -0500 Date: Sun, 01 Feb 2009 23:18:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Cc: Tom Tromey , Joel Brobecker , Julian Brown Subject: Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support Message-ID: <20090201231833.GA26279@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org, Tom Tromey , Joel Brobecker , Julian Brown References: <20090115202411.5f154657@rex.config> <20090130194343.GA3964@adacore.com> <20090201182344.GD4597@caradoc.them.org> <20090201231604.GA24974@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090201231604.GA24974@caradoc.them.org> User-Agent: Mutt/1.5.17 (2008-05-11) 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-02/txt/msg00018.txt.bz2 On Sun, Feb 01, 2009 at 06:16:04PM -0500, Daniel Jacobowitz wrote: > I see. Yes, this will be a bit trickier, but not much. > > As far as portability goes, we may have to experiment. But I can tell > you flat out that swprintf is going to be a problem; it's a C99 > library function and most hosts don't have C99 library extensions. > > I see that gnulib has at least part of a vasnwprintf implementation... > I wonder if they're planning to finish it. Oh, how nice, gnulib has lists of missing functions! E.g.: Portability problems not fixed by Gnulib: @itemize @item This function is missing on some platforms: NetBSD 3.0, OpenBSD 3.8, HP-UX 11.00, IRIX 6.5, Solaris 2.6, Cygwin, Interix 3.5, BeOS. @item On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @item On Windows, this function does not take a buffer size as second argument. @end itemize -- Daniel Jacobowitz CodeSourcery