feat(icu): implement checked resource bundle readers #19670

Open
IvanFogel wants to merge 298 commits from upstream-pr/19670 into main
IvanFogel commented 2026-11-13 19:13:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by IvanFogel on 2026-11-13T19:13:48Z.


What

November 27 dependencies. #20373 merged on November 26. This PR still depends on #19635 and, through it, #16971. The next rebase needs to keep the hash exports now on main alongside the resource exports tested here. Hash implementation on main

The three UTF-8 resource getters and ures_hasNext now accept the owned handles returned by this branch. They also retain main’s path for resources supplied as guest records. A new regression opens package-backed resources, reads non-ASCII text directly, by key and by index, and checks iteration and stale-handle handling. On the initial combined branch, opening the fixtures succeeded but the first direct UTF-8 read failed. The packaged-resource tests also compare every destination byte, the returned pointer, output length and status with pinned ICU for partial UTF-8 output, an incoming termination warning, and malformed UTF-16. All three comparisons exposed differences before the correction. The raw guest-record path keeps the buffer behavior tested on main.

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 fd7fe562eded and the converter-alias data and tests from #16971 at c1785962ce53. The 14 resource-bundle exports retain the refreshed #19635 prerequisite. The shared recovered-signatures header includes the resource header, which owns the single ures_close declaration. A merge preview against independent #20373 at bccc109957 still reports adjacent changes in LegacyExports.cpp and include/LegacyExports.hpp. At that point #20373 was open. 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.

Valid resource-bundle reader calls currently throw. Implement fourteen existing APIs for open/direct open, key/index lookup with owned fillIn reuse, size/type/key queries, UTF-16 strings, signed integers, binary bytes, integer vectors and close. Use the pinned native ICU backend behind checked opaque guest handles; preserve native lookup errors, return shapes, aliases and child/data ownership.

The existing full data pipeline supplies locale and resource data. Official source-built genrb/icupkg create a separate test-only package containing Unicode/array/table/integer/binary/vector/alias fixtures, beside real production CLDR resources. The production package is not modified. Functional native controls and actual patched-NID calls test reads, not just symbol presence.

Keep Draft with Depends on #19635 (transitively #19628/#16971). Unsupported foreign/caller-allocated fillIn layouts throw. Explicit missing-locale fallback may consult the host default; guest defaults/path remapping, external package I/O, overlapping length/status outputs and console ABI/data-version equivalence remain unverified. Null-status opens defensively return no bundle rather than dereference status. Returned pointers require live native data/handles and must not race close/reuse/cleanup. Native bundles free on close; distinct token identities remain until process teardown. Other resource APIs retain their throwing paths.

Integration on 2026-11-15. Qualified submitted commit 4541b2371af4046582def3fdbc57a621aa907e83 is based on tested main 4da77d3353c9c9f59f15436af86f44e4bb3ee074 and retains the full original feature/donor history. The shared data prerequisite is #16971 at b35ad18125f8a8e28aded9bae403c2e6ed33afe7; #20395 at 26e33a85262270bbeb619cc7f45edbb31ee84dc8 supplies the independently tested Windows unsigned-parser saturation correction. At that revision #19635, #20395 and #20373 were open. Draft status and the previously documented peer-composition/platform gates remain. No author agreement or native Windows execution is claimed.

The new #20373 flag is an adjacent-stub-removal interaction, not duplicate resource behavior: its 41 hash APIs/NIDs are disjoint from these 14 resource APIs/NIDs. The proposed order at that time was #20373 first. Future composition must remove both obsolete stubs/declarations and retain both typed implementations. The frozen source audit is in the attached evidence; no joint runtime run is claimed.

2026-11-17 integration: submitted head bec7132b18540519e5ebb8581b2d88c71b17400c merges main 050cdf95addcb05b1c663587ab921216707623fe and preserves the original prerequisite histories. The full ICU data package now replaces both the old stub data and main's subset provider, leaving exactly one icudt78_dat definition while retaining main's normalization, properties, default-locale and UTC-time behavior. Resource export conflicts preserve the typed readers, current-main NFKC/NFKD implementations and UTC-time declarations, removing only obsolete placeholders.

Tested

On November 25 I integrated main 9c0d60cbfb6e and the complete ICU data prerequisite #16971 at eddb65df5f42. Both resource locale getters now work with handles returned by the owned bundle API and with existing guest resource records. Owned root, child and refill handles return the same locale name and status as pinned ICU. Incoming failures return before accessing a closed handle. The existing resource-record fixture still exercises both exports.

At 204400b4dcae, all 130 registered guest ICU CTests passed on Linux x86-64 and all 130 passed with MinGW-w64 under Wine. In a one-file Linux negative control, removing owned-handle dispatch made both the literal and interoperability fixtures fail on their locale query. The upstream guest-record signature test still passed. Both builds passed the public-header audit and compiled all 58 ICU public headers independently. The compiled library exported each of 22 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 4b5757ec203e I 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 at b47b9b838db2. 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, 13 focused Linux CTests and 13 MinGW CTests under Wine passed.

On 15fe4478c99b against main 8ce96faee7d2, all 123 selected guest ICU tests passed on native Linux and all 123 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. The owned-resource oracle also passed at this head. Separate Linux comparisons on this head and the preceding 2f6500a7c05a returned the same pointer result, status, length and bytes as pinned ICU in each of 48 direct, keyed and indexed cases. For héllo 世界 (8 UTF-16 units, 13 UTF-8 bytes), capacity 7 left the buffer untouched. Capacity 9 wrote the seven-byte prefix héllo and reported length 13 and U_BUFFER_OVERFLOW_ERROR. Capacity 12 wrote ten bytes. Both force-copy settings agreed. The stack-bundle initializer still clears 200 bytes in guest storage and rejects the module’s live and closed tokens. Review · Pinned ICU conversion

After the November 22 review, the file-access wrapper on 2f6500a7c05a passes 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 at ab382ee5829f also tests allocation after reconfiguring ICU. All 122 Linux and 122 MinGW/Wine guest ICU tests passed on main 4c260ec7de72, along with the public-header and feature-export checks. Review · Pinned setter

On November 22, I integrated main 70cca973b49f and the break-iterator and ICU data prerequisite #16971 at f59b5fbe7fa2. 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 revision 974972ba2edd, 122 Linux guest ICU tests and 122 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 20 feature NIDs exactly once. The tests include the converter-alias comparison and bundled-locale direction. These Windows binaries ran under Wine. Each newly opened or independently returned resource bundle adds one retained token and registry slot. A lookup that reuses an open fill-in handle adds none. Closing a bundle releases the registry’s ownership of the native object. The allocated token and slot remain until process teardown, so lifetime storage grows with the total number of new handles. The resource test exercises 128 open/close cycles, stale handles and fill-in reuse. Bytes per handle and peak memory were not measured. Review

