Drop support for MSVCRT's float formatting quirk.
Thomas Munro <tmunro@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/port/snprintf.c | modified | +0 −27 |
Discussion
- PRI?64 vs Visual Studio (2022) 41 messages · 2025-03-31 → 2026-06-10