feat(libSceCesCs): add the code page 864 profile #11614
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11614"
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 noamroger on 2026-10-26T22:50:28Z.
What
Implements
sceCesRefersUcsProfileCp864, a pending export, with Microsoft's CP864.TXT table. Byte 0x25 is the Arabic percent sign U+066A, and U+0025 has no byte. The undefined bytes 0x9B, 0x9C, 0x9F, 0xA6, 0xA7 and 0xFF are 0 in the table, so they answerUNASSIGNED_CODEin both directions through the existingsbcToUnicodecheck.To support the 0x25 mapping, the single-byte lookup gains a small low-byte override table (
SingleByte::LOW), whichsbcToUnicodeandunicodeToSbcconsult first. The declaration ininclude/Api.hppgets the real return type, the stub leavesPendingExports.cpp(60 left), and a debt entry states what is not measured.Tested
Linux x86-64, full build with GCC 13.
ctest -R guest_ces: all 14 CesCs tests pass.GuestCes.cppchecks every Cp864 byte (the 6 undefined ones fail, the other 249 round-trip and 0x01-0x7F except 0x25 stay ASCII), U+066A ↔ 0x25, U+0025 unassigned, and decoding/encoding through an MBCS context. The table matches Python'scp864codec byte for byte.tools/check_conventions.py --base origin/mainpasses. Not tested on a PS5.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)Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T23:03:50Z.
Review: APPROVED
Reviewed head
2d0f7e214c72883c1b4e4c66b1f39232c4ef853c. The CP864 profile is registered as a distinct single-byte profile, its byte0x25override is consulted in both directions, and the undefined0x0000table cells flow through the existing unassigned-code handling. The pending export is removed and the API declaration now has the profile-pointer return type. The added MBCS checks cover the special low-byte mapping, representative high-byte mappings, undefined bytes, and round-trip conversion. The PR reports a full Pythoncp864table comparison and 14 passingguest_cestests; I did not rerun them locally. Hosted eligibility, conventions, intake, labels and progress report pass; the build/relinker jobs are skipped by path policy, so no hosted C++ test run is available. I found no blocking issue in the diff.