From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13821 invoked by alias); 14 Apr 2006 14:23:59 -0000 Received: (qmail 13809 invoked by uid 22791); 14 Apr 2006 14:23:59 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Apr 2006 14:23:58 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-214-179.inter.net.il [83.130.214.179]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DDG07546 (AUTH halo1); Fri, 14 Apr 2006 17:23:43 +0300 (IDT) Date: Fri, 14 Apr 2006 14:37:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus , gdb@sources.redhat.com In-reply-to: <20060414130729.GB12955@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 14 Apr 2006 09:07:29 -0400) Subject: Re: printing wchar_t* Reply-to: Eli Zaretskii References: <200604141246.58094.ghost@cs.msu.su> <20060414130729.GB12955@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00191.txt.bz2 > Date: Fri, 14 Apr 2006 09:07:29 -0400 > From: Daniel Jacobowitz > Cc: Vladimir Prus , gdb@sources.redhat.com > > On Fri, Apr 14, 2006 at 03:55:49PM +0300, Eli Zaretskii wrote: > > Anyway, UTF-16 is a variable-length encoding, so wchar_t is not it. > > There's a rant about this in the glibc manual I was just reading... > > In fact, on many platforms, wchar_t is only 16-bit. How exactly you > handle UTF-8 or UCS-4 input in this case, I don't really understand. Robert answered to that, and I agree with his response.