On November 21, I updated udata_setFileAccess in fd6f8c6d4da8 on main 6f5c412af786. 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 setter

All 113 Linux guest ICU tests and all 113 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 16 feature NIDs exactly once.

On November 21 I tested 66c8a539f81f with main 6f18d49a833e and the updated break-iterator prerequisite #16971 at bdbfcb2c98fd. All 112 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 112 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 16 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 date-pattern buffer tests exercised all four output operations with a null destination and positive capacities of 1 and 32 against native ICU. The invalid-destination branch returns before buffer allocation and guest copy. Review

Guest default locale, November 20 at 66d50e34b6d0. 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 107 guest ICU CTests passed on Linux and all 107 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.

Combined with #20373 at the refreshed head. Local commit fbb65dada8a2 includes this resource PR (66d50e34b6d0), the hash PR (bccc10995744), and main (e825fa149296). All 108 guest ICU CTests and the public-header check passed on Linux and in a MinGW-w64 build under Wine. Both built libraries exported all 52 resource and hash NIDs exactly once. On each platform, a guest probe read the signed vector [1, -2, 17] from a compiled resource, inserted and retrieved its values through the hash API, then emptied the table.

First resource and hash test run

Joint verification with #20373, November 20. I combined the earlier head (6f8a3ab9f231), #20373 (bccc10995744) and main (7d2270cb862e) in local commit 1451116384b8. The two conflicts were adjacent obsolete declarations and throwing placeholders for uhash_removeAll and ures_getIntVector. Removing the placeholders kept both typed implementations. The patched Linux and MinGW libraries each exported all 14 resource and 38 hash NIDs exactly once. All 108 guest ICU CTests and the public-header audit passed on Linux and under MinGW-w64/Wine. A separate probe on both platforms resolved the guest NIDs, read the signed resource vector [1, -2, 17] from a compiled package, stored and retrieved it through the hash table, then cleared the table with uhash_removeAll. Native Windows and a commercial title were outside this run.

November 20 locale bounds at 6f8a3ab9f231, based on 3a1b27b9d2e2. 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 107 guest ICU CTests passed on Linux and all 107 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, 8a918a9801b6. Native Linux passed 107/107 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 54 selected ICU headers. The MinGW-w64 build ran 107/107 guest ICU tests under Wine. Its CTest selection also passed the public-header audit. Both patched libraries export the data-registration NIDs wHZwCpZVcGI and mCyTdtewGpk exactly 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 6e7ae4c0f9 against main 2bd7cdb8d1. 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 (105/105) and on MinGW-w64 under Wine (105/105) with zero skips. #16971 is included at 54768514e6. Earlier test runs below are pinned to their respective commits.

Earlier refresh at f6affd9c34 against main fa0b7e3ce4. Tested the merged ICU field-position, resource, locale and converter work alongside this feature. This head includes the full current #16971 prerequisite at 54768514e6. Its implementation, build configuration and tests are byte-identical to tested commit 977b9163a4. 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. Unsigned reads now support both registry-owned resources and guest stack bundles. Tests cover signed and unsigned integer payloads, resource type errors, and closed handles. All 105 registered ICU CTests passed on Linux. All 105 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 5f504d97cb42d776757f0a1619ab0f97c4f78176, integrating tested main 47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09. 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.

  • Linux: 95/95 selected CTests pass. MinGW/private Wine: 95/95 pass. Zero selected failures or skips. Fresh main baseline is66/66 on each platform. The full registered ICU family, parser callers and native public-header audit ran at these exact commits; ICU headers also compiled independently with native GCC and MinGW.
  • All35 scoped source checks pass across the seven refreshes. Independent header/merge review found no introduced Critical/Important/Minor finding and verified unique include unions, main/feature header blobs, dependency ancestry and only-header manual edits.
  • Actual data archive still has exactly one strong full-data provider, retains nfkc.nrm,nfkc_cf.nrm,uemoji.icu,ulayout.icu, and introduces no native ICU export/import leak relative to baseline. The tested full-data provider selection itself was not manually changed.
  • Complete fresh qualification metadata and selected logs. These results supersede the older exact-head counts folded below. Native Windows/macOS, real titles and joint outside-peer execution were not run; Wine is not native Windows qualification. Draft and existing dependency/human-review gates remain.

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: bec7132b18540519e5ebb8581b2d88c71b17400c, based on tested main 050cdf95addcb05b1c663587ab921216707623fe.

  • Linux: 93/93 selected CTests pass. MinGW/private Wine: 93/93 pass. No selected skips or failures. Selection includes every registered ICU case, focused math/wide-string/Dinkumware/multibyte callers, and applicable public-header/platform controls.
  • Archive inspection finds exactly one full-data provider. Built package entries retain nfkc.nrm, nfkc_cf.nrm, uemoji.icu and ulayout.icu; normalization/property/null-locale/UTC-time regressions pass.
  • Affected public headers compile independently. ELF/PE native-ICU symbol exposure matches the tested main baseline; no host ICU DLL dependency was introduced.
  • Conventions, committed whitespace and scoped/global debt checks pass. Independent integration review found no required source changes.
  • The previous Windows guest_multibyte_locale failure 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 prerequisites. #20373 and #20395 have 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 ea06ebf49d7580b12992decd434a51f400bca337, main e236a801f88183df3d215af0d450fb20baf9edc3. 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. Keep the new typed default-locale getter exactly once and remove obsolete resource-reader placeholder declarations.

Linux x86-64 / GCC 16.2.1 Release full runtime: 87/87 CTests pass. MinGW 16 / private headless Wine 11.21: 87/87 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. 48 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. #19670 retains one nonblocking long-debt-entry warning. 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 4c976e99394db1546555ca53fd575912d4b819a8 is 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 4541b2371af4046582def3fdbc57a621aa907e83. Linux GCC 16.2.1, Release/full source-built dependencies: 79/79 CTests pass, no skips. MinGW GCC 16/private headless Wine 11.21 Staging: 79/79 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. 46 ICU header units compile independently on each toolchain. Native Windows was not run.

The matching main control at 4da77d3353c9c9f59f15436af86f44e4bb3ee074 passes 47/47 Linux cases; Wine passes 46/47 with the reproduced guest_icu_cstring negative-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 f61793afa6d22732addd93e3b27553fc5deeab2f is 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 2da7f5fc6e6c491366cadf48c552cafe46a79476. Merge main 1edac2f2eaa54c45dd96d632d989162c2b319647 and 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: 73/73 CTests pass without skips, comprising all 72 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: 31/31 selected CTests pass without skips, on composition 696628c9613f953255022795b03e5ffc2fce093d. 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):

