Branch: refs/heads/rurban/broken-sprintf-uplus-gh832
Home: https://github.com/parrot/parrot
Commit: e1e4b1185943893ed585c7310bf321a3ed1e02da
https://github.com/parrot/parrot/commit/e1e4b1185943893ed585c7310bf321a3ed1e02da
Author: Reini Urban <[email protected]>
Date: 2025-12-15 (Mon, 15 Dec 2025)
Changed paths:
M config/auto/snprintf.pm
M config/auto/snprintf/test_c.in
M config/gen/config_h/feature_h.in
M src/string/spf_render.c
Log Message:
-----------
[GH #832] Probe for broken snprintf %+..u in mingw and fix it.
snprintf %+u fails on mingw only. t/op/sprintf.t test 217 and
t/op/string.t: 196, 198 (now 197)
The + is always printed, but should not.
As it works okay in win32 (with msvcrt.ll) and cygwin (cygwin1.dll)
on the same system, I assumed it's mingw only snprintf/sprintf wrapper
issue.
Probe in auto:snprintf for PARROT_HAS_BROKEN_SPRINTF_UPLUS and skip
the '+' in %+..u in spf_render.c.
But the probe is not yet correct. It passes on mingw, but should fail.
To unsubscribe from these emails, change your notification settings at
https://github.com/parrot/parrot/settings/notifications
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-commits