feat(ces): add eight sparse single-byte profiles #10056
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10056"
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 atharvjairath on 2026-10-23T07:25:09Z.
What
The eight profile getters for ISO-8859-3/6/7/8/11 and CP857/869/874 currently throw. They now return profiles usable by the existing scalar UTF-8/UCS-2/UTF-16/UTF-32 converters and MBCS string/length APIs. Undefined bytes return
UNASSIGNED_CODE. UTF-8 scalar output/length handling and string termination/partial counts use the console-measured shared paths now merged into main. Reverse lookup excludes the undefined-entry marker, so U+FFFF cannot encode to a hole.Mappings are regenerated from the Unicode-hosted ISO tables, Microsoft PC tables and CP874.TXT. Getter signatures follow the Orbital type database at b321fcd. CP874 uses the strict mapping, without Windows best-fit substitutions. Opaque profile layout, unmeasured error precedence and physical-console verification remain open in the library debt entry. The added mappings have the attributed firmware-module checks below; those checks do not validate string paths or every error contract.
tools/progress.pyreports 8 additional completed exports (CES: 261 to 269 of 287). The actual unsupported-export count is 26 on the tested main base and 18 on this branch. Main's ISO 646 and ISO-2022 functions are upstream work, separate from this PR's eight getters. Export coverage is not game compatibility.Integration with main: Based on
ba627802e2210187d417deb64c8f2fed8e33011f, this refresh resolves the debt-document conflict while retaining every main entry and the existing sparse-profile debt. All owned production/API/CMake/fixture additions and deletions are identical to prior head75585974a83a4a1957b23c176ac50d2917c774ad. Main's Cp1254/Cp1258 corrections (16 undefined bytes mapped toFFFF) andsceCesUtf32ToSbcsurrogate rejection are retained alongside the earlier ISO-2022, ISO 646/JIS X 0201 and wide/string conversions and fixtures. These upstream corrections are not contributions of this eight-getter PR.The enum, high-byte tables, low-byte remappings, seven-bit flags and unassigned-graphics flags remain aligned across all 48 entries, including CP858. All 40 main rows and eight added rows are retained. The complete table file changes with main's Cp1254/Cp1258 corrections; this PR's added table payload remains unchanged. Main's decoder error distinctions and undefined-marker decode guard remain; our reverse-lookup sentinel guard remains.
The sparse, Chinese and DBCS fixture changes retain scalar and string counts, optional lengths, zero capacity, prefix preservation, terminators, canaries and U+FFFF rejection. Main's null-input assertions and expanded wide fixture are retained. GB18030-2000 remains BMP-only; GB18030-2005 retains the plane-2 supplementary range, 24 PUA mappings and A8BC/8135F437 swap. The Chinese fixture retains supported-input coverage and UCS-2 supplementary rejection. Earlier measured decoder/string, strict JIS, EUC-KR/UHC, Big5, JIS2004, generic encoder, four-byte-buffer and UTF-16 adapter work is preserved. No assertion or production check was disabled.
The public-header review remains addressed: the eight canonical getter declarations return
const uint8_t*, and fixtures use the umbrella header without local export declarations.Landing order: No open prerequisites remain. Previously merged dependencies, including #10739, #10430 and #10428, are integrated main history.
Tested
Exact tested head
a6d4ce5a6411a3a55f8e2a4f19ef29a7d83e9966, parent/main baseba627802e2210187d417deb64c8f2fed8e33011f, tree86986cbde67b712a3935c3166fd96e44a63f6168. Recovery refbackup/pr-10056-before-cp1254-refresh-20261101-1750preserves prior remote75585974a83a4a1957b23c176ac50d2917c774ad. Both author and committer areatharvjairath <[email protected]>.-Werror.tools/pr_overlap.py --branch feat/ces-single-byte-profilesCLI returned 2, requiring manual comparison of base-conflicted peers; this is not an automated pass. All eight external report peers were independently verified OPEN/current, with full/shared patches and all merge bases retained: #9912, #10431, #10751, #11614, #12946, #13573, #14085 and #14212. Exact prior payloads or their changed shared-file deltas were manually compared. Other tables, MBCS setters/replacements, JIS helpers/conversions, GB range/UDA setters and debt corrections remain distinct from these eight getters. No open prerequisite or independent duplicate was found. No unmerged implementation was imported; broader non-shared peer fixtures/production and firmware/runtime claims were not independently validated. Future integration must preserve indexed rows, APIs, fixtures and debt and recount actual pending exports.JUnit, full logs, registrations, harnesses and artifact hashes are retained in
/private/tmp/anyps5-monitor-20261101-1002/ces. Focused builds use complete real libraries and libc with repository-pinned dependencies. Relevant upstream CES/shared libc/build changes were reviewed; other paths received path-level scope review only. This is not an all-libc or whole-project run. Native Windows desktop, title and PS5 console validation were not performed. Full product CI requires maintainer dispatch. The attributed firmware-module report below covers selected scalar paths and is not current-head approval.Both owned patches also merge cleanly with later observed main
500b0252ec8c8800d35f77219d45e8c21d32ada2, preserving all own changes. The later root CMake change adds a shader-scan tool test; progress-tool changes add shader reporting and leave library counting unchanged. Other later UserService/NKWebKit/workflow/docs/tool paths received scope-only review. These checks do not extend the pinned runtime coverage.Attributed firmware-module evidence: BunnyFl reports three identical runs of firmware 13.42
libSceCesCs.sprx(SHA-25600c01529bc13223be8afabbde566fcbdc027a0366c6d6224effc86ba6cba3173) loaded natively on an x86-64 PC. Their SBC-to-UTF32/UTF8 sweep over all 256 bytes and UTF32-to-SBC sweep over U+0000–U+10FFFF matched all eight tables. Undefined cells returned0x805C0020, had no reverse encoding, and U+FFFF was rejected. Reported hole counts were 7/45/3/36/8 for ISO-8859-3/6/7/8/11 and 3/9/31 for CP857/869/874. This is attributed firmware-module execution on a PC, not independently reproduced here or physical-console validation. It did not cover MBCS strings/lengths or general error precedence and is not an approval.Focused build reproduction
Save the following as
CMakeLists.txtin a separate harness directory. Initialize the checkout's3rdparty/ZArchiveand3rdparty/zstd, and place copies or symlinks to those directories under the harness's3rdparty/. They match the base pins965b66c8d67b6b7e30fd63b3b75aa91a99ff303bandf8745da6ff1ad1e7bab384bd1f9d742439278e99.On an x86-64 Linux host:
The reported ARM-host Linux run additionally sets
CMAKE_CROSSCOMPILING_EMULATORto QEMU 11.0.3's native ARMqemu-x86_64. The Windows build uses the same harness with WinLibscmake.exe,ninja.exe,gcc.exeandg++.exe; all twenty-two generated test programs are run through QEMU/Wine.WINELOADERNOEXEC=1preserves QEMU execution, andWINEPATHincludes the libc, CES, CES-module and compiler-runtime DLL directories. A host-side CTest manifest runs each executable with the same 30-second timeout.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-23T13:17:12Z.
Review: CHANGES_REQUESTED
Reviewed exact head
93050a9a0c1bea1dd2d1db32c8b7af717592ce9e29.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:17:23Z.
Review: CHANGES_REQUESTED
Correction and complete review on exact head
93050a9a0c1bea1dd2d1db32c7e3eda86a9be8: my immediately preceding review had a mistyped head hash and did not state the finding; this review replaces it. The sparse-profile implementation has broad coverage and the description reports exact-head Linux 16/16 and Windows 16/16 focused runs, plus baseline regression controls. Hosted eligibility, conventions, labels and report checks pass; product jobs are path-skipped. I have not independently run the CES test suite.A contribution-rule sequencing issue remains. Direct merge previews of this PR with #10183, #10185 and #10186 produce content conflicts in
core/libs/prx/libSceCesCs/Export.cpp; the #10056/#10184 preview is clean. These are real shared-helper conflicts, not duplicate implementations of the profile getters. Please coordinate with the affected author and declare the agreed landing order withDepends on, then ensure the rebased second change preserves both the sparse-profile semantics and the console-measured conversion behavior. #10185 already depends on #10183 and #10184, and #10186 depends on #10185, so please keep that stack coherent. This is a keep-both integration request; no PR should be closed because of queue size.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:54:28Z.
Review: APPROVED
Approved exact head
b4670f6e8a915b3f5715e0885102109e83ecc5d4. The author-to-author landing order is now explicit: #10183/#10184, then #10185, then #10186, then this PR; the checklist declaresDepends on: #10186, and this branch contains the exact current #10186 head. The sparse follow-up rejects undefined-byte sentinels in both decode and reverse lookup, keeps the shared measured conversion behavior, and adds broad profile/conversion/canary coverage. I independently compiled and ran the exact-headExport.cppplusGuestCesSparseProfiles.cppfixture with GCC C++20 and section garbage collection; it passed. Exact-head conventions andgit diff --checkpass, and current upstreammainis an ancestor of the reviewed head. The author separately reports 16/16 Linux and 16/16 Windows focused CES runs with negative controls; hosted eligibility/conventions/labels/report checks pass and product build jobs are skipped by path policy. The full project build and console validation were not run here; the debt entry accurately leaves sparse mappings unverified on console.