Repository navigation
fix(libc): print the FreeBSD printf extensions and stray percent signs on Windows - #5087
ErenYeager1836 wants to merge 1 commit into
Conversation
|
Review note (static): behavior matches FreeBSD 11.4 AI-assisted (Claude Code). |
e580118 to
112f000
Compare
…s on Windows The Windows printf family threw on the q length modifier, the D, O and U conversions, an unknown conversion character and a format ending in a percent sign, where FreeBSD's vfprintf formats the first three and prints the unknown character itself or stops at the end of the format.
112f000 to
8f18b7a
Compare
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
|
Closing in favor of earlier open PR #3987 by @MarcZX100. |
What
The Windows printf formatting implementation threw on the FreeBSD
qlength modifier (%qd,%qu, etc.),%D,%Oand%Uconversions, unknown conversion characters, and formats ending with a trailing%.qlength modifier by mapping to 64-bit integer formatting (ll).%D,%Oand%Uconversions to long formats per FreeBSD 11.4vfprintf.c.%character.core/libs/tests/Formatting.cpp.docs/dev/debt/libc.md.Carried from @husseinkadhim with attribution preserved.
Tested
Windows and Linux:
core/libs/tests/Formatting.cpptest suite passes for FreeBSD printf conversion extensions.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)