From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19841 invoked by alias); 25 Jan 2007 04:23:06 -0000 Received: (qmail 19830 invoked by uid 22791); 25 Jan 2007 04:23:04 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Jan 2007 04:22:59 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-233-190.inter.net.il [83.130.233.190]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id GYL28472 (AUTH halo1); Thu, 25 Jan 2007 06:22:58 +0200 (IST) Date: Thu, 25 Jan 2007 04:23:00 -0000 Message-Id: From: Eli Zaretskii To: Jan Kratochvil CC: gdb-patches@sourceware.org In-reply-to: <20070125015422.GA19113@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Thu, 25 Jan 2007 02:54:22 +0100) Subject: Re: [RFC] Signed/unsigned character arrays are not strings Reply-to: Eli Zaretskii References: <20070125015422.GA19113@host0.dyn.jankratochvil.net> 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: 2007-01/txt/msg00518.txt.bz2 > Date: Thu, 25 Jan 2007 02:54:22 +0100 > From: Jan Kratochvil > > currently all these types are printed as strings: > char > signed char > unsigned char > the patch will reduce the printed strings only to > char > and the signed/unsigned version gets printed as an array of byte values > (characters). I hope nobody uses sign-specification for strings. I must say I'm uneasy about this. Signedness could be random. What will happen on platforms where `char' is unsigned by default? Anyway, this change should probably be reflected in the manual, and perhaps also in NEWS. > Bugreported by Ulrich Drepper. What bug? can you show it?