CachyOS Linux x86-64, GCC 16.2.1 Release, official ICU 78.1 pin 049e0d6a420629ac7db77256987d083a563287b5 built from source.

  • Submitted head 6e750efafe464b52bafeeeb51cf4fd6f8d84d4c7 differs from runtime-tested/reviewed e36089427721892fc8c57d3c4df7fc9db46d21ed only in existing debt wording. Production, tests, headers and data scripts are byte-identical.
  • Full source build and all 71 Linux ICU CTests pass, including seven resource cases, fixed actual CLDR reads, native-differential status/length/memory/fillIn/lifetime controls, and functional calls through all fourteen canonical patched NIDs. Before implementation all five guest groups failed at real typed stubs; the separate NID control restores those stubs with identical test/package and fails at ures_openDirect after real artifact/data setup.
  • Full public-header audit passes for 413 libraries/34,519 exports; all 44 selected ICU header compilation units pass. Linux dynamic-symbol inspection finds no native ICU78 symbol leaks. Conventions and whitespace checks pass. One fresh whole-branch read-only review found no material issue; its compatibility boundaries are retained above and in debt.
  • Arch MinGW-w64 GCC 16.2.0-2.1 cross-build and all 30 selected CTests pass under Wine 11.21 Staging with a private prefix and no display. Exact composition 97318ff8c3ca887b3b65e654a147c7687c5d4f74 adds separate #19625 head 617c139b045a460983d271d21686674520e44ed9 and #19519 head f875fa2fd7cb1296256d50b8f456eefe99bbbb13; all ICU source/data paths are byte-identical to this PR. The eight native normalizer typeinfo/name exports match the recorded main PE baseline exactly; no new native ICU function exports.
  • Current canonical overlap scan reports 25 peers and fails closed on automatically uncompared conflicts. Every reported immutable head is manually scoped, reusing complete prior audits only for unchanged heads; new/updated timezone, RTL-registration, normalization and own calendar deltas are not duplicate resource readers. #14443's ures_getBinary name hit remains a throwing stub at its frozen head. Source/data ICU paths in main are unchanged between the tested main snapshot and scan base d261fa6f56657357c39d1d4c26ba2546a94add7e; a merge-tree probe against the latter is clean. This is not an all-peer runtime/merge proof, clean canonical exit or author agreement.
  • Native Windows/macOS, PS5/console comparison, commercial-title execution, concurrency/allocation-fault stress and aliased-output ordering were not tested. No title-unblock, GPU or performance claim.

