feat(libc): implement wcsftime #4226
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4226"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:46:39Z.
What
Adds the missing
wcsftimeexport for PS5MC (NIDXbVXpf5WF28) using the guest's 16-bit wide strings and the existing C-locale conversion routines. The implementation follows FreeBSD 11.4 behavior for conversion errors, empty/truncated output, overflow, and null arguments, including restoring errno around Windows CRTstrftimebehavior. Adds regression coverage toguest_wide_formattingand records the source behavior indocs/dev/debt/libc.md. The original implementation commit author is preserved.Tested
Checklist
main; no matching open PRwcsftimeexport and its tests/documentationstrftimetechnical-debt entrykern.arandomline while preserving the existing entryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:46:45Z.
Carried #3625’s ready commit onto current main; the author is preserved. Local conventions and diff checks pass, but Linux CMake configure is blocked here by the missing SDL2 submodule contents and audio development headers, so the PR body records the original Windows test results and local limitation.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:47:43Z.
Progress report (
9ba9ac1→78ffdf0)➖ System libraries: 87.85% (+0.0%, +1 implemented functions)
✅ 1 implemented
wcsftime_nid_postfixImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T15:38:42Z.
Rebase handoff — rebased onto current
main, authorship unchanged (only aTechnicalDebt.mdunion conflict; both entries kept).Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesTo pick it up:
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:58:11Z.
Needs a rebase (
docs/dev/debt/libc.md,docs/dev/debt/libkernel.md). While there: keep thestrftimeentry indocs/dev/debt/libc.md, and drop the secondkern.arandomline the branch adds todocs/dev/debt/libkernel.md.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T07:17:54Z.
Thanks. The current PR head still conflicts with main. I will rebase it, keep the existing strftime debt entry, and remove the duplicate kern.arandom line before asking for review again.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T07:34:26Z.
Rebased the PR onto current
main. I kept the existingstrftimedebt entry, added thewcsftimeentry beside it, and removed the duplicatekern.arandomline by preserving the current-main entry. I updated the description so the earlier full-suite report is not presented as a test of this rebased head; CI should rerun.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T07:40:05Z.
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.
main)docs/dev/debt/libc.mdL57core/libs/tests/GuestWideFormatting.cppL2