feat(libSceCesCs): implement Unicode scalar conversions #7848
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7848"
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 SibteProf on 2026-10-19T10:53:00Z.
What
Implement 15 CES scalar conversion functions with real encoding behavior:
sceCesEucJpToUtf8export using the existing CP51932 profile, JIS X 0208 and JIS X 0212 tables.libSceCesCsandlibSceCesCs-modulethrough their shared source builder. Korean and Big5 conversions retain their throwing stubs.The progress scanner on base
ebf054c67changes from 3889/4700 (82.74%) to 3904/4714 (82.82%): 14 previously undeclared functions implemented and one existing pending function completed. These counts describe implementations, not console verification or playable titles.Console error precedence, optional length pointers, length units and the existing Japanese profile/table assumptions remain unverified and are recorded in
docs/dev/debt/libSceCesCs.md. This PR makes no title-unblocking claim.Tested
Windows 11, supported WinLibs MinGW-w64 GCC 15.2.0, Release,
BUILD_TESTING=ON:guest_ces,guest_ces_module,guest_ces_unicodeandguest_ces_unicode_module: 4/4 passed. The new tests take about 0.15 seconds each locally.957cc0987e6013e5and6a25a430597ec325). Explicit byte-order fixtures, null pointers, short buffers, truncated and malformed input, surrogate failures and unchanged failure outputs are also checked.origin/main'sExport.cppmakes the new behavioral test fail on its throwing Japanese converter; restoring this implementation passes.-Wall -Wextra -Wconversion -Werror -fsyntax-only.cmake --build build --target libs relinker guest_ces_tests guest_ces_module_tests guest_ces_unicode_tests guest_ces_unicode_module_tests patched_libraries_tests --parallel 6.guest_ces*,patched_libraries,progress_report,test_registration). The complete repository test suite was not run.tools/pr_overlap.pyfinds no duplicate exports or confirmed conflicts. It flags an uncomparable shared CMake file with #6044, whose broader branch conflicts with main. Manually reviewed that diff and verified a clean three-way merge of the shared CES CMake file after placing new test registration in a separate block. It changes existing test source paths and labels and implements none of these functions. No dependency is required.No console, title, Linux or macOS runtime comparison was run.
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 github-actions[bot] on 2026-10-19T10:53:48Z.
Progress report (
7f6ef06→f9d6f3e)📈 System libraries: 82.58% (+0.07%, +15 implemented functions)
✅ 15 implemented
sceCesEucJpToUtf8sceCesUcs2ToUtf8sceCesUtf16ToUtf8sceCesUtf16beToUtf8sceCesUtf16leToUtf8sceCesUtf32ToUtf8sceCesUtf32beToUtf8sceCesUtf32leToUtf8sceCesUtf8ToUcs2sceCesUtf8ToUtf16sceCesUtf8ToUtf16besceCesUtf8ToUtf16lesceCesUtf8ToUtf32sceCesUtf8ToUtf32besceCesUtf8ToUtf32leImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T11:04:56Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceCesCs/CMakeLists.txtcore/libs/prx/libSceCesCs/CMakeLists.txtcore/libs/prx/libSceCesCs/Export.cppdocs/dev/debt/libSceCesCs.mdImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T12:10:31Z.
Review: APPROVED
Reviewed the diff and test methodology:
CesLibrary.cmakeserving bothlibSceCesCsandlibSceCesCs-moduleshared targets.Unicode.cpp(sceCes*ToUtf8,sceCesUtf8To*) handling UTF-8, UTF-16BE/LE, UTF-32BE/LE, and UCS-2 surrogate and byte-order conversions without non-standard extensions.GuestCesUnicode.cpptesting all 1,112,064 Unicode scalar values against independent FNV-1a hashes, alongside truncation and buffer boundary assertions.docs/dev/debt/libSceCesCs.mdthoroughly updated under### Functionaland### Unknown function info.Ready to merge.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:42:26Z.
Checked the UTF-8/16/32/UCS-2 scalar conversions (strict UTF-8, surrogate pairs, capacity check before write, outputs untouched on failure), the EUC-JP converter against the existing decoder, ctest registration (both variants) and the debt entries; merged.