Exact source pins, full Linux/Wine logs, actual-stub/NID controls, review and frozen overlap assessment.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #19635
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5301399738 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670). Originally posted by [IvanFogel](https://github.com/IvanFogel) on 2026-11-13T19:13:48Z. --- ### What **November 27 dependencies.** #20373 merged on November 26. This PR still depends on #19635 and, through it, #16971. The next rebase needs to keep the hash exports now on main alongside the resource exports tested here. [Hash implementation on main](https://github.com/boykopovar/AnyPS5/pull/20373) The three UTF-8 resource getters and `ures_hasNext` now accept the owned handles returned by this branch. They also retain main’s path for resources supplied as guest records. A new regression opens package-backed resources, reads non-ASCII text directly, by key and by index, and checks iteration and stale-handle handling. On the initial combined branch, opening the fixtures succeeded but the first direct UTF-8 read failed. The packaged-resource tests also compare every destination byte, the returned pointer, output length and status with pinned ICU for partial UTF-8 output, an incoming termination warning, and malformed UTF-16. All three comparisons exposed differences before the correction. The raw guest-record path keeps the buffer behavior tested on main. 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](https://github.com/boykopovar/AnyPS5/pull/19628#pullrequestreview-5988788690). **November 20 integration.** This branch includes main at `fd7fe562eded` and the converter-alias data and tests from #16971 at `c1785962ce53`. The 14 resource-bundle exports retain the refreshed #19635 prerequisite. The shared recovered-signatures header includes the resource header, which owns the single `ures_close` declaration. A merge preview against independent #20373 at `bccc109957` still reports adjacent changes in `LegacyExports.cpp` and `include/LegacyExports.hpp`. At that point #20373 was open. 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. Valid resource-bundle reader calls currently throw. Implement fourteen existing APIs for open/direct open, key/index lookup with owned fillIn reuse, size/type/key queries, UTF-16 strings, signed integers, binary bytes, integer vectors and close. Use the pinned native ICU backend behind checked opaque guest handles; preserve native lookup errors, return shapes, aliases and child/data ownership. The existing full data pipeline supplies locale and resource data. Official source-built genrb/icupkg create a separate test-only package containing Unicode/array/table/integer/binary/vector/alias fixtures, beside real production CLDR resources. The production package is not modified. Functional native controls and actual patched-NID calls test reads, not just symbol presence. Keep Draft with Depends on #19635 (transitively #19628/#16971). Unsupported foreign/caller-allocated fillIn layouts throw. Explicit missing-locale fallback may consult the host default; guest defaults/path remapping, external package I/O, overlapping length/status outputs and console ABI/data-version equivalence remain unverified. Null-status opens defensively return no bundle rather than dereference status. Returned pointers require live native data/handles and must not race close/reuse/cleanup. Native bundles free on close; distinct token identities remain until process teardown. Other resource APIs retain their throwing paths. **Integration on 2026-11-15.** Qualified submitted commit `4541b2371af4046582def3fdbc57a621aa907e83` is based on tested main `4da77d3353c9c9f59f15436af86f44e4bb3ee074` and retains the full original feature/donor history. The shared data prerequisite is #16971 at `b35ad18125f8a8e28aded9bae403c2e6ed33afe7`; #20395 at `26e33a85262270bbeb619cc7f45edbb31ee84dc8` supplies the independently tested Windows unsigned-parser saturation correction. At that revision #19635, #20395 and #20373 were open. Draft status and the previously documented peer-composition/platform gates remain. No author agreement or native Windows execution is claimed. The new #20373 flag is an adjacent-stub-removal interaction, not duplicate resource behavior: its 41 hash APIs/NIDs are disjoint from these 14 resource APIs/NIDs. The proposed order at that time was #20373 first. Future composition must remove both obsolete stubs/declarations and retain both typed implementations. The frozen source audit is in the attached evidence; no joint runtime run is claimed. **2026-11-17 integration:** submitted head `bec7132b18540519e5ebb8581b2d88c71b17400c` merges main `050cdf95addcb05b1c663587ab921216707623fe` and preserves the original prerequisite histories. The full ICU data package now replaces both the old stub data and main's subset provider, leaving exactly one `icudt78_dat` definition while retaining main's normalization, properties, default-locale and UTC-time behavior. Resource export conflicts preserve the typed readers, current-main NFKC/NFKD implementations and UTC-time declarations, removing only obsolete placeholders. ### Tested On November 25 I integrated main `9c0d60cbfb6e` and the complete ICU data prerequisite [#16971](https://github.com/boykopovar/AnyPS5/pull/16971) at `eddb65df5f42`. Both resource locale getters now work with handles returned by the owned bundle API and with existing guest resource records. Owned root, child and refill handles return the same locale name and status as pinned ICU. Incoming failures return before accessing a closed handle. The existing resource-record fixture still exercises both exports. At `204400b4dcae`, all 130 registered guest ICU CTests passed on Linux x86-64 and all 130 passed with MinGW-w64 under Wine. In a one-file Linux negative control, removing owned-handle dispatch made both the literal and interoperability fixtures fail on their locale query. The upstream guest-record signature test still passed. Both builds passed the public-header audit and compiled all 58 ICU public headers independently. The compiled library exported each of 22 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 `4b5757ec203e` I 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 at `b47b9b838db2`. 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, 13 focused Linux CTests and 13 MinGW CTests under Wine passed. On `15fe4478c99b` against main `8ce96faee7d2`, all 123 selected guest ICU tests passed on native Linux and all 123 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. The owned-resource oracle also passed at this head. Separate Linux comparisons on this head and the preceding `2f6500a7c05a` returned the same pointer result, status, length and bytes as pinned ICU in each of 48 direct, keyed and indexed cases. For `héllo 世界` (8 UTF-16 units, 13 UTF-8 bytes), capacity 7 left the buffer untouched. Capacity 9 wrote the seven-byte prefix `héllo ` and reported length 13 and `U_BUFFER_OVERFLOW_ERROR`. Capacity 12 wrote ten bytes. Both force-copy settings agreed. The stack-bundle initializer still clears 200 bytes in guest storage and rejects the module’s live and closed tokens. [Review](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6011566192) · [Pinned ICU conversion](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/uresbund.cpp#L1541-L1609) After the November 22 review, the file-access wrapper on `2f6500a7c05a` passes 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 at `ab382ee5829f` also tests allocation after reconfiguring ICU. All 122 Linux and 122 MinGW/Wine guest ICU tests passed on main `4c260ec7de72`, along with the public-header and feature-export checks. [Review](https://github.com/boykopovar/AnyPS5/pull/19628#pullrequestreview-6011448365) · [Pinned setter](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/udata.cpp#L1446-L1450) On November 22, I integrated main `70cca973b49f` and the break-iterator and ICU data prerequisite #16971 at `f59b5fbe7fa2`. 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 revision `974972ba2edd`, 122 Linux guest ICU tests and 122 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 20 feature NIDs exactly once. The tests include the converter-alias comparison and bundled-locale direction. These Windows binaries ran under Wine. Each newly opened or independently returned resource bundle adds one retained token and registry slot. A lookup that reuses an open fill-in handle adds none. Closing a bundle releases the registry’s ownership of the native object. The allocated token and slot remain until process teardown, so lifetime storage grows with the total number of new handles. The resource test exercises 128 open/close cycles, stale handles and fill-in reuse. Bytes per handle and peak memory were not measured. [Review](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6004454799) On November 21, I updated `udata_setFileAccess` in `fd6f8c6d4da8` on main `6f5c412af786`. 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](https://github.com/boykopovar/AnyPS5/pull/19635#pullrequestreview-6004284175) · [Pinned ICU setter](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/udata.cpp#L1446-L1450) All 113 Linux guest ICU tests and all 113 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 16 feature NIDs exactly once. On November 21 I tested `66c8a539f81f` with main `6f18d49a833e` and the updated break-iterator prerequisite #16971 at `bdbfcb2c98fd`. All 112 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 112 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 16 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 date-pattern buffer tests exercised all four output operations with a null destination and positive capacities of 1 and 32 against native ICU. The invalid-destination branch returns before buffer allocation and guest copy. [Review](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-5989463349) **Guest default locale, November 20 at `66d50e34b6d0`.** 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 107 guest ICU CTests passed on Linux and all 107 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. **Combined with #20373 at the refreshed head.** Local commit `fbb65dada8a2` includes this resource PR (`66d50e34b6d0`), the hash PR (`bccc10995744`), and main (`e825fa149296`). All 108 guest ICU CTests and the public-header check passed on Linux and in a MinGW-w64 build under Wine. Both built libraries exported all 52 resource and hash NIDs exactly once. On each platform, a guest probe read the signed vector `[1, -2, 17]` from a compiled resource, inserted and retrieved its values through the hash API, then emptied the table. <details> <summary>First resource and hash test run</summary> **Joint verification with #20373, November 20.** I combined the earlier head (`6f8a3ab9f231`), #20373 (`bccc10995744`) and main (`7d2270cb862e`) in local commit `1451116384b8`. The two conflicts were adjacent obsolete declarations and throwing placeholders for `uhash_removeAll` and `ures_getIntVector`. Removing the placeholders kept both typed implementations. The patched Linux and MinGW libraries each exported all 14 resource and 38 hash NIDs exactly once. All 108 guest ICU CTests and the public-header audit passed on Linux and under MinGW-w64/Wine. A separate probe on both platforms resolved the guest NIDs, read the signed resource vector `[1, -2, 17]` from a compiled package, stored and retrieved it through the hash table, then cleared the table with `uhash_removeAll`. Native Windows and a commercial title were outside this run. </details> **November 20 locale bounds at `6f8a3ab9f231`, based on `3a1b27b9d2e2`.** 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 107 guest ICU CTests passed on Linux and all 107 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, `8a918a9801b6`.** Native Linux passed 107/107 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 54 selected ICU headers. The MinGW-w64 build ran 107/107 guest ICU tests under Wine. Its CTest selection also passed the public-header audit. Both patched libraries export the data-registration NIDs `wHZwCpZVcGI` and `mCyTdtewGpk` exactly 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 `6e7ae4c0f9` against main `2bd7cdb8d1`.** 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 (105/105) and on MinGW-w64 under Wine (105/105) with zero skips. #16971 is included at `54768514e6`. Earlier test runs below are pinned to their respective commits. **Earlier refresh at `f6affd9c34` against main `fa0b7e3ce4`.** Tested the merged ICU field-position, resource, locale and converter work alongside this feature. This head includes the full current #16971 prerequisite at `54768514e6`. Its implementation, build configuration and tests are byte-identical to tested commit `977b9163a4`. 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. Unsigned reads now support both registry-owned resources and guest stack bundles. Tests cover signed and unsigned integer payloads, resource type errors, and closed handles. All 105 registered ICU CTests passed on Linux. All 105 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 `5f504d97cb42d776757f0a1619ab0f97c4f78176`, integrating tested main `47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09`. 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. - Linux: **95/95 selected CTests pass**. MinGW/private Wine: **95/95 pass**. Zero selected failures or skips. Fresh main baseline is66/66 on each platform. The full registered ICU family, parser callers and native public-header audit ran at these exact commits; ICU headers also compiled independently with native GCC and MinGW. - All35 scoped source checks pass across the seven refreshes. Independent header/merge review found no introduced Critical/Important/Minor finding and verified unique include unions, main/feature header blobs, dependency ancestry and only-header manual edits. - Actual data archive still has exactly one strong full-data provider, retains nfkc.nrm,nfkc_cf.nrm,uemoji.icu,ulayout.icu, and introduces no native ICU export/import leak relative to baseline. The tested full-data provider selection itself was not manually changed. - [Complete fresh qualification metadata and selected logs](https://gist.github.com/IvanFogel/8dac787f54c695ecfd44a94dd986b44b). These results supersede the older exact-head counts folded below. Native Windows/macOS, real titles and joint outside-peer execution were not run; Wine is not native Windows qualification. Draft and existing dependency/human-review gates remain. 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. <details> <summary>Earlier pinned qualification and review dispositions (historical evidence)</summary> **2026-11-17 exact-head qualification:** `bec7132b18540519e5ebb8581b2d88c71b17400c`, based on tested main `050cdf95addcb05b1c663587ab921216707623fe`. - Linux: **93/93** selected CTests pass. MinGW/private Wine: **93/93** pass. No selected skips or failures. Selection includes every registered ICU case, focused math/wide-string/Dinkumware/multibyte callers, and applicable public-header/platform controls. - Archive inspection finds exactly one full-data provider. Built package entries retain `nfkc.nrm`, `nfkc_cf.nrm`, `uemoji.icu` and `ulayout.icu`; normalization/property/null-locale/UTC-time regressions pass. - Affected public headers compile independently. ELF/PE native-ICU symbol exposure matches the tested main baseline; no host ICU DLL dependency was introduced. - Conventions, committed whitespace and scoped/global debt checks pass. Independent integration review found no required source changes. - The previous Windows `guest_multibyte_locale` failure 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](https://gist.github.com/IvanFogel/8413d9285a9334367b5cc4b2154761b2). Keep Draft for #19635 and its prerequisites. #20373 and #20395 have merged. Textual mergeability does not establish joint qualification with every current peer; previous external/composition receipts below keep their original pins. <details> <summary>Historical exact-head qualification</summary> **2026-11-16 maintenance — exact submitted/tested head `ea06ebf49d7580b12992decd434a51f400bca337`, main `e236a801f88183df3d215af0d450fb20baf9edc3`.** 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. Keep the new typed default-locale getter exactly once and remove obsolete resource-reader placeholder declarations. Linux x86-64 / GCC 16.2.1 Release full runtime: **87/87 CTests pass**. MinGW 16 / private headless Wine 11.21: **87/87 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. **48 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. #19670 retains one nonblocking long-debt-entry warning. 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 `4c976e99394db1546555ca53fd575912d4b819a8` is 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](https://gist.github.com/IvanFogel/b5fc0ae08605542a9da101f7cd50fdcc). Historical results below retain their own pins and were not rerun as native-platform reports. <details> <summary>Historical qualification at its original exact commits</summary> **2026-11-15 refresh — exact submitted commit `4541b2371af4046582def3fdbc57a621aa907e83`.** Linux GCC 16.2.1, Release/full source-built dependencies: **79/79 CTests pass, no skips**. MinGW GCC 16/private headless Wine 11.21 Staging: **79/79 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. 46 ICU header units compile independently on each toolchain. Native Windows was not run. The matching main control at `4da77d3353c9c9f59f15436af86f44e4bb3ee074` passes 47/47 Linux cases; Wine passes 46/47 with the reproduced `guest_icu_cstring` negative-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 `f61793afa6d22732addd93e3b27553fc5deeab2f` is 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](https://gist.github.com/IvanFogel/d0abeae6a91cae93de02ea939b4959a5). 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. <details> <summary>Historical qualification and reports (original exact commits)</summary> <!-- codex-rtl-refresh-start --> **2026-11-13 RTL conflict refresh — exact submitted head `2da7f5fc6e6c491366cadf48c552cafe46a79476`.** Merge main `1edac2f2eaa54c45dd96d632d989162c2b319647` and 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: **73/73 CTests pass without skips**, comprising all 72 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: **31/31 selected CTests pass without skips**, on composition `696628c9613f953255022795b03e5ffc2fce093d`. 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](https://gist.github.com/IvanFogel/e6af5e11df6099703cb6323cde9de189). Earlier qualification and hosted Windows reports below retain their original commit pins and do not represent reruns on this new head. <!-- codex-rtl-refresh-end --> **Earlier qualification (historical exact commits):** <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> CachyOS Linux x86-64, GCC 16.2.1 Release, official ICU 78.1 pin `049e0d6a420629ac7db77256987d083a563287b5` built from source. - Submitted head `6e750efafe464b52bafeeeb51cf4fd6f8d84d4c7` differs from runtime-tested/reviewed `e36089427721892fc8c57d3c4df7fc9db46d21ed` only in existing debt wording. Production, tests, headers and data scripts are byte-identical. - Full source build and all 71 Linux ICU CTests pass, including seven resource cases, fixed actual CLDR reads, native-differential status/length/memory/fillIn/lifetime controls, and functional calls through all fourteen canonical patched NIDs. Before implementation all five guest groups failed at real typed stubs; the separate NID control restores those stubs with identical test/package and fails at ures_openDirect after real artifact/data setup. - Full public-header audit passes for 413 libraries/34,519 exports; all 44 selected ICU header compilation units pass. Linux dynamic-symbol inspection finds no native ICU78 symbol leaks. Conventions and whitespace checks pass. One fresh whole-branch read-only review found no material issue; its compatibility boundaries are retained above and in debt. - Arch MinGW-w64 GCC 16.2.0-2.1 cross-build and all 30 selected CTests pass under Wine 11.21 Staging with a private prefix and no display. Exact composition `97318ff8c3ca887b3b65e654a147c7687c5d4f74` adds separate #19625 head `617c139b045a460983d271d21686674520e44ed9` and #19519 head `f875fa2fd7cb1296256d50b8f456eefe99bbbb13`; all ICU source/data paths are byte-identical to this PR. The eight native normalizer typeinfo/name exports match the recorded main PE baseline exactly; no new native ICU function exports. - Current canonical overlap scan reports 25 peers and fails closed on automatically uncompared conflicts. Every reported immutable head is manually scoped, reusing complete prior audits only for unchanged heads; new/updated timezone, RTL-registration, normalization and own calendar deltas are not duplicate resource readers. #14443's ures_getBinary name hit remains a throwing stub at its frozen head. Source/data ICU paths in main are unchanged between the tested main snapshot and scan base `d261fa6f56657357c39d1d4c26ba2546a94add7e`; a merge-tree probe against the latter is clean. This is not an all-peer runtime/merge proof, clean canonical exit or author agreement. - Native Windows/macOS, PS5/console comparison, commercial-title execution, concurrency/allocation-fault stress and aliased-output ordering were not tested. No title-unblock, GPU or performance claim. [Exact source pins, full Linux/Wine logs, actual-stub/NID controls, review and frozen overlap assessment](https://gist.github.com/IvanFogel/c9a03769fab72650d665f40863ff9605). </details> </details> </details> </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: <!-- #PR, or none --> #19635 - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-11-20 07:29:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:29:07Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change based on the source and review bundle inspected; the author’s reported Linux and MinGW/Wine checks are not checks I ran.

What I ran

  • Read the prepared diff, description, commit list, manifest, review README, and targeted source/test ranges at head 8a918a9801b6a3faac4816d13fad136ad9f5dbd9.
  • No build or tests were run in this review.

Results

Check Result Note
Source review passed Targeted ICU implementation and tests inspected
Build and tests not run Results in the description are author-reported

Findings

Blocking

None.

Non-blocking

None.

Sources

The changed implementation and its behavior tests were read from the prepared review bundle and the repository reader pinned to the stated head.

Not verified

No build or tests were run. The complete contents of all changed files were not read; the targeted review focused on ICU resource handling, adjacent ICU wrappers, data build configuration, and their tests. No console, native Windows, or title behavior was verified. The description’s test results and integration claims remain author-reported.

Files read: review/description.md, review/commits.md, review/manifest.json, review/README.md, targeted ranges of review/diff.patch, core/libs/prx/libSceIcu/ResourceBundle.cpp, ResourceBundle.hpp, ResourceBundleBackend.cpp, ResourceBundle.cmake, tests/ResourceBundleBehavior.cpp, BreakIterator.cpp, DateTimePatternGenerator.cpp, NumberingSystem.cpp, Configuration.cpp, Data.cpp, and targeted changed CMake/test ranges. The full contents of other changed files were not read. No excluded-file inventory was available in the prepared review folder.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989004586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-5989004586). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T07:29:07Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change based on the source and review bundle inspected; the author’s reported Linux and MinGW/Wine checks are not checks I ran. ## What I ran - Read the prepared diff, description, commit list, manifest, review README, and targeted source/test ranges at head `8a918a9801b6a3faac4816d13fad136ad9f5dbd9`. - No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Targeted ICU implementation and tests inspected | | Build and tests | not run | Results in the description are author-reported | ## Findings ### Blocking None. ### Non-blocking None. ## Sources The changed implementation and its behavior tests were read from the prepared review bundle and the repository reader pinned to the stated head. ## Not verified No build or tests were run. The complete contents of all changed files were not read; the targeted review focused on ICU resource handling, adjacent ICU wrappers, data build configuration, and their tests. No console, native Windows, or title behavior was verified. The description’s test results and integration claims remain author-reported. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/README.md`, targeted ranges of `review/diff.patch`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `ResourceBundle.hpp`, `ResourceBundleBackend.cpp`, `ResourceBundle.cmake`, `tests/ResourceBundleBehavior.cpp`, `BreakIterator.cpp`, `DateTimePatternGenerator.cpp`, `NumberingSystem.cpp`, `Configuration.cpp`, `Data.cpp`, and targeted changed CMake/test ranges. The full contents of other changed files were not read. No excluded-file inventory was available in the prepared review folder. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 08:15:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:15:04Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete: I found a concrete edge case in the date-pattern output handling, and most changed files were not read.

