Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gA03t-0007lN-7w for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Oct 2018 22:01:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gA03r-0006CX-8e for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Oct 2018 22:01:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gA03r-0006CQ-1a for pgsql-hackers@lists.postgresql.org; Tue, 09 Oct 2018 22:01:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gA03k-0007jI-Cc for pgsql-hackers@lists.postgresql.org; Tue, 09 Oct 2018 22:01:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w99M0sV9002935 for ; Tue, 9 Oct 2018 18:00:54 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Make Windows print float exponents like everybody else? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2933.1539122454.1@sss.pgh.pa.us> Date: Tue, 09 Oct 2018 18:00:54 -0400 Message-ID: <2934.1539122454@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I can't believe I got no comments about this, so reposting it under a more attention-getting title ... In https://www.postgresql.org/message-id/29037.1539021687@sss.pgh.pa.us I wrote: > Also, we have quite a few variant expected-files that exist only to cater > for Windows' habit of printing three exponent digits where everybody else > prints just two. It struck me that it would not be hard, or expensive, > to undo that choice in snprintf.c (see attached untested patch). So we > could considerably reduce future maintenance pain for the affected tests > by getting rid of those files. > > As against that, Windows users might possibly complain that float output > looks different than they're used to. I'm not sure how much sympathy > I have for that position. If we reimplement float output for more speed, > as is under discussion in nearby threads, I doubt we'd trouble to preserve > this Windows-ism in the rewrite. > > Comments? If I don't get any pushback I'm going to go do that... regards, tom lane