feat(libSceCesCs): declare the missing firmware character set exports #8240
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8240"
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 adhimiw on 2026-10-20T05:46:30Z.
What
Declares 249
libSceCesCsexports that the console's character-set service has and the project did not provide.AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 249 such exports for
libSceCesCs: the UTF-16, UTF-16BE, UTF-16LE and UTF-32 forms of the conversions the library already does to and from UTF-8, the EUC-KR, Big5, UHC and ISO-2022-JP profile builders, the JIS level queries and the remaining profile setters.Every declaration calls
NotImplemented_nid_no_patchand returns 0, so none of them implements the function and none of them fakes a success. No credible prototype is known for them, so they are declared without parameters, which resolves the import without making an ABI claim. The declarations live in the newcore/libs/prx/libSceCesCs/PendingExports.cpp, which the sharedCesLibrary.cmakebuilds into bothlibSceCesCsandlibSceCesCs-module.docs/dev/debt/libSceCesCs.mdrecords the limitation in the same terms as the other libraries' pending export lists.The names and NIDs come from the export inventory and every one of them recomputes to its NID with
tools/nid_names.py; the file is generated withtools/stubgen.py.Tested
Linux (Omarchy, kernel 7.2.8), GCC 16.2.1, CMake 4.4.4:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ONconfigured and the full build compiled and linked;ctest -j4ran 1669 tests, all passed, including the fourguest_cestests for the library and its module wrapper.python3 tools/check_conventions.py --base upstream/mainpasses.python3 tools/pr_overlap.py --branch feat/libSceCesCs-pending-exportsreports no shared export with any open pull request; it reports that #7884 touches the same technical-debt file, which it does without changing the entries this pull request adds. The patchedlibSceCesCs.prxwas read back afternid_patcher: all 249 new NIDs are in its dynamic export table and no export was lost.Not tested: a title, a console, the Windows build.
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 (none added).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T06:38:47Z.
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/libSceCesCs.mdL13