Drop support for MSVCRT's float formatting quirk.
authorThomas Munro <tmunro@postgresql.org>
Wed, 19 Nov 2025 21:23:44 +0000 (10:23 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 19 Nov 2025 21:38:15 +0000 (10:38 +1300)
commit6b46669883fac9521c20fe4e2c55ccfbee778591
tree9d2bb9c0472c3c8c4e5ced5387e736950c4241a6
parent7ab9b34614c2d6f69070a667787e0b091ecb72b1
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
src/port/snprintf.c