What I ran

Reviewed head 66d50e34b6d0eb30dcd4e05e4c2ce0a62bce1a35 against the prepared diff. No tests or build checks were run.

Results

Check Result Note
Source review not run Sampled implementation files only
Tests and build not run No commands run

Findings

Blocking

None identified in the files read.

Non-blocking

  • core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp:96: when output is null and capacity is positive, this path allocates a temporary output buffer, then can attempt to copy results to the null guest pointer. Reject this argument combination with the API’s expected error status before generating output.

Sources

Not verified

The review bundle description, commits, README, and the beginning of the manifest were read. I read selected portions of diff.patch and the complete source for ResourceBundle.cpp, ResourceBundleBackend.cpp, NumberingSystem.cpp, NumberingSystemBackend.cpp, DateTimePatternGenerator.cpp, and Configuration.cpp. The bundle lists 80 changed files; most changed lines, tests, build configuration, and documentation were not read. No excluded-file listing was available in the bundle tools.

To get this to a good state

Nothing is required. Optional: reject a null output pointer with positive capacity as described above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989463349 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-5989463349). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T08:15:04Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete: I found a concrete edge case in the date-pattern output handling, and most changed files were not read. ## What I ran Reviewed head `66d50e34b6d0eb30dcd4e05e4c2ce0a62bce1a35` against the prepared diff. No tests or build checks were run. ## Results | Check | Result | Note | |---|---|---| | Source review | not run | Sampled implementation files only | | Tests and build | not run | No commands run | ## Findings ### Blocking None identified in the files read. ### Non-blocking - `core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp:96`: when `output` is null and `capacity` is positive, this path allocates a temporary output buffer, then can attempt to copy results to the null guest pointer. Reject this argument combination with the API’s expected error status before generating output. ## Sources - [Date-time pattern generator at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/66d50e34b6d0eb30dcd4e05e4c2ce0a62bce1a35/core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp#L88-L114) ## Not verified The review bundle description, commits, README, and the beginning of the manifest were read. I read selected portions of `diff.patch` and the complete source for `ResourceBundle.cpp`, `ResourceBundleBackend.cpp`, `NumberingSystem.cpp`, `NumberingSystemBackend.cpp`, `DateTimePatternGenerator.cpp`, and `Configuration.cpp`. The bundle lists 80 changed files; most changed lines, tests, build configuration, and documentation were not read. No excluded-file listing was available in the bundle tools. ## To get this to a good state Nothing is required. Optional: reject a null output pointer with positive capacity as described above.
MarcZX10 commented 2026-11-21 09:44:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:44:18Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

  • Read the prepared diff and changed-file manifest for head fd6f8c6d4da8e8acff0695c862e8b31375457dac.
  • Read the resource-bundle implementation, backend, build integration and focused behavior/NID tests through repo_read.py.
  • No build or tests were run; the test results in the description are author-reported.

