feat(icu): implement numbering system selection and enumeration #19635
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19635"
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 IvanFogel on 2026-11-13T17:09:34Z.
What
The numbering-system enumerator keeps an entry pending until the guest can receive it. A retry in either encoding returns that same entry, and reset discards the pending entry. Review
The locale-taking numbering-system export now reads the guest default when given a null locale. The separate by-name export keeps its existing null-name behavior. An explicit empty locale still selects the ICU root locale.
The break iterator now calls ICU for a locale name only after checking that the index is within the reported list. For a healthy list, negative indices and the index equal to the count still raise the guest argument error. Larger indices return null. If locale data cannot initialize, the wrapper returns null without a name lookup. ICU 78.1 already returns null for an index greater than the count in
uloc_getAvailable. The wrapper now handles that case itself. Review on the shared prerequisite.November 20 integration. This branch includes main at
fd7fe562ededand the converter-alias data and tests from #16971 atc1785962ce53. The numbering-system exports retain the refreshed #19628 date-pattern prerequisite. The two data-registration NIDs now use the shared ICU 78 implementation and check guest status storage. #19413 closed unmerged and #20395 merged. Earlier measurements are dated below.Implement the six existing
unumsys_*exports for locale-selected numbering systems, named systems, name/algorithmic queries and available-name enumeration. Locale keywords and available names come from pinned source-built ICU 78.1 and the real CLDR package, including non-Latin and algorithmic systems.A private native-header backend separates host ICU types/callback ABI from guest declarations. Returned enumeration objects work through the existing guest
uenum_count/next/unext/closeAPI and guest-ABI reset callback. Strong operation ownership and distinct retained token identities protect close/stale-handle behavior. Status and output-length accesses use checked guest copies; public enumeration dispatch checks status before entering callbacks. Callback-shaped system tokens safely refuse reverse cross-kind dispatch.Three formerly parameterless recovered placeholders receive the public ICU signatures; console ABI and ICU data-version equivalence remain unmeasured and documented. A null locale uses the guest default. A null numbering-system name on the separate by-name export still throws. Native objects release on close; token identities remain until process teardown. Returned strings retain native lifetime requirements.
Earlier integration notes (historical pins)
Draft / dependency: based on #19628 at
1567882c0716047c1e7f8dbcc9831000ff919e7f, transitively #16971 at657f3899c37455b41d553ae7ef59e48b23459cba. Original donor history/authorship is preserved. The numbering-only change is1567882c07..75a63ae7ab; the inherited Date/data work is not newly authored here. Canonical overlap fails closed for conflicting sibling PRs; all 21 reported unique heads were manually assessed with immutable prior full-peer audits and this feature's own delta. No duplicate six-export implementation or merge-order agreement is claimed. Draft status records the unmerged dependency and unresolved sibling composition obligations.Integration on 2026-11-15. Qualified submitted commit
5859090dcd50d99d1803358cac721d63e5106335is based on tested main4da77d3353c9c9f59f15436af86f44e4bb3ee074and retains the full original feature/donor history. The shared data prerequisite is #16971 atb35ad18125f8a8e28aded9bae403c2e6ed33afe7; #20395 at26e33a85262270bbeb619cc7f45edbb31ee84dc8supplies the independently tested Windows unsigned-parser saturation correction. Current dependencies: #19628, #20395 (transitively #16971). Draft status and the previously documented peer-composition/platform gates remain. No author agreement or native Windows execution is claimed.2026-11-17 integration: submitted head
23ef2287c8a9c4603caba4d9fdb0649255f65ad7merges main050cdf95addcb05b1c663587ab921216707623feand preserves the original prerequisite histories. The full ICU data package now replaces both the old stub data and main's subset provider, leaving exactly oneicudt78_datdefinition while retaining main's normalization, properties, default-locale and UTC-time behavior.Tested
Commit
eef184c7c5fe. The old implementation skipped a name on retry. The new cases cover repeated output refusal, a change of output encoding, an omitted length, and reset. All 119 Linux ICU tests, public headers and all 120 MinGW/Wine CTests passed. The standalone ICU header compilations and the guest sleep/wake control passed on both platforms.On November 25 I integrated main
9c0d60cbfb6eand the complete ICU data prerequisite #16971 ateddb65df5f42. This integration keeps the six implemented numbering-system exports and incorporates main’s error-first checks. The recovered-signature test now opens, counts and closes an actual enumeration on successful and warning inputs. Failed inputs return before accessing their arguments. The public header retains one declaration per export, and the debt entry describes the owned handles and current behavior.At
d757a4714297, all 119 registered guest ICU CTests passed on Linux x86-64 and all 119 passed with MinGW-w64 under Wine. Both builds passed the public-header audit and compiled all 57 ICU public headers independently. The compiled library exported each of 6 audited guest NIDs exactly once on each platform. This run used synthetic data and the bundled ICU dataset. Native Windows, console and title execution remain unmeasured.At
93c11cc3df32I restored the indentation of two existing ICU source entries to match main. The CMake source lists are unchanged. I verified this branch merges cleanly with the locale-table fallback in #26259 atb47b9b838db2. Regenerating the Linux and MinGW build files preserved the order of ICU objects and the compiler and archiver commands on both platforms. With the existing binaries, 9 focused Linux CTests and 9 MinGW CTests under Wine passed.On
11717b7033d0against main8ce96faee7d2, all 112 selected guest ICU tests passed on native Linux and all 112 passed with MinGW x64 binaries under Wine. Public-header tests and feature NID exports passed on both platforms. This revision retains main’s five collator mappings and normalizer implementation. The merged recovered-inventory file contains 8 parameterless placeholders. The three enumeration exports dispatch to the caller’s callbacks after validating the guest status pointer. Exact-head review requestTest evidence for submitted commit
2e0fc28f02049ad4da92b0f43d8b517315a65a83. On Linux x86-64 (GCC 16.2.1) and Win64 (MinGW GCC 16.2.0 under Wine 11.22), all 111 registered guest ICU tests passed on each build with zero failures and skips. This includes the seven numbering-system cases for cross-kind handles, enumeration, inaccessible status, memory, NID imports, selection and status. Both builds passed the public-header audit, compiled 54 ICU headers independently, and each exported the six numbering-system NIDs exactly once. GitHub's Build workflow is linked separately so its current outcome can be checked. Hosted CI for this commit · ReviewAfter the November 22 review, the file-access wrapper on
2e0fc28f0204passes a non-null local status to ICU and returns a changed backend status to a caller that supplied writable status storage. It preserves a pre-existing guest error and still applies the requested mode when the caller omits the status. The pinned setter only changes the mode. The recording-backend test covers all four access modes with a missing, successful, warning, or failed guest status and checks unchanged, success, warning, and error results from the backend. Read-only and inaccessible guest storage prevent dispatch. The earlier revision failed on Linux and Wine. The updated prerequisite #16971 atab382ee5829falso tests allocation after reconfiguring ICU. All 111 Linux and 111 MinGW/Wine guest ICU tests passed on main4c260ec7de72, along with the public-header and feature-export checks. Review · Pinned setterOn November 22, I integrated main
70cca973b49fand the break-iterator and ICU data prerequisite #16971 atf59b5fbe7fa2. The build instructions retain main’s minimum CMake versions for bundled dependencies and the native compiler requirements for ICU data tools. Both the new ICU keyword-list registration and the prerequisite’s right-to-left locale test remain registered. On the submitted revision588ba1916838, 111 Linux guest ICU tests and 111 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 6 feature NIDs exactly once. The tests include the converter-alias comparison and bundled-locale direction. These Windows binaries ran under Wine.On November 21, I updated
udata_setFileAccessin326c031b946fon main6f5c412af786. Host ICU now receives a valid local status variable. A guest may pass null and still set the requested access mode, as on main. A supplied guest status retains its original value. The regression test checks all four access modes, the status received by the backend, and guest status preservation. Pinned ICU 78.1 assigns the mode without reading the status argument. Review · Pinned ICU setterAll 106 Linux guest ICU tests and all 106 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 6 feature NIDs exactly once.
On November 21 I tested
06ec6143e340with main6f18d49a833eand the updated break-iterator prerequisite #16971 atbdbfcb2c98fd. All 105 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 105 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 6 feature NIDs exactly once.The locale-direction test now checks the expected direction for packaged ICU data and retains the missing-data checks for the reduced configuration. The earlier unconditional missing-data expectation failed on the packaged build.
I tested the concurrent-close finding by pausing a real numbering-system operation inside its backend after it acquired the handle. Closing the guest handle caused zero native close calls while the operation was paused and exactly one after it returned. The date-pattern registry gave the same result. Each active call retains shared ownership of the native object. Review
Guest default locale, November 20 at
d72f8b7f6c57. The regression changed the guest default from Arabic (Egypt) to English (US). A null locale selected the same numbering system as each explicit locale in the pinned ICU oracle. An explicit empty locale selected Latin digits in both cases. The selection test failed with the previous implementation. All 100 guest ICU CTests passed on Linux and all 100 passed in the MinGW-w64 build under Wine. Public-header checks passed in both builds. The Linux standalone ICU-header compilations also passed. Native Windows and console behavior remain unmeasured in this run.November 20 locale bounds at
500ae661c288, based on3a1b27b9d2e2. A counting stand-in exercised 21 combinations of populated, empty and unavailable locale data and indices from INT32_MIN to INT32_MAX. Before the change 13 out-of-range cases reached the stand-in. After the change none did, both valid indices still reached it, and all 21 responses matched. The checked-in public API test also exercises both signed extremes with real ICU data. All 100 guest ICU CTests passed on Linux and all 100 passed in a MinGW-w64 build under Wine. The public-header audit passed on both, and the Linux standalone ICU header compilations passed. This local run did not use native Windows or a console.November 20,
c81e5584248b. Native Linux passed 100/100 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 53 selected ICU headers. The MinGW-w64 build ran 100/100 guest ICU tests under Wine. Its CTest selection also passed the public-header audit. Both patched libraries export the data-registration NIDswHZwCpZVcGIandmCyTdtewGpkexactly once. The new guest registration case covers an inaccessible status pointer. The conventions and debt checks passed. I did not run this head on native Windows, on a console, or with a title.Refresh at
db8aff407dagainst main2bd7cdb8d1. This revision integrates #23844 and retains the typed display-name, plural and formatted-value exports alongside this branch’s implementations. The complete guest ICU suite passed on Linux (98/98) and on MinGW-w64 under Wine (98/98) with zero skips. #16971 is included at54768514e6. Earlier test runs below are pinned to their respective commits.Earlier refresh at
b7df11afd4against mainfa0b7e3ce4. Tested the merged ICU field-position, resource, locale and converter work alongside this feature. This head includes the full current #16971 prerequisite at54768514e6. Its implementation, build configuration and tests are byte-identical to tested commitce4704b6e2. The packaged converter-name test compares guest results with the pinned ICU alias data. The reduced-data and injected-fixture modes retain their separate coverage. The updated date-pattern prerequisite provides field-position classes from the full pinned i18n build. All 98 registered ICU CTests passed on Linux. All 98 passed in the MinGW-w64 build under Wine. This qualification used no native Windows machine or commercial title.Current public-header maintenance qualification, 2026-11-17: exact head
de0314a7dd7277245b75ba590be6dde2e7a9c8ce, integrating tested main47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09. The only manual conflict resolution keeps main's umbrella header intact and inserts each existing feature-only include once before ConverterHelpers; main's new UtfConversions declarations remain reachable. Refreshed date/numbering prerequisite history is retained downstream. No outside feature branch was imported.The latest scoped peer audit pins #22237 at
489c8fde3d860b4e837ee3b57638960518991c20. Its calendar change corrects a placeholder parameter type rather than implementing our real getter. Future composition must preserve real feature bodies, its recovered-type/header/callback/status changes, the full ICU backend source union and exactly one full-data provider. This peer composition and landing order are unqualified; no new formal prerequisite or outside-author agreement is asserted. Existing #18208/#19435 data/source/filter and recorded peer gates remain.Earlier pinned qualification and review dispositions (historical evidence)
2026-11-17 exact-head qualification:
23ef2287c8a9c4603caba4d9fdb0649255f65ad7, based on tested main050cdf95addcb05b1c663587ab921216707623fe.nfkc.nrm,nfkc_cf.nrm,uemoji.icuandulayout.icu; normalization/property/null-locale/UTC-time regressions pass.guest_multibyte_localefailure came from a change already reverted on main; this merged candidate passes that regression locally on Linux and Wine. Native Windows/macOS full CI and console execution were not run here.Exact pins, platform results and complete Linux/Wine CTest logs.
Review-feedback disposition: null
unumsys_openByNamenames still take the documented throwing path; error 1 was not invented from the review assertion. The pinned native entrypoint has no explicit null-name/error-1 branch. This remains an explicit console-contract gap, not a silently fixed request.Keep Draft for #19628 and transitively #16971, plus the recorded peer/data/platform gates; #20395 has merged. Textual mergeability does not establish joint qualification with every current peer; previous external/composition receipts below keep their original pins.
Historical exact-head qualification
2026-11-16 maintenance — exact submitted/tested head
71054ee700c9170a1cdac095317641e18e685797, maine236a801f88183df3d215af0d450fb20baf9edc3. Merge main while preserving the original feature and prerequisite histories. Resolve the build-documentation conflict by retaining the two real ICU host-compiler options without reviving the removed FFmpeg prebuilt option. Consolidate the overlapping callable-inventory debt operations, retaining current main's complete locale/property exclusions plus the data/topic exclusions.Linux x86-64 / GCC 16.2.1 Release full runtime: 80/80 CTests pass. MinGW 16 / private headless Wine 11.21: 80/80 pass. No selected skips; every test finishes below 30 s. All registered ICU cases, patched-NID fixtures and relevant math/wide-string/Dinkumware parser callers run; Linux runs the public-header audit, Wine runs the FreeBSD clock control. 47 ICU header units compile independently on each toolchain. ELF/PE inspection confirms no new native ICU backend exports or system-ICU imports.
Fresh main control: Linux 58/58 pass; Wine 56/58 pass with the two reproduced parser failures. Independent integration review found no material source defect. Draft and existing peer/prerequisite integration gates remain; original dependency implementations and maintenance merge histories are retained, without claiming ancestry of the final parent debt-only tail tips. Native Windows, macOS, console/title and performance were not measured.
Current conventions and committed whitespace checks pass. The scoped ICU debt fold passes. The global fold repeats main's unrelated stale NKWebKit fragment error (
5933 of the 8703); that inherited failure was not changed or reported as green.A later mechanical merge check against main
4c976e99394db1546555ca53fd575912d4b819a8is clean. Those later changes were not rerun as a combined runtime build.Full exact-head results, matched baseline failures, validation logs, public-header/symbol audits and integration review. Historical results below retain their own pins and were not rerun as native-platform reports.
Historical qualification at its original exact commits
2026-11-15 refresh — exact submitted commit
5859090dcd50d99d1803358cac721d63e5106335. Linux GCC 16.2.1, Release/full source-built dependencies: 72/72 CTests pass, no skips. MinGW GCC 16/private headless Wine 11.21 Staging: 72/72 CTests pass, no skips, on the same standalone branch commit, including its declared prerequisites. All registered ICU cases and the expanded math/wide-string/Dinkumware parser callers run; Linux also runs the full public-header audit and Wine runs the FreeBSD clock regression. 45 ICU header units compile independently on each toolchain. Native Windows was not run.The matching main control at
4da77d3353c9c9f59f15436af86f44e4bb3ee074passes 47/47 Linux cases; Wine passes 46/47 with the reproducedguest_icu_cstringnegative-overflow failure. The failing baseline is preserved. #20395 corrects that behavior, and the candidate passes all four affected public caller suites. ELF audits show no native ICU78 backend exports; PE retains the eight preexisting RTTI/name exports from main and imports no system ICU DLL.The ICU implementation, tests, data filters and build inputs are byte-identical to the reviewed pre-donor candidates. The updated prerequisite is composed without duplicate common test registrations; debt fragments preserve main's consolidated files, exact throwing inventories and each topic's original data scope. Current conventions, whitespace and debt-fold checks pass. Independent whole-change and integration-tail reviews found no required source changes.
A later mechanical merge check against main
f61793afa6d22732addd93e3b27553fc5deeab2fis clean. That main adds independent CodePointTrie source/test/umbrella registrations; those later-main additions were not rerun as a combined runtime build here. They are separate from the exact tested commits above. Existing Draft integration gates remain.Full verbose logs, exact commits, header/symbol audits, source/debt checks and independent reviews. Across all six refreshed branches: 436 Linux and 435 MinGW/Wine passing CTests. No console, macOS, title-unblock or performance claim. Historical hosted Windows/AMD reports and composed runs below retain their old commit pins and were not rerun on this commit.
Historical qualification and reports (original exact commits)
2026-11-13 RTL conflict refresh — exact submitted head
9203b36ba0ebb670ccdfb17748e2e6d65b9778fc. Merge main1edac2f2eaa54c45dd96d632d989162c2b319647and retain the existing feature history, backend and tests alongside the newly landed right-to-left implementation/test registrations. Independent review verified the additive CMake union and unchanged feature code. Draft dependencies and previously documented peer-composition gates remain.Linux GCC16.2.1 Release/source-built dependencies: 66/66 CTests pass without skips, comprising all 65 ICU cases (including
guest_icu_right_to_left) and the full SDK public export audit. All 43 ICU public-header units compile independently; no native ICU78 backend symbols leak from ELF.MinGW16.2.0-2.1/private headless Wine11.21 Staging: 24/24 selected CTests pass without skips, on composition
94cd937468288b27d8810e41d64fc6af60ccc8a6. It adds build-only #19519/d43d250189579f1c475481416841cdbe099cf099 and now-merged #19625/4f4fa0b13e629d1de1dc3de5f8c5801e154e9b40. Complete ICU source/test/header/data and host-tool build paths are byte-identical to this submitted head. PE inspection adds no native ICU function exports or system ICU DLL imports; eight inherited normalizer RTTI/name exports match the recorded historical main baseline. This is composed Wine evidence; native Windows and standalone full-Windows qualification were not rerun.The candidate also merges cleanly with later fetched main
752c0f776bfa689bac02aca3c30afac4b0b8378d; its relevant ICU and contributor-rule paths are unchanged from the tested main pin. Current conventions have zero errors (one existing inherited long-debt warning); whitespace checks pass. Full verbose logs, exact pins, source equivalence and independent review. Earlier qualification and hosted Windows reports below retain their original commit pins and do not represent reruns on this new head.Earlier qualification (historical exact commits):
Linux x86-64, GCC 16.2.1, Release/full source-built dependencies, standalone
75a63ae7abd15c969c8a321fbbd4aa5febb3018b: 64/64 ICU CTests pass, without skips, including actual patched NIDs, fixed latn/arab/hanidec/roman selections, native locale/keyword differential behavior, every available name reopening successfully, full mixed UTF-8/UTF-16 enumeration/reset/EOF behavior, guarded memory, warnings/prefailed status, stale and cross-kind tokens. All 41 public ICU header units compile independently; audit reports 413 libraries / 34519 exports with unique declarations and umbrella coverage. No native ICU 78 exports on Linux. Conventions: zero errors, with the existing inherited data-paragraph length warning; diff check passes.Test-first evidence: all four initial behavior groups failed at real throwing stubs before implementation. Independent review then found two public-dispatch gaps that the initial suite missed. Separate new tests reproduced both as SIGSEGV in isolated processes with core dumps disabled; checked status dispatch and callback-shaped system tokens fix both, and the complete 64-test suite passes afterward. No second review was used to substitute for RED/GREEN verification. The outdated enumeration-producer debt was corrected as part of the changed API contract.
MinGW GCC 16.2.0-2.1 source build and private headless Wine 11.21 Staging execution: 23/23 selected CTests pass, including all seven numbering/NID cases and inherited Date/native-data/break/allocator/recovered cases. Exact composed head
649489a8af3bd63642e490556af4b0d133b6ff65additionally includes #19625 (3213fc94d016b7d3f51561a47fbb7eec5ae74a62) and #19519 (f875fa2fd7cb1296256d50b8f456eefe99bbbb13) for cross-toolchain and focused canonical runtime builds. The entire ICU tree and ICU source/data/host-tool CMake paths are byte-identical to the standalone numbering head. The harness supplies explicit WINEPATH for DLL lookup. This is composed MinGW/Wine evidence, not native Windows OS or standalone full-Windows qualification.An actual targeted MinGW build of fresh
main(667dbde5131d30a7db7a22bf1147889cc1ee4ec7) confirms the candidate retains the same eight native normalizer RTTI/name metadata exports and adds no native ICU exports on Windows. Fresh main merges cleanly and has no ICU source/data-path changes since the tested base snapshotb0a657ba1c2e6fffa1cbbce94720e384dcc6e665.Console, native Windows OS, macOS, commercial-title behavior and performance remain unverified. No title-unblock or FPS claim. Callers must preserve returned-pointer lifetimes and avoid ICU cleanup/reconfiguration with outstanding objects; arbitrary mutation of enumeration callback fields is unsupported.
Exact logs, review, reproduced failures, composition proof and overlap audit: https://gist.github.com/IvanFogel/b24f1d5813b91ee591817176e4112ec3
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-11-20T07:05:32Z.
Review: COMMENTED
Reviewed — comments
The prepared description reports successful Linux and MinGW/Wine qualification at the exact head, but I did not independently run those checks or complete a file-by-file source review.
What I ran
Read the prepared description, commits, manifest, changed-file listing, and the opening portion of the diff for head
c81e5584248bed88c62bcdc92d9763d52ea9b314. No build or tests were run.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
Most changed source and test files were not read, and no checks were run. The change adds ICU data generation, break iterator and data registration behavior, and numbering/date pattern implementations; their correctness is not verified. The prepared description reports Linux and MinGW/Wine test results, but those results were not independently confirmed. The diff and changed-file listing were read; the changed files themselves were not reviewed file by file.
To get this to a good state
Complete a file-by-file review of the changed implementation and tests, then independently run the relevant build and checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:05:48Z.
Review: CHANGES_REQUESTED
Reviewed — comments
Changes are required before merge: resolve the close-versus-use race in the new numbering system and date pattern handles.
What I ran
Reviewed head
d72f8b7f6c57cb60df3f0da4710247b21d9ebb8dfrom the prepared diff and pinned reader. No build or tests were run.Results
Findings
Blocking
Findreturn ashared_ptr<Entry>, butRemoveerases the registry entry without taking that entry’s mutex. A concurrent close can therefore destroy the native ICU object while a method is using it underowner->mutex; the lock only serializes callers that also acquire it. The date-pattern wrapper has the same pattern. Serialize close with operations by locking the entry mutex before removing/destroying its native object, while avoiding a lock-order cycle with the registry mutex.core/libs/prx/libSceIcu/NumberingSystem.cpp:62andcore/libs/prx/libSceIcu/DateTimePatternGenerator.cpp:142.Non-blocking
None.
Not verified
The prepared diff and targeted source were read, but the full text of all changed files was not read. Files listed as included in the manifest were not all reviewed. No build, test, native Windows, console, or title execution was performed. The description reports Linux and MinGW/Wine test results; these were not run as part of this review.
To get this to a good state
Fix the close/use race in both handle registries, then rerun the relevant concurrency and lifetime tests on the new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:00:21Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make
udata_setFileAccess_nid_postfixreject a null status pointer before calling ICU, consistently with the adjacent registration wrapper.What I ran
Reviewed head
06ec6143e3401ad968735a698c0c36b5424d284cusing the prepared review documents and pinned repository reader. No build or tests were run.Results
Findings
Blocking
core/libs/prx/libSceIcu/Data.cpp:14permits a null status pointer, then callsudata_setFileAccesswith a null ICU status argument. The same file’sudata_setCommonData_nid_postfixrejects null status at line 8, and the test invokes the file-access wrapper with null atcore/libs/prx/libSceIcu/tests/Data.cpp:124. ICU APIs that take a status pointer require a valid status location; this call risks invalid behavior or a crash. Reject null before calling ICU, as the common-data wrapper does.Non-blocking
None.
Not verified
No build, CTest, native Windows, or console execution was performed. The author reports Linux and MinGW/Wine test results in the PR description; these were not independently verified. The prepared manifest lists all changed files as included, but this review read only the prepared description, commits, manifest and diff, plus targeted source ranges in
BreakIterator.cpp,Data.cpp,Configuration.cpp,NumberingSystem.cpp,DateTimePatternGenerator.cpp,IcuData.cmake, andtests/Data.cpp; the remaining changed files were not read. No separatefiles.jsonwas available through the reader.To get this to a good state
Reject a null status pointer in
udata_setFileAccess_nid_postfixbefore calling ICU, and add or adjust a regression assertion for the null case. Then rerun the relevant data-registration test on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:17:10Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the reviewed code and supplied exact-head results support merging, with console and macOS behavior still unverified.
What I ran
326c031b946f0e1089d9e12dc91ec49a0b6fcb45; no commands or tests were run in this session.description.md,commits.md,README.md,diff.patch, the changed-file listing, and focused source for the file-access wrapper/tests, numbering system and break iterator. No repository files were excluded by the prepared review listing; the full 3,380-line diff and every changed line in every changed file were not read.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full diff and all changed files were not read, so this is not a complete audit of all changed behavior. In particular, the date-pattern implementation, most ICU build/test additions, and documentation/debt changes were not inspected beyond their diff context. Native Windows, macOS, and console behavior were not run or confirmed.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:24:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed prepared diff and repository context at head
2e0fc28f02049ad4da92b0f43d8b517315a65a83usingrepo_read.pyreader tools. No build or tests were run in this review.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
Not verified
The source review was targeted rather than exhaustive. I read the description, commits, manifest, diff, and changed code for ICU data/build setup, break iterators, numbering systems, allocator/data registration, and date-time pattern generators. The manifest lists 49 changed files and marks all as included; I did not read every included file or every changed hunk. No repository files were excluded by the manifest. Build/test results, native Windows/macOS behavior, and console ABI/data equivalence were not verified in this review.
To get this to a good state
Nothing is required. Optional: attach test results for this exact head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T20:40:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the code inspected; the author-reported test results are not checks I ran.
What I ran
No build or tests were run. Reviewed head
11717b7033d0a50a6142a292c964fb45e02d360dusing the prepared diff and repository reader,repo_read.py.Results
Findings
Blocking
None found in the code inspected.
Non-blocking
None.
Not verified
The manifest lists 3137 changed-file entries, all marked included; I did not read every changed file, so this is not a complete file-by-file review. I read the description, commits, manifest, relevant diff hunks,
NumberingSystem.cpp,Enumeration.cpp, andEnumeration.hpp. I did not inspect the full diff or excluded-file listing, nor run tests, a build, native Windows checks, or console behavior. The six numbering-system wrappers usestd::bad_allochandling, but other allocation exceptions from string and registry operations were not tested.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:04:33Z.
Review: COMMENTED
Reviewed — no blocking findings
The submitted change has no blocking defect in the implementation paths inspected, but this review is incomplete and does not justify approval.
What I ran
Inspected the prepared review description, commits, manifest, diff, changed file inventory, and selected source files through
repo_read.pyat headd757a47142977ff60ebe57c538e33d4b7455f0c6. No build or tests were run.Results
Findings
Blocking
None in the inspected code.
Non-blocking
None.
Not verified
The manifest lists many changed files; this review read only selected files and did not audit every changed hunk or file. Build and test claims in the description remain author-reported. Native Windows, console and title behavior were not verified. The changed code paths outside the inspected numbering-system, break-iterator and ICU data build files are not verified. Excluded files are not enumerated in the available review inventory.
To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the submitted revision's checks before relying on the reported results.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T18:04:24Z.
Review: COMMENTED
Nextadvances the native ICU enumerator before publishinglengthanderror. If a guest output write fails, the call throws after consuming the entry. A retry with valid outputs then skips that name. The fixture checks that a read-only length output throws and does not check the cursor afterward. Can the wrapper preserve the pending entry until its outputs have been published?Source review at
d757a47142. Integration into the local Linux baseline also stopped on a merge conflict inRightToLeft.cpp.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:49:58Z.
Review: COMMENTED
Reviewed — no blocking findings in inspected files
Nothing blocks this; the points below are optional.
What I ran
Reviewed the prepared diff and selected source files at head
eef184c7c5fe8631d0653aaffae1ac79f2eeff2a. I did not build or run tests.Results
Negative control
Not run; no tests were executed or source changed.
Findings
Blocking
None identified in the files inspected.
Non-blocking
None identified in the files inspected.
Sources
The inspected sources are pinned to head
eef184c7c5fe8631d0653aaffae1ac79f2eeff2a, including NumberingSystem.cpp, BreakIterator.cpp, and DateTimePatternGenerator.cpp.Not verified
This is incomplete, so the review does not support a formal merge decision. The prepared
files.jsonlists 55 reviewed files and no preparation-rule exclusions. I consulted these 19 files, with some reads limited to relevant sections:cmake/icu-host/CMakeLists.txt,cmake/IcuDataFilter.json,core/libs/prx/libSceIcu/NumberingSystem.cpp,core/libs/prx/libSceIcu/NumberingSystemBackend.cpp,core/libs/prx/libSceIcu/Enumeration.cpp,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/BreakIterator.hpp,core/libs/prx/libSceIcu/tests/NumberingSystemBehavior.cpp,core/libs/prx/libSceIcu/tests/NumberingSystem.cpp,core/libs/prx/libSceIcu/Configuration.cpp,core/libs/prx/libSceIcu/Data.cpp,cmake/IcuData.cmake,core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp,core/libs/prx/libSceIcu/DateTimePatternGeneratorBackend.cpp,core/libs/prx/libSceIcu/tests/BreakIterator.cpp,core/libs/prx/libSceIcu/CMakeLists.txt,cmake/Icu.cmake,core/libs/prx/libSceIcu/Export.cpp, andcore/libs/prx/libSceIcu/include/InventoryExports.hpp.Unread changed files:
.gitignore,CONTRIBUTING.md,core/libs/prx/libSceIcu/Availability.cpp,core/libs/prx/libSceIcu/Data.hpp,core/libs/prx/libSceIcu/DateTimePatternGeneratorBackend.hpp,core/libs/prx/libSceIcu/NumberingSystemBackend.hpp,core/libs/prx/libSceIcu/include/Availability.hpp,core/libs/prx/libSceIcu/libSceIcu.hpp,core/libs/prx/libSceIcu/tests/Data.cpp,core/libs/prx/libSceIcu/tests/DateTimePatternBehavior.cpp,core/libs/prx/libSceIcu/tests/DateTimePatternData.py,core/libs/prx/libSceIcu/tests/DateTimePatternNative.cpp,core/libs/prx/libSceIcu/tests/DateTimePatternNid.cpp,core/libs/prx/libSceIcu/tests/DateTimePatternOracle.cpp,core/libs/prx/libSceIcu/tests/DateTimePatternOracle.hpp,core/libs/prx/libSceIcu/tests/FileAccess.cpp,core/libs/prx/libSceIcu/tests/LocaleTableFallback.cpp,core/libs/prx/libSceIcu/tests/NumberingSystemNid.cpp,core/libs/prx/libSceIcu/tests/NumberingSystemOracle.cpp,core/libs/prx/libSceIcu/tests/NumberingSystemOracle.hpp,core/libs/prx/libSceIcu/tests/OpenStandardNames.cpp,core/libs/prx/libSceIcu/tests/RightToLeft.cpp,core/libs/prx/libSceIcu/tests/SupplementalRegion.cpp,core/libs/tests/GuestIcuConverterAliases.cpp,docs/dev/BUILD.md,docs/dev/debt/changes/feat-icu-open-available-by-type.md,docs/dev/debt/changes/feat-icu-ucnv-get-canonical-name.md,docs/dev/debt/changes/feat-icu-ucnv-open-all-names.md,docs/dev/debt/changes/feat-libsceicu-availability-exports.md,docs/dev/debt/changes/feat-libsceicu-data-break-iterator.md,docs/dev/debt/changes/feat-libsceicu-ucol-available.md,docs/dev/debt/changes/feat-libsceicu-unumsys-early-returns.md,docs/dev/debt/changes/ivan-20261115-icu-data-stack.md,docs/dev/debt/changes/ivan-20261115-icu-date-pattern.md,docs/dev/debt/changes/ivan-20261115-icu-numbering.md, anddocs/dev/debt/changes/libSceIcu-locale-syntax.md.To get this to a good state
Nothing is required. Optional: review the unread files before making a formal merge decision.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.