feat(libSceCesCs): add UTF-16 and UTF-32 forms of the SBC and MBCS string conversions #8972
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8972"
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 simonbronk on 2026-10-21T07:55:00Z.
What
Implements 22 libSceCesCs exports that were pending stubs: the UTF-16 and UTF-32 forms of converters that existed only for UTF-8.
sceCesSbcTo{Ucs2,Utf16,Utf16be,Utf16le,Utf32,Utf32be,Utf32le}sceCes{Ucs2,Utf16,Utf16be,Utf16le,Utf32,Utf32be,Utf32le}ToSbcsceCesMbcsStrTo{Utf16,Utf32}Str,sceCesMbcsStrGet{Utf16,Utf32}LensceCes{Utf16,Utf32}StrToMbcsStr,sceCes{Utf16,Utf32}StrGetMbcsLenSignatures follow the Orbital type database. The single-byte forms copy the argument checks and error order of
sceCesSbcToUtf8andsceCesUtf8ToSbc, and the string forms reuse the existingtoMbcs/fromMbcspaths with the CP1252, CP1251, CP1250, CP932 and CP51932 profiles. The errors are not console measurements and are recorded indocs/dev/debt/libSceCesCs.md. libSceCesCs goes from 64 to 86 of 284 intools/progress.py.This branch is stacked on #8967 and reuses its UTF-16 decoder and byte-order helpers; only the top commit is new.
Tested
macOS 27 (Apple silicon), clang, C++20: libSceCesCs sources and tests compiled outside CMake, since the full build does not run on macOS. Passing:
guest_ces_wide: errors, byte orders, a round trip of all 256 CP1251 bytes through UTF-32, and UTF-16/UTF-32 strings with the Shift-JIS and CP1252 profiles;guest_ces,guest_ces_unicodeandguest_ces_japanese(from #8967), with no regressions.The CMake/ctest build on Linux and Windows was not run locally.
check_conventions.pyis clean.pr_overlap.pylists only shared files: #8923 (debt file line), #7884 (EUC-KR/UHC/Big5, different exports) and #6044 (test CMake layout), none of which implements these functions. No title tested.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 ycbuzi on 2026-10-21T08:28:21Z.
Windows run of 5cb8b45110 merged cleanly onto
mainf894ba69d3, the CMake/ctest build the description lists as not run. The head carries #8967's commit too. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release,BUILD_TESTING=ON.Built
libSceCesCs, its module form and the eight test executables with no errors or warnings.ctest --repeat until-fail:2onguest_ces,guest_ces_module,guest_ces_unicode,guest_ces_unicode_module,guest_ces_japanese,guest_ces_japanese_module,guest_ces_wideandguest_ces_wide_module: all eight pass on both repeats, the newguest_ces_wideand its module form among them. Not run: Linux, a title.Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-21T18:16:55Z.
Linux run of
79fe0b903merged ontomain99844c7ee(clean merge).Environment: Ubuntu 24.04 x86-64 container under Rosetta on Apple Silicon (Colima), GCC 13,
RelWithDebInfo,BUILD_TESTING=ON,ANYPS5_ENABLE_ASAN=ON. ASan builds dynamic executables, so this is not the CI configuration.Results: the full build has no errors.
guest_ces,guest_ces_dbcs,guest_ces_japanese,guest_ces_unicode,guest_ces_wideand their module forms: all pass, with no AddressSanitizer report.Not run: the static CI configuration, native x86-64 hardware, GPU tests, a title.
AI-assisted (Claude Code).