Results

Check Result Note
Diff and manifest review passed Changed files are included
Focused source review passed Resource readers and tests inspected
Build and tests not run Reported results were not rerun

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:244 leaves closed token entries in the process-wide Handles map, with a null owner. The description says token identity storage persists until teardown, so this appears intentional, but the map grows for every opened bundle over the process lifetime. Consider tracking this growth or documenting an expected bound for long-running callers.

Not verified

  • No tests or build were run in this review. Linux and MinGW/Wine results in description.md are author-reported.
  • Native Windows, console ABI/data parity, external package paths, and overlapping output pointers remain unverified as documented.
  • Read the prepared review documents and all changed files marked included in manifest.json; no changed file was excluded from that manifest.

To get this to a good state

Nothing is required. Optional: document or measure the expected lifetime token growth for long-running processes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004454799 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6004454799). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:44:18Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran - Read the prepared diff and changed-file manifest for head `fd6f8c6d4da8e8acff0695c862e8b31375457dac`. - Read the resource-bundle implementation, backend, build integration and focused behavior/NID tests through `repo_read.py`. - No build or tests were run; the test results in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Diff and manifest review | passed | Changed files are included | | Focused source review | passed | Resource readers and tests inspected | | Build and tests | not run | Reported results were not rerun | ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:244` leaves closed token entries in the process-wide `Handles` map, with a null owner. The description says token identity storage persists until teardown, so this appears intentional, but the map grows for every opened bundle over the process lifetime. Consider tracking this growth or documenting an expected bound for long-running callers. ## Not verified - No tests or build were run in this review. Linux and MinGW/Wine results in `description.md` are author-reported. - Native Windows, console ABI/data parity, external package paths, and overlapping output pointers remain unverified as documented. - Read the prepared review documents and all changed files marked included in `manifest.json`; no changed file was excluded from that manifest. ## To get this to a good state Nothing is required. Optional: document or measure the expected lifetime token growth for long-running processes.
MarcZX10 commented 2026-11-22 09:48:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:48:59Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: fix UTF-8 preflight handling for strings whose encoded byte length differs from their UTF-16 unit count.

What I ran

Reviewed head 2f6500a7c05ac831d46fbead6dae76a9891f3910. Read the prepared description, commit list, diff, manifest, and targeted source and test ranges through repo_read.py. No build or tests were run in this review.

Results

Check Result Note
Source review failed UTF-8 preflight differs from ICU behavior
Tests not run Author-reported results only

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceUtf8.cpp:2243: OwnedUtf8 treats capacity below the UTF-16 unit count as preflight and passes a null destination to u_strToUTF8. ICU’s preflight threshold is the encoded UTF-8 byte count, which may exceed the UTF-16 unit count. For a string containing multibyte characters, a capacity can therefore be smaller than the UTF-8 output but at least the UTF-16 count; this path attempts a partial conversion instead of returning the byte count with U_BUFFER_OVERFLOW_ERROR and leaving the destination untouched. Compute the required UTF-8 length before deciding whether to convert into the destination, and cover that capacity boundary in the oracle comparison.

Non-blocking

None.

Not verified

No checks were executed. Review was limited to the prepared diff and the following read files: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, cmake/IcuData.cmake, cmake/icu-host/CMakeLists.txt, core/libs/prx/libSceIcu/CMakeLists.txt, core/libs/prx/libSceIcu/BreakIterator.cpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/ResourceBundleBackend.cpp, core/libs/prx/libSceIcu/ResourceUtf8.cpp, and core/libs/prx/libSceIcu/tests/ResourceBundleBehavior.cpp. The manifest lists 64 changed files, all marked included; the other changed files were not read. No exclusions were reported in the manifest.

To get this to a good state

Correct the owned UTF-8 preflight decision and add a test using a non-ASCII fixture at a capacity between its UTF-16 unit count and UTF-8 byte count. Rerun the resource bundle oracle comparisons on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011566192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6011566192). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T09:48:59Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: fix UTF-8 preflight handling for strings whose encoded byte length differs from their UTF-16 unit count. ## What I ran Reviewed head `2f6500a7c05ac831d46fbead6dae76a9891f3910`. Read the prepared description, commit list, diff, manifest, and targeted source and test ranges through `repo_read.py`. No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | UTF-8 preflight differs from ICU behavior | | Tests | not run | Author-reported results only | ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceUtf8.cpp:2243`: `OwnedUtf8` treats capacity below the UTF-16 unit count as preflight and passes a null destination to `u_strToUTF8`. ICU’s preflight threshold is the encoded UTF-8 byte count, which may exceed the UTF-16 unit count. For a string containing multibyte characters, a capacity can therefore be smaller than the UTF-8 output but at least the UTF-16 count; this path attempts a partial conversion instead of returning the byte count with `U_BUFFER_OVERFLOW_ERROR` and leaving the destination untouched. Compute the required UTF-8 length before deciding whether to convert into the destination, and cover that capacity boundary in the oracle comparison. ### Non-blocking None. ## Not verified No checks were executed. Review was limited to the prepared diff and the following read files: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `cmake/IcuData.cmake`, `cmake/icu-host/CMakeLists.txt`, `core/libs/prx/libSceIcu/CMakeLists.txt`, `core/libs/prx/libSceIcu/BreakIterator.cpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/ResourceBundleBackend.cpp`, `core/libs/prx/libSceIcu/ResourceUtf8.cpp`, and `core/libs/prx/libSceIcu/tests/ResourceBundleBehavior.cpp`. The manifest lists 64 changed files, all marked included; the other changed files were not read. No exclusions were reported in the manifest. ## To get this to a good state Correct the owned UTF-8 preflight decision and add a test using a non-ASCII fixture at a capacity between its UTF-16 unit count and UTF-8 byte count. Rerun the resource bundle oracle comparisons on the updated head.
MarcZX10 commented 2026-11-22 20:39:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T20:39:59Z.

