feat(libSceCesCs): add the Windows-1253, 1255 and 1257 profiles #9912
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9912"
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 SkillzTech1 on 2026-10-22T21:25:55Z.
What
Builds on #8923, which adds 27 single-byte profiles and leaves out the Windows code pages whose best-fit tables map bytes to private use. This adds those three:
sceCesRefersUcsProfileCp1253,sceCesRefersUcsProfileCp1255andsceCesRefersUcsProfileCp1257now return a profile instead of throwing.MBTABLEof Microsoft's bestfit1253.txt, bestfit1255.txt and bestfit1257.txt, the same source asCP1250_HIGH,CP1251_HIGHand #8923's 1254, 1256 and 1258. They are three more entries in #8923'sSingleByte.hpp, used through itssbcHighTable; no other code changes.0xAA,0xD2,0xFF(U+F8F9-U+F8FB), Cp12550xD9-0xDF,0xFB,0xFC,0xFF(U+F88D-U+F896) and Cp12570xA1,0xA5(U+F8FC, U+F8FD). This is what Windows' own conversion does for these code pages. Every other byte, including Cp12550xCA(U+05BA), is a regular character or a C1 control as in the other Windows tables.sceCesUtf8ToSbcand MBCS output are unambiguous.27c3f6ba2; the change here is the last commit only. I will rebase it ontomainonce #8923 merges.docs/dev/debt/libSceCesCs.mdsays so, now for 30 profiles. The pending-exports count drops from 222 to 219.Tested
Windows 11 Pro, MSYS2 UCRT64 GCC 16.1.0, Release, this branch merged into
main9e568a389(#8923's base no longer configures with this GCC, which needs the SEH support added since).ctest -R '^guest_ces': 6/6 pass (guest_ces,guest_ces_module,guest_ces_dbcs,guest_ces_dbcs_module,guest_ces_unicode,guest_ces_unicode_module).CheckSingleByteProfilescovers the three new profiles: distinct stable pointers, the 1-255 round trip, and four sample bytes each plus two of the private use bytes and Cp12550xCA.libSceCesCs.prxdecoded all 256 bytes and encoded all BMP scalars for 1250-1258 and compared them with Python 3.13'scp125xcodecs: 0 mismatches in both directions; the only bytes not compared are those Python leaves undefined, listed above. Each profile encodes exactly 256 scalars.python3 tools/check_conventions.py --base origin/mainpasses.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
Pull request closed