在 2025-10-6 20:50, Peter Damianov via Mingw-w64-public 写道:
Remove incorrect width adjustment that prevented proper padding
with spaces for %g format specifier for the following case:

printf("(%10g)\n", 100000.0f);  // --> (100000)

+    // Test the %g width specifier
+    // This should output "(    100000)" with 4 leading spaces
+    int ret = snprintf(buffer, sizeof(buffer), "(%10g)", 100000.0f);

With this patch, instead of the expected 4 spaces, it now produces 9 spaces:
(https://github.com/lhmouse/mingw-w64/actions/runs/18286702356/job/52063486165#step:5:4758)

   FAIL: Expected '(    100000)', got '(         100000)'

+
+    return 0;
+}
\ No newline at end of file

^ Please fix this when committing. Also, there's no need to send a patch for Makefile.in, since it can't be reviewed.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to