pgsql: Drop support for MSVCRT's float formatting quirk.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Drop support for MSVCRT's float formatting quirk.
Date: 2025-11-19 21:39:59
Message-ID: E1vLpuB-000MRj-0a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2025-11-20 00:15:10 pgsql: Add HINT listing valid encodings to encode() and decode() errors
Previous Message Thomas Munro 2025-11-19 21:10:30 pgsql: Drop support for MSVCRT's %I64 format strings.