Review: COMMENTED


Reviewed — comments

This review is incomplete because only 12 of the changed files were inspected; no verified blocking defect was found in those files.

What I ran

Reviewed head 15fe4478c99b6a6207e8191bc214a938819fa1db. No commands or tests were run. The test results in the PR description are author-reported, not independently verified.

Results

Check Result Note
Targeted source review passed No defect verified in inspected code
Tests not run Reported results not independently checked
Full changed-file review not run 12 changed files inspected

Negative control

Not run.

Findings

Blocking

None verified in the inspected files.

Non-blocking

None.

Sources

Reviewed the prepared diff and pinned-head versions of cmake/Icu.cmake, cmake/icu-host/CMakeLists.txt, core/libs/prx/libSceIcu/CMakeLists.txt, core/libs/prx/libSceIcu/BreakIterator.cpp, core/libs/prx/libSceIcu/Enumeration.cpp, core/libs/prx/libSceIcu/ResourceBundle.cmake, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/ResourceBundle.hpp, core/libs/prx/libSceIcu/ResourceBundleBackend.cpp, core/libs/prx/libSceIcu/ResourceBundleBackend.hpp, core/libs/prx/libSceIcu/ResourceUtf8.cpp, and core/libs/prx/libSceIcu/tests/ResourceBundleBehavior.cpp. The file listing showed the changed files as included; no excluded files were listed.

