feat(libSceCesCs): add sceCesRefersUcsProfileCp1251 and sceCesMbcsUcsContextInit #3824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3824"
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 xXPBSXx on 2026-10-11T17:16:05Z.
What
Adds
sceCesRefersUcsProfileCp1251andsceCesMbcsUcsContextInittolibSceCesCs, which PPSA15246 imports.sceCesRefersUcsProfileCp1251returns a profile thatsceCesSbcToUtf8andsceCesUtf8ToSbcaccept next to the existing Cp1252 one, with the Windows-1251 table of Microsoft's bestfit1251.txt (byte 0x98, unassigned there, maps to U+0098 like the unassigned Cp1252 bytes; the console behavior for that byte is not verified).sceCesMbcsUcsContextInit(context, profile)returns the invalid-parameter error for a null context and success otherwise without writing to the context: its layout and size are unknown. The signature follows the Orbital IDA type database. Listed indocs/dev/TechnicalDebt.md.guest_ces_testsgets a Cp1251 round-trip case.Tested
Windows,
maina11c8f7f7plus this branch:python tools/check_conventions.py --base upstream/mainpasses;ctest -R guest_cespasses. Not tested on Linux and not run against PPSA15246 with this branch; no conversion through an initialized context exists.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 repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:16:26Z.
Progress report (
bab7b32→50ca599)📈 System libraries: 86.48% (+0.01%, +2 implemented functions)
✅ 2 implemented
sceCesMbcsUcsContextInitsceCesRefersUcsProfileCp1251⚪ 1 behaviourally empty (constant return or throw)
sceCesRefersUcsProfileCp1251Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T17:54:25Z.
Review: CHANGES_REQUESTED
Thanks, the Cp1251 table and the profile handling check out (all 128 entries match the Windows-1251 codec;
guest_cespasses on a Linux build and fails to link without the change). Two things to fix:core/libs/prx/libSceCesCs-module/CMakeLists.txt: the only-moduletargets onmainarelibSceFont-moduleandlibSceFontFt-module, which exist because a title loads the library under that name. Please show that PPSA15246 (or another title) loadslibSceCesCs-module, with a test that uses the target, or drop it from this PR. As is, it compiles the same exports a second time and nothing builds or tests it (EXCLUDE_FROM_ALL).docs/dev/TechnicalDebt.md:47: the new line is the last one of "Silent stubs", where other open PRs append (#2850 already touches the neighbouring line, so this will conflict). Please place it a few lines away from the end of the section.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T18:35:36Z.
Thanks, both points addressed in the new commit on this branch:
libSceCesCs-moduleis removed. I have no evidence that a title loads the library under that name (PPSA15246'ssce_modulefolder holds onlylibc.prx), and nothing built or tested the target, so it does not belong here.sceCesMbcsUcsContextInit/ Cp1251 TechnicalDebt line moved a few lines up inside "Silent stubs", away from the last line.Tested:
check_conventions.py --base upstream/mainpasses,ctest -R guest_cespasses (Windows).AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:07:40Z.
Review: APPROVED
Checked the Cp1251 table (128 entries), both profiles in
sceCesSbcToUtf8/sceCesUtf8ToSbc,guest_ces(passes; fails to link without the change) and the TechnicalDebt placement; both review points are addressed. Merging.