pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Drop support for MSVCRT's float formatting quirk.
Date: Wed, 19 Nov 2025 21:39:59 +0000
Message-ID: <E1vLpuB-000MRj-0a@gemulon.postgresql.org> (raw)

Drop support for MSVCRT's float formatting quirk.

Commit f1885386 added code to remove an unnecessary leading zero from
the exponent in a float formatted by the system snprintf().  The C
standard doesn't allow unnecessary digits beyond two, and the tests pass
without this on Windows' modern UCRT (required since commit 1758d424).

Discussion: https://postgr.es/m/CA%2BhUKGJnmzTqiODmTjf-23yZ%3DE3HXqFTtKoyp3TF-MpB93hTMQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b46669883fac9521c20fe4e2c55ccfbee778591

Modified Files
--------------
src/port/snprintf.c | 27 ---------------------------
1 file changed, 27 deletions(-)



Message-ID: <E1vLpuB-000MRj-0a@gemulon.postgresql.org>
Permalink:  ../E1vLpuB-000MRj-0a@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vLpuB-000MRj-0a@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Drop support for MSVCRT's float formatting quirk.
  In-Reply-To: <E1vLpuB-000MRj-0a@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox