Drop support for MSVCRT's float formatting quirk.

Thomas Munro <tmunro@postgresql.org>

Commit: 6b46669883fac9521c20fe4e2c55ccfbee778591
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2025-11-19T21:38:15Z
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

Files

PathChange+/−
src/port/snprintf.c modified +0 −27

Discussion