From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#8033: Not the byte compiler; problem lies deeper Date: Mon, 14 Feb 2011 17:10:56 -0500 Message-ID: <87vd0m6zdb.fsf@maru.md5i.com> References: <87lj1jf6h3.fsf@maru.md5i.com> <87oc6e97yu.fsf@maru.md5i.com> <877hd28it5.fsf@maru.md5i.com> <87tyg69tcv.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297723694 20791 80.91.229.12 (14 Feb 2011 22:48:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 22:48:14 +0000 (UTC) Cc: 8033@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 14 23:48:09 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp7DF-0002UL-8z for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 23:48:09 +0100 Original-Received: from localhost ([127.0.0.1]:50429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp72B-00058c-EH for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 17:36:43 -0500 Original-Received: from [140.186.70.92] (port=36890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp722-00057i-2C for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:36:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp720-00016c-P3 for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:36:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp71z-00016O-2k for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:36:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pp6Uc-0001VP-Ea; Mon, 14 Feb 2011 17:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Feb 2011 22:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8033-submit@debbugs.gnu.org id=B8033.12977209205777 (code B ref 8033); Mon, 14 Feb 2011 22:02:02 +0000 Original-Received: (at 8033) by debbugs.gnu.org; 14 Feb 2011 22:02:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp6UZ-0001V8-W7 for submit@debbugs.gnu.org; Mon, 14 Feb 2011 17:02:00 -0500 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp6UY-0001Ur-Ef for 8033@debbugs.gnu.org; Mon, 14 Feb 2011 17:01:58 -0500 Original-Received: from md5i by maru.md5i.com with local (Exim 4.72) (envelope-from ) id 1Pp6dE-0006dd-J6; Mon, 14 Feb 2011 17:10:56 -0500 In-Reply-To: <87tyg69tcv.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 14 Feb 2011 16:52:32 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 14 Feb 2011 17:02:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44130 Archived-At: Chong Yidong writes: > Michael Welsh Duggan writes: > >> Here is a patch which fixes this problem. >> >> *** src/print.c 2011-02-14 15:39:19 +0000 >> --- src/print.c 2011-02-14 20:24:00 +0000 >> *************** >> *** 1063,1068 **** >> --- 1063,1070 ---- >> /* Generate the fewest number of digits that represent the >> floating point value without losing information. */ >> dtoastr (buf, FLOAT_TO_STRING_BUFSIZE, 0, 0, data); >> + /* Force a decimal point even if integer */ >> + width = 1; >> } >> else /* oink oink */ >> { Oh, and I should mention that without this patch, width gets used as an uninitialized variable after the if clause, which is why it is pretty random whether we get 1.0 or 1 in the output. -- Michael Welsh Duggan (md5i@md5i.com)