feat(icu): implement classic number formatter APIs #19720
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19720"
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-13T21:34:45Z.
What
A number formatter opened with a null locale uses the current guest default. Review
The November 25 review identified unchecked guest status access in
unum_formatDoubleForFields. The wrapper now uses the same checked status helpers as the other number-format exports. An incoming ICU failure still returns immediately. An invalid output buffer or capacity still sets the illegal-argument status. The field-iterator formatting for valid arguments is implemented separately in #26173. The draft depends on #19635 and will be rebased after #16971 lands. ReviewMerge status at
a8ddc6aa2eaa. The remaining prerequisite for this draft is #19635 (d72f8b7f6c57), which carries #19628 (fdabcdcb0554) and #16971 (c1785962ce53). All three are open and their full histories are included here. #20395 and #19435 have merged into main. Neither requires separate composition. The nine classic formatter exports in this PR pass the guest tests described below. The separateunum_formatDoubleForFieldsexport still throws for supported-status, valid-buffer requests. Its field-iterator formatting work remains outside this PR.This head includes the updated #19635 at
d72f8b7f6c57. A null locale for numbering-system selection now uses the current guest default.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 number formatter retains the refreshed #19635 prerequisite and the review fix for null decimal input with a positive length. The upstreamunum_formatDoubleForFieldsstatus behavior is included. 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.This PR implements nine existing exports for open/clone/close, double and arbitrary-precision decimal formatting, symbols, text attributes and numeric/text setters. Checked opaque handles call the existing source-built ICU78.1 backend through a private native translation unit; the data filter adds rule-based-number resources while retaining complete parent locale/currency data.
Output staging preserves actual native short-buffer writes, status warnings, field indexes and parse-record behavior without allocating from an untrusted declared capacity. Callback-shaped tokens refuse enumeration use, including after formatter close. Native symbol28 remains outside the existing guest range0-27. Foreign or aliased objects, unclassified partial-output errors and console/data-version equivalence remain documented limitations.
Earlier integration history, November 15–17
Integration on 2026-11-15. Qualified submitted commit
a2b0ec296a39119dcc82a91676f91eef2b9095edis 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. The dependencies at that time were #19635 and #20395, transitively #19628 and #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
6335b637641177249775ac4feca29d52ac4e1b62merges 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
fa5f05a66241. The added test failed on the previous implementation. After changing the guest locale, the same value formats as 1.234,5 under German and 1,234.5 under US English. All 126 selected CTests passed on Linux and all 126 passed under MinGW/Wine. Both compilers also accepted the 57 standalone ICU headers.On November 27, six focused guest CTests and the public-header CTest passed on native Linux and MinGW under Wine at
4def4d7d1754. The guest cases cover recovered signatures and formatter open, format, attributes, lifetime and NID resolution. Each binary exported all ten expected number-format NIDs exactly once. A separate check compiled the production wrapper with instrumented guest-copy helpers and ordinary status buffers. Success and warning inputs each used one checked read and one checked write on an invalid-capacity call. An existing ICU error used one checked read and retained its value. The previous head performed zero checked accesses in all three cases.On November 25 I integrated main
9c0d60cbfb6eand the complete ICU data prerequisite #16971 ateddb65df5f42. The formatter draft now includes the updated numbering-system prerequisite. The recovered inventory contains five throwing placeholders. The typed implementations of unum_getTextAttribute, unum_setAttribute and unum_setTextAttribute retain a single declaration each.At
256e140797eb, all 125 registered guest ICU CTests passed on Linux x86-64 and all 125 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 10 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
e12d242ae6b8I 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, 8 focused Linux CTests and 8 MinGW CTests under Wine passed.On
73c0847d0fd5against main8ce96faee7d2, all 118 selected guest ICU tests passed on native Linux and all 118 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 5 parameterless placeholders. The three enumeration exports dispatch to the caller’s callbacks after validating the guest status pointer.After the November 22 review, the file-access wrapper on
915df6212029passes 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 117 Linux and 117 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 revision22427cf6d9aa, 117 Linux guest ICU tests and 117 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 10 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_setFileAccessin99a4245960d3on 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 112 Linux guest ICU tests and all 112 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 10 feature NIDs exactly once.
On November 21 I tested
9950834edaaawith main6f18d49a833eand the updated break-iterator prerequisite #16971 atbdbfcb2c98fd. All 111 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 111 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 10 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 decimal-format regression covers the earlier review on null input with a positive length. The direct implementation dependency is #19635, which in turn depends on #19628 and #16971. Those PRs remain open.
Guest default locale, November 20 at
a8ddc6aa2eaa. 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 106 guest ICU CTests passed on Linux and all 106 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
f8671c3c23c4, 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 106 guest ICU CTests passed on Linux and all 106 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,
cd558e61d94a. Native Linux passed 106/106 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 53 selected ICU headers. The MinGW-w64 build ran 106/106 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. The dedicated number-format regression also passed (1/1). I did not run this head on native Windows, on a console, or with a title.Decimal input review follow-up at
cdc8202d36. With a valid formatter and a null number pointer, a positive explicit input length now returns 0 and setsU_ILLEGAL_ARGUMENT_ERROR. The output buffer is untouched and both field indexes become zero. A zero input length follows the empty-number syntax path. With a negative length, native ICU measures a NUL-terminated string, so the guest wrapper still rejects a null pointer. Review and pinned ICU source.The regression failed on
6f73f654a2and passed after the change. Tests compare return values, status, output bytes and field indexes with native ICU, including zero-capacity output, incoming warnings and an explicit length ofINT32_MAX. All 104 guest ICU CTests passed on Linux and all 104 passed in the MinGW-w64 build under Wine, with zero skips on either run.Refresh at
6f73f654a2against 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 (104/104) and on MinGW-w64 under Wine (104/104) with zero skips. #16971 is included at54768514e6. Earlier test runs below are pinned to their respective commits.Earlier refresh at
5386e4cdfdagainst 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 commite958bd6cdc. 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 build uses the pinned implementation of the field-position classes alongside the formatter APIs. All 104 registered ICU CTests passed on Linux. All 104 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
e91ad5f1f5c2ea2efc6ea78c321d0f4067bab6b3, 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:
6335b637641177249775ac4feca29d52ac4e1b62, 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.
Keep Draft for #19635 and its stack, 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
61531ab9030928b2bae05c4a9eb82614df4c63d1, 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: 86/86 CTests pass. MinGW 16 / private headless Wine 11.21: 86/86 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
a2b0ec296a39119dcc82a91676f91eef2b9095ed. Linux GCC 16.2.1, Release/full source-built dependencies: 78/78 CTests pass, no skips. MinGW GCC 16/private headless Wine 11.21 Staging: 78/78 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
ad9723529b7dfdf003c4019ab1fccb76a4b841b4. 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: 72/72 CTests pass without skips, comprising all 71 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: 30/30 selected CTests pass without skips, on composition
11e2a8dce84a55af14baa67136a0db749fd2b1a1. 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 CachyOS/Arch7.3.3-1-cachyos, GCC16.2.1 Release/Ninja, official source pin
049e0d6a420629ac7db77256987d083a563287b5. Behavior/signatures follow pinned unum.h and unum.cpp, rather than a measured console implementation.564948df5f06b3adc7db3d786de12d43c0154ad8differs from runtime-tested7768f4bd5c0c926b2314ee9d358595f4cd30d1e3only in concise debt wording. Production, test, header, data and CMake paths are identical. Parent #19635 is pinned at75a63ae7abd15c969c8a321fbbd4aa5febb3018b; main source snapshot is3d32b3ca4c6ac057b9059cb5ccd34c682ff6299d.181088835ba66f387c83b7d6f5fd714ef6c9a783additionally contains build fixes #19519 (d43d250189579f1c475481416841cdbe099cf099) and #19625 (4f4fa0b13e629d1de1dc3de5f8c5801e154e9b40); all ICU source/test/header/data paths are byte-identical to the submitted feature. Eight existing native normalizer RTTI/name exports match the recorded main PE metadata baseline; no new native ICU function exports or system ICU DLL imports.e5dba50ccbbaeab5ebabf78dfbc264d184a693b7is clean; relevant ICU/data/rule paths are unchanged since the tested main snapshot. Native Windows OS/macOS, sanitizers, physical-console ABI/data comparison and commercial titles were not tested. No FPS or title-unblock claim.Exact source pins, complete logs, native/stub controls, review and frozen overlap assessment.
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-19T21:23:13Z.
Review: COMMENTED
Reviewed — comments
The reviewed head is
6f73f654a2eefd64a53732732a29f16f7a57020; the changed number-format implementation has a concrete partial-read issue, and this review did not cover every changed file.What I ran
Read the prepared description, commits, manifest, and diff, then inspected the number-format implementation and backend in the diff. No build or tests were run.
Results
Findings
Blocking
None verified.
Non-blocking
core/libs/prx/libSceIcu/NumberFormat.cpp:1397:unum_formatDecimaltreats a null input with nonzero length as a fatal unimplemented path, while its null/length validation should return ICU's illegal-argument status. The neighboringunum_openpath passes null patterns to ICU, so the decimal API's behavior is inconsistent and can abort guest execution for malformed input. ReturnIcu::IllegalArgumentand-1for this invalid argument, consistent with the existing stub's validation.Not verified
The manifest lists many changed files; only the description, commits, manifest, diff, and number-format implementation/backend diff sections were read. The other changed paths, their full head text, and excluded files were not reviewed. Build, tests, platform behavior, and the author's reported results were not independently verified.
To get this to a good state
Nothing is required. The decimal null-input handling is optional feedback; the review is incomplete, so a formal approval is not justified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:32:17Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: clarify the branch’s stated dependency and integration gates, which are not reconciled with the November 20 description and qualification claims.
What I ran
Reviewed head
cd558e61d94a342ac0199436df29565374b681ef; base ismain. I readreview/description.md,review/commits.md,review/manifest.json,review/diff.patch, and the complete text of the changed formatter, backend, shared status, ICU data/build, enumeration, break iterator, date pattern, numbering system, and test-registration code named below. No build or test commands were run. Author-reported tests are not treated as runs performed in this review.Results
Findings
Blocking
None verified.
Non-blocking
Not verified
I did not read every changed line: the remainder of
review/diff.patchand many changed files inreview/manifest.jsonwere not inspected, including much of the tests, debt documentation, headers, and CMake registrations. I did not run tests, a build, a negative control, or a source/header audit. Linux, Wine, Windows, console, and title behavior were not independently verified. No precheck output was supplied in the material read.To get this to a good state
Nothing is required.
Optional: update the description to state which dependencies and integration gates remain for this exact head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:03:27Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed source hunks show no verified blocking defect; this review is incomplete, so the evidence does not support approval.
What I ran
Read the prepared description, commit list, diff, and selected manifest entries for head
a8ddc6aa2eaa60df24b7f11dcf978038d70660b7. No commands or tests were run.Results
Findings
Blocking
None verified in the inspected hunks.
Non-blocking
None.
Not verified
The manifest covers thousands of lines and changed files, and this review did not read every entry marked
reviewed. Inspected files and hunks includedcmake/Icu.cmake,cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.cpp,Data.cpp,DateTimePatternGenerator.cpp,NumberFormat.cpp,NumberFormatBackend.cpp, andNumberingSystem.cpp, plus selected tests. Other changed files, omitted file contents, full test behavior, and console/native Windows behavior were not verified. Description and commit history were read; files excluded by rule were not enumerated becausefiles.jsonwas unavailable through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:43:12Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review, but material parts of the change were not fully inspected, so a formal approval is not justified.
What I ran
Reviewed head
99a4245960d331d23d9b0e2678452e615c47901fusing the prepared diff and pinned repository reader. No build or tests were run. The author reports Linux and MinGW/Wine test results in the PR description; these were not independently verified here.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The description says all 112 Linux and MinGW/Wine guest ICU tests passed; these results were not rerun. I did not read every added line in the changed files, in particular the complete date-pattern, break-iterator, numbering-system, and test implementations.
files.jsonwas not available as a review document; the review folder listing supplied the changed-file inventory. No native Windows, console, or title behavior was verified.To get this to a good state
Nothing is required. Optional: complete the remaining changed-line and test review before treating this as a full review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:18:57Z.
Review: COMMENTED
Reviewed — no blocking findings
No verified blocking defect was found in the portions inspected; the review remains incomplete.
What I ran
Inspected prepared review materials and selected files at head
22427cf6d9aac8999830654f0df67a3df35f942ausing the pinnedrepo_read.pyreader. No build or test commands were run. The description reports 117 Linux and 117 MinGW/Wine guest ICU tests passed; these are author-reported results.Results
Findings
Blocking
None verified in the inspected portions.
Non-blocking
Nothing is required. Optional: complete review of the remaining changed files before making a formal merge decision.
Not verified
Read the description, commits, manifest, selected diff sections, and these changed files:
core/libs/prx/libSceIcu/NumberFormat.cpp,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/Configuration.cpp,core/libs/prx/libSceIcu/NumberingSystem.cpp,cmake/IcuData.cmake, andcmake/icu-host/CMakeLists.txt. The prepared listing shows all changed paths included; the full text of the remaining changed files was not read. The diff was inspected only in selected sections. Build behavior, native Windows behavior, console behavior, and the reported tests were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:47:47Z.
Review: COMMENTED
Reviewed — comments
Changes are not yet ready for a formal decision because this review inspected only selected implementation and build files; the prepared description reports test runs, but I did not run them.
What I ran
Read the prepared change description, commit list, manifest, diff, and selected source files at head
915df62120294b9be887fe3206b7d6e2874e9d39. No commands or tests were run.Results
Findings
Blocking
None identified in the files inspected.
Non-blocking
None.
Not verified
The review folder lists 60 changed repository files, all included in the prepared materials. I read the added lines in
cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/NumberFormat.cpp,core/libs/prx/libSceIcu/NumberFormatBackend.cpp,core/libs/prx/libSceIcu/NumberingSystem.cpp, andcore/libs/prx/libSceIcu/Data.cpp, plus selected context incore/libs/prx/libSceIcu/DateTimePatternGenerator.cppandcore/libs/prx/libSceIcu/Configuration.cpp. The other changed files and the remaining hunks were not read. No tests were run; reported test results were not independently confirmed. The reported native Windows, console, and title behavior was not verified.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and run the relevant checks on this exact head before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T22:33:57Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared bundle contains a broad ICU implementation and integration; I inspected selected hunks, but did not complete review of every changed file or run the reported checks.
What I ran
Reviewed head
73c0847d0fd5907bfd52f165c7ca2554b5b31053using the prepared review bundle and pinned repository reader. No build or tests were run.Results
Findings
Blocking
None verified in the inspected portions.
Non-blocking
None.
Not verified
I read
review/description.md,review/commits.md,review/manifest.json,review/README.md, and the first 400 lines ofreview/diff.patch, plus selected later ranges covering CMake/data registration, date-pattern setup, and number formatting. I also read lines 1–100 ofcore/libs/prx/libSceIcu/tests/NumberFormatBehavior.cpp. The manifest lists 53 changed files and no excluded files. I did not inspect every changed line or the remaining files, so behavior outside the selected portions is not verified. No tests were run; the test results in the description were not independently confirmed.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and rerun the checks on this head before relying on the author-reported results.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:01:13Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: validate guest status storage before dereferencing it in the affected number-format exports.
What I ran
Reviewed head
256e140797eb201c9a87384c24ebdcdec4c6a163throughrepo_read.py; no build or tests were run. Read the prepared description, commits, manifest, diff, and changed runtime/build files listed below. No files were excluded by the manifest.Results
Findings
Blocking
core/libs/prx/libSceIcu/NumberFormat.cpp:305—unum_setAttribute_nid_postfixcallsFindand the backend without checkingformator validating any guest memory; as written, it has no status parameter to report an error. More concretely,unum_setTextAttribute_nid_postfixreads status viaReadStatus, which safely checks guest readability, but laterWriteStatuschecks changed values only. The clearest invalid-pointer defect is inunum_formatDoubleForFields_nid_postfixat line 253: it callsIcu::Failure(status)and then may write*statusdirectly at line 255. A null or inaccessible status pointer can fault instead of following the wrapper’s checked guest-memory handling. Validate and access status via the guest-memory helpers before any dereference. The exported API remains an intentional formatting stub, but its argument-validation path must still be safe.Non-blocking
None.
Not verified
No tests, build, native Windows run, console run, or title execution were performed. The description’s reported Linux and MinGW-under-Wine results are author-supplied. Read the prepared review documents and these changed files:
.gitignore,CONTRIBUTING.md,cmake/Icu.cmake,cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/Availability.cpp,BreakIterator.cpp,BreakIterator.hpp,CMakeLists.txt,Configuration.cpp,Data.cpp,Data.hpp,DateTimePatternGenerator.cpp,DateTimePatternGeneratorBackend.cpp,DateTimePatternGeneratorBackend.hpp,Enumeration.cpp,Export.cpp,NumberFormat.cpp,NumberFormatBackend.cpp,NumberFormatBackend.hpp,NumberingSystem.cpp,NumberingSystemBackend.cpp,NumberingSystemBackend.hpp,RecoveredInventory.cpp,RecoveredInventory.hpp,RecoveredSignatures.hpp,include/Availability.hpp,include/InventoryExports.hpp,libSceIcu.hpp,tests/BreakIterator.cpp,tests/Data.cpp, and selected changed test ranges. The prepared file list reports no files excluded by rule; not every added line in all 80 changed files was inspected.To get this to a good state
Validate guest status storage before reading or writing it in the affected number-format path, then rerun the focused number-format tests on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:30:59Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review, but material uncertainties prevent a formal approval.
What I ran
Reviewed head
4def4d7d17544d57a4da410772456fab1aa7bd17. No commands or tests were run in this review; the test results below are author-reported in the PR description.Results
Findings
Blocking
None verified.
Non-blocking
unum_formatDoubleForFieldschecks status and buffer arguments, but valid requests still reach an unimplemented path (core/libs/prx/libSceIcu/NumberFormat.cpp:259). The description explicitly records this as out of scope; please track the remaining field-iterator formatting work separately.Not verified
The change spans 55 files; only
core/libs/prx/libSceIcu/NumberFormat.cpp,core/libs/prx/libSceIcu/NumberFormatBackend.cpp,review/description.md,review/commits.md,review/manifest.json, and portions ofreview/diff.patchwere read. The complete change, tests, build integration, and files listed as excluded byfiles.jsonwere not reviewed. No tests were run; cited test results are author-reported only.To get this to a good state
Nothing is required. Optional: keep the documented field-iterator formatting limitation tracked as follow-up work.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:37:12Z.
Review: COMMENTED
unum_openrejects a null locale throughNotImplemented_nid_no_patch. ICU 68 documents null as selecting the current default locale, so a valid default-locale formatter request still fails. Please resolve it through the guest default locale already used by the numbering-system code, and cover a changed guest default in the formatter fixture. ICU 68.2 unum_open declarationSource review at
4def4d7d17. The current stack conflicts in the shared RightToLeft fixture.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:51:45Z.
Review: COMMENTED
Reviewed — comments
This review is incomplete: the formatter implementation was inspected, but most changed files were not read.
What I ran
Reviewed head
fa5f05a66241def6e1cfb1ee3bfe99d0786664ad. I read the prepared description, commits, manifest and diff, plusNumberFormat.cpp,NumberFormatBackend.cppandNumberFormatBackend.hppfrom the prepared files. I did not run tests or compile code. The pinned reader failed when it attempted to log a subsequent read because the review folder is read-only.Results
Findings
Blocking
None identified in the inspected formatter files.
Non-blocking
None.
Not verified
files.jsonlists 68 reviewed files and no excluded files. I read 3 of those files; the remaining 65 were not inspected. The nine exports’ behavior, build and data integration, tests, and other changed code therefore remain unverified. The author-reported test results in the description were not run by me.To get this to a good state
Nothing is required to address a verified defect. Complete review of the remaining changed files before making a formal approval 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.