fix(libSceCesCs): map the GB 18030 profiles as the console does #10739
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10739"
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 rooklz on 2026-10-24T20:09:30Z.
What
The GB 18030 tables followed ICU, and the sources disagree on 26 sequences, so the debt entry called them unmeasured. I measured both profiles on a PS5 with homebrew payloads that load the console's
libSceCesCs.sprx:sceCesMbcToUtf32over every one- and two-byte sequence, every four-byte sequence below0x8431A530, every0x81 0x30-led sequence and the supplementary range (sampled, plus its edges), andsceCesUtf32ToMbcover every value from U+0000 to U+110001. On the console:gb-18030-2000.ucmin the BMP, as here, but maps no supplementary character:0x90308130-0xE3329A35answer0x805C0020with length 4, and U+10000 and up do not encode.0xA8BCand0x8135F437swapped (U+1E3F and U+E7C7), the one difference between the two profiles' sweeps. It keeps the 24 PUA cells thatgb-18030-2005.ucmremaps to U+FE10-U+FE19, U+9FB4-U+9FBB and six supplementary ideographs, so those code points take their four-byte forms as in 2000. Above the BMP it maps plane 2 only, U+20000-U+2FFFF (0x95328236-0x9A348431), both ways.The 2005 profile now uses the 2000 tables with the swap, and
Gb18030.hppdrops the 2005 tables. Both profiles' encode and decode sweeps match the console apart from two topics covered elsewhere: the surrogate error code (#9175) and the lengths of rejected characters.Tested
guest_ces_chinese: the per-profile two-byte, four-byte and encode hashes and the supplementary sample hashes are re-pinned (the 2000 BMP hashes are unchanged), the boundary table now expects no supplementary character in 2000 and plane 2 only in 2005, the difference table keeps the swap only, and the scalar, UTF-16 and string checks use U+20000 in 2005 and refusals in 2000. The otherguest_ces*tests pass.guest_ces*sources pass against thisExport.cpp.cb534c3d82: everyguest_ces*test passes; its one failure,pr_overlap_encoding, fails the same way onmainon that runner.check_conventions.pypasses.pr_overlap.pyreports #9175, #9912, #10056, #10183, #10185, #10186 and #10706 on nearby lines ofExport.cpp, theguest_ces*tests or the debt file; none changes the GB 18030 tables (#10706 moves declarations into export headers). Merge order: #10056 carries the commits of #10185 and #10186, which list this PR as a same-line overlap, and it changes the same Chinese test; whichever of this PR and #10056 lands second rebases onto the other and rerunsguest_ces_chinese.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T20:10:54Z.
Review: COMMENTED
The console-measured table consolidation and per-profile tests are substantial. The required conventions check is failing because the PR title is the placeholder
fix(libSceCesCs). Please update it to identify the behavior (for example,fix(libSceCesCs): map the GB 18030 profiles as the console does) and let the check rerun. I have not approved while that required check is red.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T22:17:00Z.
Review: CHANGES_REQUESTED
The hosted
conventionscheck fails on this exact head because the titlefix(libSceCesCs)is not Conventional Commits syntax, as reported in my earlier comment. Please rename the PR with a typed scope and description (for example,fix(libSceCesCs): map GB 18030 profiles as measured on PS5) and rerun the conventions check. The merge-order dependency with #10056 also remains to be recorded: it overlaps this PR in the GB18030 tables and Chinese test, and it carries the #10186/#10185 stack. Eligibility, intake, labels and report pass; product test jobs are skipped. I have not run the guest CES test locally.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T02:52:28Z.
Review: COMMENTED
Reviewed updated head
0641e0355a67aac313c30563ffa9fdc569c6caaa. The title now passes conventions, the description records the real overlap/merge order with #10056, and the code and tests reflect the revised 2000/2005 supplementary mappings. The author reports all 14guest_ces*tests passed on this head after applying it to main; the current hosted run confirms conventions, eligibility, labels, and report, while all product build jobs are skipped. I have not independently run the CES suite or verified the PS5 sweep. I found no new code blocker in the diff, but am leaving this as a comment review rather than treating the author-reported console/test evidence as independently verified.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T04:23:11Z.
Review: APPROVED
Reviewed exact head
0641e0355a67aac313c30563ffa9fdc569c6caaa. The title now meets the repository convention, and the description records the overlap/order with #10056 and its dependent stack; since either PR can land first and the second rebases,Depends on: noneis consistent. The GB18030 table change and revised boundary expectations match the reported console behavior. The author reports all 14guest_ces*tests passing on this head and provides the PS5 sweep details; I did not independently rerun the CES suite or console measurement. Hosted conventions, eligibility, labels, and report checks pass; product jobs are skipped by workflow policy. No remaining blocker found.