feat(icu): implement checked resource bundle readers #19670
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19670"
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-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_hasNextnow 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
fd7fe562ededand the converter-alias data and tests from #16971 atc1785962ce53. The 14 resource-bundle exports retain the refreshed #19635 prerequisite. The shared recovered-signatures header includes the resource header, which owns the singleures_closedeclaration. A merge preview against independent #20373 atbccc109957still reports adjacent changes inLegacyExports.cppandinclude/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
4541b2371af4046582def3fdbc57a621aa907e83is 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. 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
bec7132b18540519e5ebb8581b2d88c71b17400cmerges 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. 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
9c0d60cbfb6eand the complete ICU data prerequisite #16971 ateddb65df5f42. 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
4b5757ec203eI 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, 13 focused Linux CTests and 13 MinGW CTests under Wine passed.On
15fe4478c99bagainst main8ce96faee7d2, 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 preceding2f6500a7c05areturned the same pointer result, status, length and bytes as pinned ICU in each of 48 direct, keyed and indexed cases. Forhéllo 世界(8 UTF-16 units, 13 UTF-8 bytes), capacity 7 left the buffer untouched. Capacity 9 wrote the seven-byte prefixhélloand reported length 13 andU_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 conversionAfter the November 22 review, the file-access wrapper on
2f6500a7c05apasses 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 122 Linux and 122 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 revision974972ba2edd, 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. ReviewOn November 21, I updated
udata_setFileAccessinfd6f8c6d4da8on 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 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
66c8a539f81fwith main6f18d49a833eand the updated break-iterator prerequisite #16971 atbdbfcb2c98fd. 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
fbb65dada8a2includes 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 commit1451116384b8. The two conflicts were adjacent obsolete declarations and throwing placeholders foruhash_removeAllandures_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 withuhash_removeAll. Native Windows and a commercial title were outside this run.November 20 locale bounds at
6f8a3ab9f231, 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 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 NIDswHZwCpZVcGIandmCyTdtewGpkexactly once. The new guest registration case covers an inaccessible status pointer. The conventions and debt checks passed. I did not run this head on native Windows, on a console, or with a title.Refresh at
6e7ae4c0f9against 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 (105/105) and on MinGW-w64 under Wine (105/105) with zero skips. #16971 is included at54768514e6. Earlier test runs below are pinned to their respective commits.Earlier refresh at
f6affd9c34against 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 commit977b9163a4. 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 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:
bec7132b18540519e5ebb8581b2d88c71b17400c, 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 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, 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. 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
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
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
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
2da7f5fc6e6c491366cadf48c552cafe46a79476. 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: 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
049e0d6a420629ac7db77256987d083a563287b5built from source.6e750efafe464b52bafeeeb51cf4fd6f8d84d4c7differs from runtime-tested/reviewede36089427721892fc8c57d3c4df7fc9db46d21edonly in existing debt wording. Production, tests, headers and data scripts are byte-identical.97318ff8c3ca887b3b65e654a147c7687c5d4f74adds separate #19625 head617c139b045a460983d271d21686674520e44ed9and #19519 headf875fa2fd7cb1296256d50b8f456eefe99bbbb13; 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.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.Exact source pins, full Linux/Wine logs, actual-stub/NID 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-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
8a918a9801b6a3faac4816d13fad136ad9f5dbd9.Results
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 ofreview/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.
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
66d50e34b6d0eb30dcd4e05e4c2ce0a62bce1a35against the prepared diff. No tests or build checks were run.Results
Findings
Blocking
None identified in the files read.
Non-blocking
core/libs/prx/libSceIcu/DateTimePatternGenerator.cpp:96: whenoutputis null andcapacityis 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.patchand the complete source forResourceBundle.cpp,ResourceBundleBackend.cpp,NumberingSystem.cpp,NumberingSystemBackend.cpp,DateTimePatternGenerator.cpp, andConfiguration.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.
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
fd6f8c6d4da8e8acff0695c862e8b31375457dac.repo_read.py.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceIcu/ResourceBundle.cpp:244leaves closed token entries in the process-wideHandlesmap, 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
description.mdare author-reported.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.
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 throughrepo_read.py. No build or tests were run in this review.Results
Findings
Blocking
core/libs/prx/libSceIcu/ResourceUtf8.cpp:2243:OwnedUtf8treats capacity below the UTF-16 unit count as preflight and passes a null destination tou_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 withU_BUFFER_OVERFLOW_ERRORand 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, andcore/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.
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
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, andcore/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.
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
204400b4dcae45df2eb37265c94e05b9619fff20usingrepo_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
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.cppandResourceUtf8.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.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:46:49Z.
Review: COMMENTED
OpenrunsReadName(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, canures_openresolve it explicitly and exercise a null-locale open after a guest default change? Theures_openDirectpath can continue to handle bundle names according to its own rules. Pinned ICU 78.1 resource open implementationSource review at
204400b4dc. Trial integration onto484e8e6b77conflicts inExport.cpp,LegacyExports.cpp,LegacyExports.hpp, andRightToLeft.cpp.AI-assisted: yes.
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.