Not verified

The remaining changed files and hunks were not inspected, so their behavior, tests, build effects, and the description's reported results were not verified. No native Windows, console, or merged-preview checks were run.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6014423327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6014423327). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T20:39:59Z. **Review:** COMMENTED --- # Reviewed — comments This review is incomplete because only 12 of the changed files were inspected; no verified blocking defect was found in those files. ## What I ran Reviewed head `15fe4478c99b6a6207e8191bc214a938819fa1db`. No commands or tests were run. The test results in the PR description are author-reported, not independently verified. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | No defect verified in inspected code | | Tests | not run | Reported results not independently checked | | Full changed-file review | not run | 12 changed files inspected | ## Negative control Not run. ## Findings ### Blocking None verified in the inspected files. ### Non-blocking None. ## Sources Reviewed the prepared diff and pinned-head versions of `cmake/Icu.cmake`, `cmake/icu-host/CMakeLists.txt`, `core/libs/prx/libSceIcu/CMakeLists.txt`, `core/libs/prx/libSceIcu/BreakIterator.cpp`, `core/libs/prx/libSceIcu/Enumeration.cpp`, `core/libs/prx/libSceIcu/ResourceBundle.cmake`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/ResourceBundle.hpp`, `core/libs/prx/libSceIcu/ResourceBundleBackend.cpp`, `core/libs/prx/libSceIcu/ResourceBundleBackend.hpp`, `core/libs/prx/libSceIcu/ResourceUtf8.cpp`, and `core/libs/prx/libSceIcu/tests/ResourceBundleBehavior.cpp`. The file listing showed the changed files as included; no excluded files were listed. ## Not verified The remaining changed files and hunks were not inspected, so their behavior, tests, build effects, and the description's reported results were not verified. No native Windows, console, or merged-preview checks were run. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 12:02:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:02:30Z.

Review: COMMENTED


Reviewed — comments

This review inspected the resource bundle and UTF-8 paths; author-reported Linux and MinGW/Wine checks passed, but the review did not independently run them and did not read every changed file.

What I ran

Read the prepared diff and targeted source ranges at head 204400b4dcae45df2eb37265c94e05b9619fff20 using repo_read.py. No commands or tests were run. The author reports 130/130 CTests passing on Linux x86-64 and MinGW-w64 under Wine.

Results

Check Result Note
Targeted source review passed Resource and UTF-8 paths inspected
Reported CTests not run Results supplied by author
Full changed-file review not run 63 changed files in manifest

Findings

Blocking

None identified in the inspected code.

Non-blocking

None.

Not verified

This was not a complete review: I read the prepared description, commits, manifest, diff, and targeted ranges in ResourceBundle.cpp and ResourceUtf8.cpp. I did not read every changed file listed in the manifest or inspect excluded-file metadata. I did not run tests or verify console, native Windows, or title behavior.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6057236716 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6057236716). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T12:02:30Z. **Review:** COMMENTED --- # Reviewed — comments This review inspected the resource bundle and UTF-8 paths; author-reported Linux and MinGW/Wine checks passed, but the review did not independently run them and did not read every changed file. ## What I ran Read the prepared diff and targeted source ranges at head `204400b4dcae45df2eb37265c94e05b9619fff20` using `repo_read.py`. No commands or tests were run. The author reports 130/130 CTests passing on Linux x86-64 and MinGW-w64 under Wine. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | Resource and UTF-8 paths inspected | | Reported CTests | not run | Results supplied by author | | Full changed-file review | not run | 63 changed files in manifest | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking None. ## Not verified This was not a complete review: I read the prepared description, commits, manifest, diff, and targeted ranges in `ResourceBundle.cpp` and `ResourceUtf8.cpp`. I did not read every changed file listed in the manifest or inspect excluded-file metadata. I did not run tests or verify console, native Windows, or title behavior. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 19:46:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:46:49Z.

Review: COMMENTED


Open runs ReadName(name) unconditionally, which throws on null. A null locale is a documented request for the default when opening a normal bundle. Since the library already exposes the configured guest locale, can ures_open resolve it explicitly and exercise a null-locale open after a guest default change? The ures_openDirect path can continue to handle bundle names according to its own rules. Pinned ICU 78.1 resource open implementation

Source review at 204400b4dc. Trial integration onto 484e8e6b77 conflicts in Export.cpp, LegacyExports.cpp, LegacyExports.hpp, and RightToLeft.cpp.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6177240700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19670#pullrequestreview-6177240700). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T19:46:49Z. **Review:** COMMENTED --- `Open` runs `ReadName(name)` unconditionally, which throws on null. A null locale is a documented request for the default when opening a normal bundle. Since the library already exposes the configured guest locale, can `ures_open` resolve it explicitly and exercise a null-locale open after a guest default change? The `ures_openDirect` path can continue to handle bundle names according to its own rules. [Pinned ICU 78.1 resource open implementation](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/uresbund.cpp#L2710-L2728) Source review at `204400b4dc`. Trial integration onto `484e8e6b77` conflicts in `Export.cpp`, `LegacyExports.cpp`, `LegacyExports.hpp`, and `RightToLeft.cpp`. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/19670:upstream-pr/19670'
git switch 'upstream-pr/19670'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/19670'
git switch 'upstream-pr/19670'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19670'
git switch 'upstream-pr/19670'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19670'
git switch 'main'
git merge --squash 'upstream-pr/19670'
git switch 'main'
git merge --ff-only 'upstream-pr/19670'
git switch 'main'
git merge 'upstream-pr/19670'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19670
No description provided.