feat(icu): implement localized date-time pattern generation #19628
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19628"
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-13T16:45:34Z.
What
A missing date-pattern locale now selects the guest’s configured default. Review
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 date-pattern generator retains its owned handles, checked strings and NID imports. 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 typed C date-pattern exports over pinned, source-built ICU 78.1: open/close, best pattern with or without options, skeleton extraction and localized field names. This replaces the valid-call throwing paths, preserves early status returns and native buffer/termination behavior, and uses checked guest copies with serialized strong ownership of generator handles.
Build the complete official i18n source inventory and complete locale/currency/time-zone resources needed by date/calendar/number dependencies. Separate native ICU declarations from guest ABI types in a private backend. Tests include non-English patterns, calendar/hour options, UTF-16 edge cases, native differential results, guarded memory, stale handles and calls through the actual six patched NIDs.
Earlier integration notes (historical pins)
Draft / integration: depends on #16971 at
657f3899c3. Its original data/common/break commits and authorship are preserved; those inherited changes are not newly authored here. #18208/#18210/#19562 carry that same prerequisite lineage, not duplicate date-pattern work. Canonical overlap fails closed for conflicting peers; the attached manual audit reviews all 21 reported unique heads and records CMake/data/debt integration obligations. No merge-order agreement or joint runtime qualification with other authors is claimed. #19435 and the broad ICU 68 C++ branches have independent additive backend/test registration conflicts to resolve when composed. This branch does not require IDNA or implement its functions.Integration on 2026-11-15. Qualified submitted commit
ab2c02427abd4fc0f63af6a5e711e55999de26ecis 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: #16971, #20395. 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
87233eb04c27fdf2b254dd067c380018b397162emerges 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
45adbfdf1ec0. The new yMd case failed with the original implementation. Changing the guest locale to German produces d.M.y, and changing it to US English produces M/d/y. All 113 selected checks passed on Linux and all 113 passed under MinGW/Wine. Both compilers also accepted the 57 standalone ICU headers.On November 25 I integrated main
9c0d60cbfb6eand the complete ICU data prerequisite #16971 ateddb65df5f42. The date-pattern generator now composes with current main and the complete upstream ICU data prerequisite. The supplemental-region regression checks inference from packaged likely-subtag data. The locale-table fixture uses a missing German regional bundle to exercise fallback with the same expected warning and translation.At
72a428cfa5f0, all 112 registered guest ICU CTests passed on Linux x86-64 and all 112 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
f00664852c0dI 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, 10 focused Linux CTests and 10 MinGW CTests under Wine passed.On Linux at
71f09661dfc4, I ran the file-access recording test and traced the status passed to ICU and the value returned to the guest. In all four access modes, incomingU_USING_FALLBACK_WARNING(−128) and a backendU_INTERNAL_PROGRAM_ERROR(5) produced guest status 5 with exactly one copy back. With incomingU_BUFFER_OVERFLOW_ERROR(15) and the same backend result, the guest retained 15 with no copy back. Theincoming <= 0condition includes negative ICU warnings. ReviewAfter the November 22 review, the file-access wrapper on
71f09661dfc4passes 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. On the reviewed wrapper, a guest status of 0 remained 0 when the recording backend returned error 5, on both Linux and Wine. On the corrected Linux run, the wrapper wrote the guest status exactly once in each of the 20 calls that needed an update, and zero times in the other 78. The real Linux and Win64 builds also preserved all 12 file-access mode transitions tested on each platform. The updated prerequisite #16971 atab382ee5829falso tests allocation after reconfiguring ICU. All 104 Linux and 104 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 revision6931854ec357, 104 Linux guest ICU tests and 104 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.When cross-compiling, select native compilers for the ICU data tools with
ANYPS5_ICU_HOST_C_COMPILERandANYPS5_ICU_HOST_CXX_COMPILER. CMake forwardsCMAKE_C_COMPILER_LAUNCHERandCMAKE_CXX_COMPILER_LAUNCHERto those native builds too. Use launchers that accept both the target and native compilers, or leave the launcher settings empty. The tested MinGW build used the same ccache launcher for the cross-compiler and native GCC. Host tool configuration · ReviewOn November 21, I updated
udata_setFileAccessina7366d156500on 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 99 Linux guest ICU tests and all 99 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
937b67ac56abwith main6f18d49a833eand the updated break-iterator prerequisite #16971 atbdbfcb2c98fd. All 98 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 98 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.
The locale-index guard remains in place. A name lookup reaches ICU only for an index within the reported count. The suite also exercises word and sentence breaking with configured guest defaults.
November 20 locale bounds at
fdabcdcb0554, 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 93 guest ICU CTests passed on Linux and all 93 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,
cbf000c559ae. Native Linux passed 93/93 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 53 selected ICU headers. The MinGW-w64 build ran 93/93 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
5277ddcdf3against 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 tracked source is byte-identical to tested commit6ea2c27235. 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 full i18n target now takes the field-position classes from the pinned ICU source list, avoiding duplicate definitions at link time. All 91 registered ICU CTests passed on Linux. All 91 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
c6ea7bda051bc75daf9e5566a820b8f296e7a11c, 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:
87233eb04c27fdf2b254dd067c380018b397162e, 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.
The historical null-output/capacity-zero request is covered by
Extractand the options differential buffer tests: native count/status are returned before output copying.Keep Draft for #16971 and the recorded ICU peer/data/platform composition 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
0156c7bb4baa9c160f293ad1457ce48ddf9a6da3, 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: 73/73 CTests pass. MinGW 16 / private headless Wine 11.21: 73/73 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
ab2c02427abd4fc0f63af6a5e711e55999de26ec. Linux GCC 16.2.1, Release/full source-built dependencies: 65/65 CTests pass, no skips. MinGW GCC 16/private headless Wine 11.21 Staging: 65/65 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
efdf596ae00631701b3b44eb9afbf7c7bbef00e4. 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: 59/59 CTests pass without skips, comprising all 58 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: 17/17 selected CTests pass without skips, on composition
59573b7f55d6d1943ff91f811db52a971603d453. 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 1567882c0716047c1e7f8dbcc9831000ff919e7f:57/57 guest_icu CTests passed without skips, including actual patched-NID behavior, unchanged recovered signatures, full break/data/normalization/locale/charset coverage. Native control validates fixed en/de/ja/fr/calendar patterns and data keys; manifest validates all 962 locale, 616 currency, 543 zone and 18 misc source resources in the 2185-entry package. All 41 ICU public headers compiled independently; public export audit and conventions/diff checks passed. No native ICU 78 helper symbols leaked on Linux. Test-first valid-call and all 5 behavior-group failures were observed before production implementation.
MinGW GCC 16.2.0-2.1 source build plus execution under private headless Wine 11.21 Staging:16/16 selected CTests passed, including 5 guest behavior groups, native control, manifest, actual six patched NIDs and existing break/data/allocator/recovered cases. This is composed Windows evidence, head 2dbc02a60838e2f679831b6c6b5d13d09a89d82b, which also includes #19625 at 3213fc94d016b7d3f51561a47fbb7eec5ae74a62 and #19519 at f875fa2fd7cb1296256d50b8f456eefe99bbbb13. The entire ICU source tree and ICU source/data/host-tool CMake paths are byte-identical to the standalone Date head. The harness supplies WINEPATH because Linux CTest PATH modifications do not set Wine DLL search paths. Native Windows OS execution and standalone full Windows build remain unverified.
A fresh independent review found a native-test host-unwind configuration issue; actual MinGW link failure was reproduced, corrected with configure_host_test_executable, and the native control rebuilt and executed successfully. Remaining minor test limits: close-race is concurrent stress, not deterministic proof of an in-flight close; memory tests check canaries/extents, not explicit write-watch dirty-bit collection. Console ICU 68/data equivalence, default guest locale, macOS, commercial titles and performance are unverified; no title-unblock or speed claim. Distinct opaque token identities remain allocated until process teardown to prevent stale-handle reuse.
Built/tested base
b0a657ba1c; later freshly fetched main79e407ded7merges cleanly and changes none of the ICU source/data paths. Logs, exact heads, review and overlap audit: https://gist.github.com/IvanFogel/604335725230cbfb70603beb919fd071Checklist
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:06:54Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make
ubrk_getAvailablereject every index outside[0, count)before calling ICU.What I ran
Reviewed head
cbf000c559ae9678839ddfb3e9b9f3daa40baba3, using the prepared diff and the pinned repository reader. No tests or build checks were run here.Results
Findings
Blocking
core/libs/prx/libSceIcu/BreakIterator.cpp:351rejects only negative indices andindex == count. Forindex > count, it callsubrk_getAvailable_78(index)at line 358, which indexes the locale array out of bounds. Rejectindex >= countbefore calling ICU. The new test explicitly expectscount + 1to return null, but that assertion cannot make the wrapper access safe.Non-blocking
None.
Not verified
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,review/README.md; targeted changed source:BreakIterator.cpp,DateTimePatternGenerator.cpp,Configuration.cpp,Data.cpp, andcmake/IcuData.cmake.To get this to a good state
Reject every index greater than or equal to the locale count before calling ICU, then rerun the break-iterator tests on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:39:30Z.
Review: COMMENTED
Reviewed — comments
The exact head
fdabcdcb055400c92d3d58d5cef9da6397d269e3has no verified blocking defect, but this review did not read every changed line or run the checks needed to justify approval.What I ran
Read the prepared diff, description, commit list, manifest and targeted changed code at the pinned head. No build or tests were run.
Results
Findings
Blocking
None verified.
Non-blocking
Not verified
.gitignore,CONTRIBUTING.md,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.hpp, portions ofcore/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/DateTimePatternGeneratorBackend.hpp,core/libs/prx/libSceIcu/include/InventoryExports.hpp, and multiple test and documentation files. The manifest lists all changed paths;review/README.mdlists them and their added-line counts.files.jsonwas not available in the review folder, so any exclusions recorded there were not verified.To get this to a good state
Nothing is required for the verified code. Complete review of the unread changed lines and run the relevant checks before treating this as an approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:07:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
937b67ac56ab16cfa0313f67ac1c7993b6c41e40. I read the prepared description, commit list, diff, and relevant source ranges throughrepo_read.py. I did not run commands or tests. The description reports Linux and MinGW-under-Wine checks; these are author-reported, not runs performed here.Results
Findings
Blocking
None.
Non-blocking
cmake/IcuData.cmake:34andcmake/IcuData.cmake:35pass the target build’s compiler launchers to the native ICU host-tools build. In cross builds, a launcher configured for the target toolchain may not work with the explicitly selected native compilers. Consider documenting that these launchers must be host-compatible or omitting them from the host build.Not verified
I did not inspect every changed file or run the reported checks. In particular, the full texts of the remaining changed tests, integration/debt documentation, and other manifest-listed files were not read. The full change is not approved on this targeted inspection. The prepared artifacts supplied no
files.json; excluded-file details were therefore not verified. The reported Windows evidence uses Wine, not native Windows; console behavior was not verified.To get this to a good state
Nothing is required. Optional: clarify the compiler-launcher behavior for cross builds.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:18:15Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code has no verified blocking defect; this review is incomplete because several changed files were not read.
What I ran
Reviewed prepared PR materials for head
a7366d1565005cbcac6da4788a3910a4ab9ef4ccusingrepo_read.py. No build or tests were run; test results in the description are author-reported.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Sources
Read
review/description.md,review/commits.md,review/manifest.json, and relevant portions ofreview/diff.patch; also readDateTimePatternGenerator.cpp,DateTimePatternGeneratorBackend.cpp,DateTimePatternGeneratorBackend.hpp,Data.cpp,tests/Data.cpp,tests/FileAccess.cpp,tests/DateTimePatternBehavior.cpp, andtests/DateTimePatternNative.cpp.Not verified
The remaining changed files listed in the manifest were not read, so their changes and any related behavior are not verified. No checks were run locally; platform and console behavior are not verified.
To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before relying on this as a full PR review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:13:16Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: write the ICU result status back to guest storage in
udata_setFileAccess_nid_postfix.What I ran
Reviewed head
6931854ec357cbf54d83f01bdfe438271aeea5acagainst the supplied diff; no commands or tests were run. I read the change description, commit list, diff, manifest, and the relevant wrapper and test files throughrepo_read.py.Results
Findings
Blocking
core/libs/prx/libSceIcu/Data.cpp:17calls ICU with a localnativeStatusbut never copies the result back to*status. If ICU reports an error, the guest observes its original status instead. The newFileAccess.cpptest explicitly expects the backend's status not to escape (core/libs/prx/libSceIcu/tests/FileAccess.cpp:45), thereby encoding this lost-status behavior. Preserve the caller's prefailed status semantics, but write a changed native status back for a supplied, writable guest status pointer.Non-blocking
None.
Not verified
Builds, tests, native Windows execution, console behavior, and changed files excluded from the supplied full-text set were not verified. The manifest marks the reviewed source files as included; I inspected the changed wrapper, integration, and test hunks needed for this finding, but did not read every included changed file.
files.jsonwas not available through the reader.To get this to a good state
Write the native ICU status back to the guest status pointer when ICU changes it, and update the test to assert status forwarding; then rerun the file-access test and relevant ICU suite.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:42:46Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: propagate a changed ICU file-access status when the caller’s incoming status is a warning.
What I ran
Reviewed head
71f09661dfc4f7c3ea0095f298de1d72ad0d5a68against the prepared diff and pinned repository reader. No commands or tests were run; the description reports prior test results on other revisions.Results
Findings
Blocking
core/libs/prx/libSceIcu/Data.cpp:623: the wrapper copies ICU’s changed status back only whenincoming <= 0. ICU warnings are negative, so if the caller supplies a warning and the backend changes it to an error, the guest retains the warning instead of receiving the error. Copy back whenever the incoming status is not already a failure (or otherwise match ICU’s status propagation rule); retain the existing behavior that preserves a pre-existing failure.Non-blocking
None.
Not verified
Builds, tests, native Windows, console behavior, and the full changed-file inventory were not verified. I read the prepared description, commit list, diff, and manifest; targeted repository files included the date-pattern wrappers and tests, break-iterator wrapper and tests, ICU data build files, allocator configuration, data registration, and file-access tests. The preparation lists 40 changed files, all marked included; I did not read every changed line in the full inventory.
files.jsonwas not available through the reader, so exclusions by rule were not verified. The description’s reported test runs are author-reported and do not establish results on this head.To get this to a good state
Update status propagation in
Data.cppso a backend error replaces an incoming warning, while a pre-existing failure remains unchanged, then rerun the file-access regression test.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:17:12Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed prepared diff at head
72a428cfa5f0c4f704302b09a25da78e141c94b0. No commands or tests were run. Read the change description, commit summary, diff, manifest, date-pattern wrapper and tests, break-iterator wrapper, data-registration and allocator wrappers and tests, and selected locale/build context usingrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp:28retains one heap token per successful open until process exit. This prevents stale handle values from being reused, as intended, but makes token storage grow with the total number of generators opened over the process lifetime. Consider documenting this cost or using a bounded generation scheme if workloads can create many generators.Not verified
Native Windows, console and title behavior were not tested by this review; the description also says these remain unmeasured. The author reports 112/112 guest ICU tests passing on Linux x86-64 and MinGW-w64 under Wine at the reviewed head; these results were not rerun here. The full text of every changed file was not read. Targeted reads covered the wrapper and tests described above; other changed files were inspected through the prepared diff.
files.jsonwas not read, so exclusions beyond the prepared diff’s stated filtering rules were not checked.To get this to a good state
Nothing is required. Optionally document the process-lifetime handle-token growth or replace it with a bounded stale-handle scheme.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:46:46Z.
Review: COMMENTED
udatpg_open_nid_postfix(nullptr, ...)passes null through to native ICU. That selects the native default, while the guestuloc_setDefault_nid_postfixupdates the module's own default. A guest changing its locale can therefore still get patterns in the previous or host locale when opening with null. Please resolve that path throughIcu::DefaultLocaleName()and test a change of guest default followed by a null-locale open. Pinned ICU 78.1 open implementationSource review at
72a428cfa5. Trial integration onto484e8e6b77conflicts inRightToLeft.cpp.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:53:12Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected date-pattern, break-iterator, data-registration and ICU data-build paths show no verified blocker, but I did not review the full changed-file set.
What I ran
Reviewed head
45adbfdf1ec073842cbad5f9faf7689959b8ef96using the prepared diff and file snapshots. I attempted to read further source context withrepo_read.py, but it could not append its audit log in this read-only workspace. No tests or builds were run.Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected paths.
Non-blocking
None.
Not verified
The full changed-file set was not reviewed, so this is not a complete review. I read the prepared
description.md,commits.md,manifest.json,diff.patchandfiles.json, plus snapshots forDateTimePatternGenerator.cpp,DateTimePatternGeneratorBackend.cpp,BreakIterator.cpp,Configuration.cpp,Data.cpp,Icu.cmake,IcuData.cmake,IcuDataFilter.json,icu-host/CMakeLists.txt, and selected test excerpts. The remaining changed files were not read. No behavior was independently tested; the reported historical test results in the PR description were not rerun.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.