Please sign in to comment.
[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.
- Loading branch information...
Showing with 78 additions and 6 deletions.