Repository navigation
feat(libc): implement localeconv - #3245
pushkarreddyy wants to merge 1 commit into
Conversation
|
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes. |
|
The intake check closed this automatically. @oneandonlydean @MarcZX100 @adriadam10: Could one of you please reopen or carry this when convenient? It implements |
Independent localeconv source and runtime validation (2026-10-11, 1642b5c)The exact three source/test files from #3245 ( Two qualified observations against FreeBSD 11.4
Proposed adaptation and extended tests, fork commit Validation:
Fork ref/parent and four changed-file Git blobs verified. No PR opened during halted intake. AI-assisted adaptation, tests and investigation: Codex. Game replay with the preserved unlocked-I/O prerequisite follows separately; no gameplay or console-equivalence claim. Outstanding ABI question: #545 places Controlled title replay and preserved fork integration (2026-10-11, e22af77)The original caller ABI question is now narrowed for PPSA99902: four of its five known direct callers read the decimal pointer at result+0; the fifth copies a 96-byte prefix. All original hashes, mapped bytes and five original unwind boundaries checked; Capstone/GNU objdump agree. Ghidra reverified 5/5 full PT_LOAD hashes and import references, but has 0/5 existing caller functions here: no decompiler inference or AI type is used. This supports the FreeBSD-style prefix for this title, not all fields/universal PS5 ABI. Exact addresses/raw instructions and PR #545 comparison. The experimental carry Full integration build and 122 libraries pass; 823/828 full-suite tests pass, 5 documented display/no-Vulkan skips, 0 failures, max 16.41 s, global 30 s harness limit, Controlled startup: same fresh Next: independently validate existing closed/unmerged #1770 and #2280 implementations of fminf, including signed-zero/NaN/exception behavior. Neither math PR has been tested by us yet. AI-assisted adaptation, validation and reporting: Codex. Older FreeBSD proposal no longer carried in current integration (2026-10-11)Fresh main0f863 integration retains upstream's merged Sony CRT0x90-byte locale structure and does not carry our earlier FreeBSD offset0 override. With math/kernel prerequisites it enters PPSA99902 guest; the controlled D64-only driver change advances5/5 to #3036. The old override is therefore not established as necessary for this newer startup stack. Current Sony-source probe, tests, vendor observation and unresolved guest-caller ABI distinction. The original FreeBSD source/caller evidence and tests remain historical scoped evidence, not proof that one FreeBSD structure universally implements PS5 localeconv. Current Sony prefix pointers are non-null empty monetary strings, so previous null-fallback reasoning does not cover this version. We should settle actual guest/toolchain ABI expectations rather than replace the vendor layout to fit one target. No new PR; AI-assisted validation/report: Codex. |
|
Thank you so much @Amoenus for the meticulous runtime disassembly analysis and 5/5 title replay validation on Sonic Unleashed Recompiled ( Confirming that the title callers read |
What
Implement
localeconv(NID0hlfW1O4Aa4) inlibc.struct GuestLconvmatching 64-bit ABI layout and member offsets inGuestLocale.hpp.localeconv_nid_postfix()inLocaleSupport.cppreturning the standard classic C locale configuration (.decimal point,""string fields,CHAR_MAX127 integer formatting values).*__error_nid_postfix().GuestLocale.cppunit tests validating struct contents, pointer stability, and guest errno sentinel preservation.docs/dev/TechnicalDebt.md.Resolves runtime stops on
main:PPSA99600) andPPSA17641fail at startup:./app.elf: symbol lookup error: ./app.elf: undefined symbol: 0hlfW1O4Aa4PPSA99808,PPSA99810,PPSA99010,PPSA99728).Tested
GuestLocalechecks pass.python tools/check_conventions.py --base origin/mainreports 0 errors.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)