feat(libSceCesCs): implement Shift-JIS and EUC-JP scalar conversions #8967
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8967"
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:46:31Z.
What
Implements 32 libSceCesCs exports that were pending stubs, on the existing CP932 (
sceCesUcsProfileInitSJis1997Cp932) and CP51932 (sceCesUcsProfileInitEucJpCp51932) profiles and JIS tables:sceCesSJisTo{Ucs2,Utf8,Utf16,Utf16be,Utf16le,Utf32,Utf32be,Utf32le}sceCesEucJpTo{Utf16,Utf16be,Utf16le,Utf32,Utf32be,Utf32le}sceCes{Ucs2,Utf8,Utf16,Utf16be,Utf16le,Utf32,Utf32be,Utf32le}To{SJis,EucJp}sceCesSJisCodeToJisX0208,sceCesJisX0208ToSJisCodeSignatures follow the Orbital type database. Each call converts one character and follows the argument checks and error order of the existing
sceCesEucJpToUtf8andsceCesUtf8ToSbc. The Shift-JIS row/cell arithmetic already indecodeMbcs/encodeMbcsmoves into two helpers that the new code reuses; behaviour is unchanged. The errors are not console measurements and are recorded indocs/dev/debt/libSceCesCs.md. libSceCesCs goes from 32 to 64 of 284 intools/progress.py.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_japanese: errors, byte orders, a Shift-JIS round trip of every encodable BMP code point, and a round trip of all 94×94 JIS X 0208 cells through the code functions;guest_cesandguest_ces_unicode, with no regressions.The CMake/ctest build on Linux and Windows was not run locally.
check_conventions.pyandpr_overlap.pyare clean. 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:19Z.
Windows run of 164432c64a merged cleanly onto
mainf894ba69d3, the CMake/ctest build the description lists as not run. 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 six 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_japaneseandguest_ces_japanese_module: all six pass on both repeats, the newguest_ces_japaneseand its module form among them. Not run: Linux, a title.Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-21T18:16:53Z.
Linux run of
3990593a1merged 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_unicodeand 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).