From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26802 invoked by alias); 15 Oct 2012 20:14:41 -0000 Received: (qmail 26787 invoked by uid 22791); 15 Oct 2012 20:14:39 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Oct 2012 20:14:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 5D2891C7E08; Mon, 15 Oct 2012 16:14:33 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pLge0HpRp5vZ; Mon, 15 Oct 2012 16:14:33 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1751D1C7BD9; Mon, 15 Oct 2012 16:14:33 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 98D97CB492; Mon, 15 Oct 2012 13:14:28 -0700 (PDT) Date: Mon, 15 Oct 2012 20:14:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: gdb-patches@sourceware.org, tromey@redhat.com Subject: Re: printing 0xbeef wchar_t on x86-windows... Message-ID: <20121015201428.GG3050@adacore.com> References: <20121015190052.GH3034@adacore.com> <83hapv4iy4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83hapv4iy4.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-10/txt/msg00242.txt.bz2 > > * valprint.c:generic_emit_char calls wchar_iterate, and finds > > one valid character according to the intermediate encoding > > ("wchar_t"), even though the character isn't valid in the > > original/target charset ("CP1252"). > > How would cp1252 enter the picture, when you are talking about a > wchar_t data type? It's the default target charset on this host (see "set/show host-charset"). That's pretty much all I know. -- Joel