From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3181 invoked by alias); 18 Feb 2007 20:34:22 -0000 Received: (qmail 3173 invoked by uid 22791); 18 Feb 2007 20:34:21 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sun, 18 Feb 2007 20:34:16 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HIsjb-00042j-3z; Sun, 18 Feb 2007 15:34:11 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HIsja-0008Fy-BC; Sun, 18 Feb 2007 15:34:10 -0500 Date: Sun, 18 Feb 2007 20:34:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [RFC] print/x of a float/double should printf ("%a") Message-ID: <20070218203410.GA31724@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , Jan Kratochvil , gdb-patches@sourceware.org References: <20070218153705.GA25940@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-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: 2007-02/txt/msg00228.txt.bz2 On Sun, Feb 18, 2007 at 10:25:54PM +0200, Eli Zaretskii wrote: > . I don't like this bit: > > > Systems not supporting "%a" will print the value as > > print (float) a > > which differs from the current way there: > > print/x (long) a > > This makes this an incompatible change. For this reason, I'd prefer a > new format letter, like Andreas suggested. Is that the only reason you prefer a new format letter, rather than changing 'x'? We could make it work everywhere - it would just be a bit of work, probably by adding appropriate bits to gnulib. I'll even volunteer to do it. The current behavior is "print/x (long) val", which I consider to be silly. I can't recall ever typing p/x on a float value and expecting to get a result rounded to no decimal places. -- Daniel Jacobowitz CodeSourcery