feat(libSceIcu): build ICU data from source and implement C break iteration #16971
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16971"
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 AlexWhitehouse on 2026-11-08T02:35:10Z.
What
Most of libSceIcu's remaining exports need ICU's data: break iteration, collation, locales, formatting, converters, time zones. #13578 builds ICU 78.1, the version firmware 13.42 ships, from the
3rdparty/icusubmodule, but without its data. This PR adds that data, built from source, and uses the C break-iterator API as its first consumer. Each data-dependent family can then be added as ordinary follow-up work. I proposed this split in discussion #11150, and everything else stays with the people already working on it.#13578 has merged, so this PR is now twenty-three commits on current main:
feat(libSceIcu): build filtered ICU data and wrap C break iterationfix(libSceIcu): serialize native ICU cleanup with allocator configurationfix(build): stop ignoring the tracked ICU data filterfix(build): accept CMake 3.20 in the ICU host-tool projecttest(libSceIcu): record reallocation sizes in the data test allocatordocs(build): document the Python 3 and cross-build requirements of ICU's datadocs(libSceIcu): record the data, break-iterator and allocator debt as a fragmentdocs(libSceIcu): leave the inventory entry to the locale-syntax fragmentfix(build): let the filtered ICU data package replace the embedded property datadocs(libSceIcu): leave the character property entry to the pending fragmentsdocs(libSceIcu): drop the data-registration debt now that main implements udata_set*test(libSceIcu): check ucnv_openStandardNames against the bundled alias datadocs(libSceIcu): update the debt entries that assumed no bundled ICU datadocs(libSceIcu): keep the source-built data entry under the length limitfix(libSceIcu): resolve a null break iterator locale to the module defaulttest(libSceIcu): check uloc_isRightToLeft against the bundled likely subtags datatest(icu): compare converter names from the guest and pinned ICU by valuetest(libSceIcu): check guest allocator reconfiguration after u_cleanuptest(libSceIcu): check supplemental-region inference against the bundled likely subtags datafix(build): keep ICU generator bytecode out of data inputs(by RavenCurseBurg)test(libSceIcu): use a locale without bundled data for the table fallback casefix(build): pass the ICU data builder paths without spacestest(libSceIcu): read the BCP 47 collation keyword by its ICU nameData, built from source at build time.
cmake/icu-hostbuilds ICU 78.1's own tools (genbrk,gendict,genrb,gencnval,icupkgandgenccode) for the build host, in a separate CMake project. The tools never go into a guest library, and the project also supports cross builds throughANYPS5_ICU_HOST_C/CXX_COMPILER.cmake/IcuData.cmakeruns ICU'sBUILDRULES.pythroughicutools.databuilderwith an additive data filter (cmake/IcuDataFilter.json).icupkgpacks the result andgenccodeturns it into the standardicudt78_datentry point linked into ICU'scommonlibrary.python -B, so importingdata/BUILDRULES.pydoes not write__pycache__into the globbed input tree and force a reconfigure on the next unchanged build (found and fixed by RavenCurseBurg).Exports. Thin
APS5_VABIwrappers over ICU 78.1 (guestUChar16-bit,UBool8-bit,UErrorCode32-bit).14 C break-iterator functions from
ubrk.cpp:ubrk_open,ubrk_close,ubrk_setText;ubrk_first,ubrk_last,ubrk_next,ubrk_previous,ubrk_current,ubrk_following,ubrk_preceding;ubrk_isBoundary,ubrk_getRuleStatus,ubrk_countAvailable,ubrk_getAvailable.As in ICU, the iterator keeps a pointer to the caller's text and doesn't copy it. A null
ubrk_openlocale becomes this library's default locale (uloc_getDefault), as in the other libSceIcu locale exports, instead of the host's; an incoming failure status skips that lookup.ubrk_getAvailablethrows for −1 and for an index equal to the count, because ICU 78.1 reads outside its locale array there; larger indexes return null, as in ICU.udata_setCommonDataandudata_setFileAccesswere in this PR until #23859 implemented them on main (Availability.cpp); this PR now uses those exports in its tests.u_setMemoryFunctionsandu_cleanup, which #12320 implemented on main by storing the callbacks without passing them to ICU. This PR changes only those two functions in #12320'sConfiguration.cpp: they keep its validation and state, and also forward to the native ICU 78.1 functions, so ICU's own allocations reach the guest's allocator through ABI thunks. A lock serializes the nativeu_cleanupandu_setMemoryFunctionscalls, because ICU'su_cleanupis not thread-safe and #12320's test calls it from several threads. These two weren't in my #11150 proposal; I added them because the break-iterator tests need allocation to go through the guest allocator.ubrk_closefrees a handle's allocations, andu_cleanupfrees ICU's shared caches.Not in this PR:
ubrk_setUText), rule-based creation, cloning and every other API family;Debt. All debt changes are in the fragment
docs/dev/debt/changes/feat-libsceicu-data-break-iterator.md, as main now requires. New entries record what's unverified: console data versus ICU 78.1's data and the filter's contents, the console ABI of each group, and macOS host tools. The 14ubrk_*exports replace main's throwing placeholders inExport.cppandInventoryExports.hpp(ubrk_setUTextstays one); as main does for other implemented exports, their rows leave the inventory table; the inventory entry itself is left to #18344's pending fragment, which drops its count. Only the clauses of the memory-function and cleanup entries that forwarding makes wrong are changed; the character-property entry is left to #21242's and #22036's pending fragments. Because the build now bundles real data, the clauses of #23859's, #24020's (uloc_openAvailableByType),ucol_countAvailable's,ucnv_getCanonicalName's anducnv_openAllNames' pending entries that said the data was missing are updated (the collator entry keeps its 0 and null, because the filter has nocolltree), andguest_icu_open_standard_names_reduced(#23421), which asserted the no-alias-data path, now checks the same inputs against the bundled aliases asguest_icu_open_standard_names_bundled. Likewiseguest_icu_right_to_leftexpected the 25 locales that need likely subtags to throw; with the bundledlangInfoit now checks their directions (for exampleur,yi,dv,iwandperright-to-left;und,rootand unknown languages left-to-right). #24274'sguest_icu_converter_aliaseslinks its own copy of ICU and compared the name pointers it and libSceIcu return, which matched only while both were null; with the bundled data each copy returns the same name from its own data, so it now compares the names by value, as its alias parity check already did.guest_icu_supplemental_regionexpectedulocimp_getRegionForSupplementalDatainference to throw unless the test registeredlangInfo.resitself; with the bundledlangInfoboth of its runs now expect the inferred regions its data run already checked (enandundtoUS,zh_HanttoTW,sr_CyrltoRS).guest_icu_locale_table_fallbackusedde_ATas a locale without its own bundle, but the bundled package keeps ade_ATshell, so the case now usesde_ZZ(reported by Divad27).guest_icu_display_keyword_value(#23931) read the keywordcoofde-DE-u-co-phonebk; with the bundledkeyTypeDataICU converts the tag to@collation=phonebook, so the case now readscollationand expectsphonebook.Tested
guest_icu_break_iterator: navigation in both directions,following/preceding/isBoundaryedge cases, word rule statuses, replacing the text,countAvailable/getAvailable, invalid-locale fallback, status in/out conventions, two handles used side by side, and a null locale following the guest default: with guest defaultel, a sentence iterator overΑβ; Γδ.breaks at 4 as withel(root does not), and withen_US, a word iterator overa.bgives one word as withen_US(en_US_POSIXgives three).guest_icu_break_unicode_0to_3: grapheme, word, line and sentence breaks over the Unicode 17GraphemeBreakTest.txt,WordBreakTest.txt,LineBreakTest.txtandSentenceBreakTest.txtthat ICU 78.1 ships, plus ICU's dictionary fixtures (Thai and CJK). That's 22,560 cases.guest_icu_data_registration: registering the source-built package through main'sudata_setCommonDataandudata_setFileAccessexports.guest_icu_break_allocator: every allocation through guest callbacks is freed byubrk_closeandu_cleanup(58 allocations, 58 frees); afteru_cleanupthe callbacks are no longer called, and a second allocator installed afterwards receives every allocation and gets all of them back at the nextu_cleanupwhile the first stays unused.icu_commonalso contains a small generated data package with the sameicudt78_datentry point. This PR removes it fromicu_common, because the filtered package already contains itsnfkc.nrm,nfkc_cf.nrm,uemoji.icuandulayout.icu. Without that change,libSceIculinks the 0x68-byte package instead of this 4.9 MB one, and six of the seven break and data tests abort;CMAKE_SYSTEM_NAME, logging wrappers aroundg++-15as target compilers) stops withoutANYPS5_ICU_HOST_*; with/usr/bin/gcc/g++as host compilers the host tools are built with those, the data step runs them, the target-compiledlibSceIcucontains the 0x4b7b78-byteicudt78_dat, and the break and data tests pass (details);CMake 3.21 or higher is required;guest_icu_configurationpasses 100 repeated runs; without the new lock it segfaulted within 200 runs;u_setMemoryFunctions,guest_icu_break_allocatorfails withnative ICU uses guest allocator;ubrk_open not implemented.windowsjob of Build run 46593448662, MinGW-w64 GCC 15.2.0): all 116 libSceIcu tests pass, including the break, Unicode, data-registration, allocator,open_standard_names_bundled,right_to_left,converter_aliases,supplemental_region,locale_table_fallbackanddisplay_keyword_valuetests, with 6294 of 6294 tests overall.04e7e45: with a space in both the checkout and the build directory, the parent commit failed in the data generator and this head produces the same 4,946,800-byte package; an external build directory whose relative path still contains a space stops at configure time; all 106 libSceIcu tests pass, andguest_icu_break_allocatorpassed three more runs.cf33bed:windows-execmode),icupkgandgenccodeall run;ubrk_nextcallpreviousfails atGraphemeBreakTest.txt:27; passing a null locale straight to ICU failsguest_icu_break_iteratorwithguest default locale: next: got 7, expected 4.uloc_openAvailableByTypeopens all three valid types (906, 53 and 959 locales) instead of returningU_MISSING_RESOURCE_ERROR, which is why #24020's clause changes.python3 tools/check_conventions.py: all checks passed againstorigin/main.python3 tools/pr_overlap.py: no other PR implements these exports or ICU data generation. Overlap is limited to shared files:cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt). Whichever merges first, the other rebases onto it. #24447, #23784 and #24335 only edit neighbouring lines (cmake/Icu.cmake, the right-to-left test, alibSceIcu.hppinclude).uprv_*allocation helpers) has merged; this PR keeps its helpers and reuses itsCurrentMemory(). #17629 implements the same helpers and edits the same file.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)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T06:30:31Z.
Review: COMMENTED
Reviewed — no blocking findings
The change adds source-built ICU data and C break iterator exports; this review found no verified blocking defect at head
c1785962ce5311fb03c031031579c5b161da8a7f.What I ran
Read the prepared description, commits, manifest, and diff, then inspected the changed ICU data build files, break iterator wrappers, allocator and cleanup code, and related tests at the pinned head. No build or tests were run; the reported test results are author supplied.
Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The remaining changed files were not read, including some tests, docs, and inventory/export context; the manifest lists all 17 changed files as included. No build, test, console, or platform behavior was independently verified. No files were excluded by the manifest’s included flag.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by IvanFogel on 2026-11-20T08:38:48Z.
Review: CHANGES_REQUESTED
The break iterator returns the wrong boundaries when the guest’s default locale differs from the host’s. I’m requesting a change to the null-locale path in
ubrk_open. The inline finding includes two small examples and a tested correction.I rebuilt
c1785962ce53on Linux x86-64 with GCC 16.2.1. All 84 guest ICU tests and the public-header check passed. With the correction applied privately, all eight focused break-iterator and data tests passed. The word and sentence probes also matched across three guest locales, including a control where the host and guest agreed. An independent MinGW-w64 build under Wine passed all 84 guest ICU tests and the public-header check.A merge into main at
e825fa1492also needs resolution incore/libs/prx/libSceIcu/CMakeLists.txtanddocs/dev/debt/changes/feat-libsceicu-availability-exports.md. The tests above used the submitted head.AI-assisted review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T23:38:35Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
bdbfcb2c98fd478917156081065a21acef672ec5. I read the prepared description, commit list, manifest, and diff, plus the full head text of the four source files noted below viarepo_read.py. I ran no build or tests.Results
Findings
Blocking
None.
Non-blocking
Not verified
The head text was read for
core/libs/prx/libSceIcu/BreakIterator.cpp,cmake/IcuData.cmake,cmake/icu-host/CMakeLists.txt, andcore/libs/prx/libSceIcu/Configuration.cpp. The prepared bundle lists all 22 changed files as included infiles/, but that directory was not available through the reader; therefore the remaining changed-file contents and the test implementations were not verified. Build behavior, tests, and console behavior were not verified.To get this to a good state
Nothing is required. Optional: run the stated Linux and Windows checks on this head and share their results.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:28:27Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
4ea7bcd330be825768670114329d7b7e840fb0abfrom the prepared bundle and pinned reader. No build or tests were run in this session.Results
Findings
Blocking
None.
Non-blocking
cf33bed, while the Linux results are for this head. Consider recording the Windows results for the reviewed head when available.Not verified
description.md,commits.md,manifest.json,diff.patch,cmake/IcuData.cmake,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/BreakIterator.hpp,core/libs/prx/libSceIcu/Configuration.cpp,core/libs/prx/libSceIcu/CMakeLists.txt(initial section),core/libs/prx/libSceIcu/tests/Data.cpp, andcore/libs/prx/libSceIcu/tests/Configuration.cpp(targeted range). All changed files were included in the prepared bundle; the full text of every changed file was not read.files.jsonwas not available through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T11:40:23Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
59fcfce40715eb322fc05f21e564f8ed452f9d46. Read the prepared description, commit list, diff, and selected repository sources throughrepo_read.py; no build or tests were run by me.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
The changed ICU host-tool and data-generation paths have reported Linux and Windows coverage, while macOS host-tool execution remains unverified in the PR description.
Not verified
The changed-file inventory contains 21 files. I read the prepared diff and targeted repository sources, including
cmake/Icu.cmake,cmake/IcuData.cmake,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/Configuration.cpp, andcore/libs/prx/libSceIcu/AvailableLocales.cpp; I did not read every changed file's full text. In particular, the new tests, remaining CMake host-tool source, and documentation/debt edits were not fully inspected.files.jsonwas not accessible through the reader. No independent build, test run, or console comparison was performed.To get this to a good state
Nothing is required. Consider adding macOS host-tool execution coverage when available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T08:48:45Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review, but one interoperability point needs clarification before relying on the allocator integration.
What I ran
Reviewed the prepared diff and repository files at head
f59b5fbe7fa2e279daee26c7621dd3f452775ac0. No commands or tests were run; the Linux and Windows results below are author-reported in the PR description.Results
Findings
Blocking
None.
Non-blocking
Configuration.cpp:129registersNativeAllocate,NativeReallocate, andNativeReleasewith native ICU before updatingMemory. Those thunks consult the current guest callbacks at invocation time, whileu_cleanupclearsMemoryafter native cleanup. The debt note states that reconfiguration and cleanup require no concurrent use or outstanding handles, but the public wrappers do not enforce or document that contract. Please confirm the intended compatibility with the existingu_setMemoryFunctionscallers and make the lifecycle requirement discoverable at the API boundary; the allocator test exercises one configuration and cleanup sequence, not reconfiguration or concurrent use.Not verified
diff.patch, plus full changed implementation filescore/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/Configuration.cpp, andcmake/IcuData.cmake. No changed files were excluded from the supplied diff; generated and excluded-by-rule file details were not independently inspected.To get this to a good state
Nothing is required. Optional point: document the allocator lifecycle contract at the API boundary and add coverage for reconfiguration/concurrent use if those are supported.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T10:23:46Z.
Review: COMMENTED
Reviewed — comments
The change adds source-built ICU data and C break-iterator wrappers; I reviewed the build integration, wrappers, allocator forwarding, and selected tests, but did not read every changed line.
What I ran
No commands were run. I inspected the prepared diff and targeted files through
repo_read.pyat headab382ee5829fb32606e421398f3f848d8ba2ab2c; no build or tests were run during this review.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The changed files listed in the review manifest are 23 files:
.gitignore,CONTRIBUTING.md,cmake/Icu.cmake,cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/BreakIterator.hpp,core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/Configuration.cpp,core/libs/prx/libSceIcu/Export.cpp,core/libs/prx/libSceIcu/include/InventoryExports.hpp,core/libs/prx/libSceIcu/libSceIcu.hpp,core/libs/prx/libSceIcu/tests/BreakIterator.cpp,core/libs/prx/libSceIcu/tests/Data.cpp,core/libs/prx/libSceIcu/tests/OpenStandardNames.cpp,core/libs/prx/libSceIcu/tests/RightToLeft.cpp,core/libs/tests/GuestIcuConverterAliases.cpp,docs/dev/BUILD.md, and five debt fragments underdocs/dev/debt/changes/(feat-icu-open-available-by-type.md,feat-icu-ucnv-get-canonical-name.md,feat-icu-ucnv-open-all-names.md,feat-libsceicu-availability-exports.md,feat-libsceicu-data-break-iterator.md, andfeat-libsceicu-ucol-available.md). The listed items total 24; this count discrepancy reflects that the manifest contents were not fully inspected.Read:
review/description.md,review/commits.md, the beginning and selected ranges ofreview/manifest.jsonandreview/diff.patch, plus the complete changed source text forcore/libs/prx/libSceIcu/Configuration.cpp,cmake/IcuData.cmake, andcmake/icu-host/CMakeLists.txt. Also readreview/README.md. Other changed files and portions of the diff were not read. Thefiles.jsonartifact was not available through the reader, so excluded files could not be confirmed.The author's reported Linux, Windows, mutation, and convention-check results were not independently verified. Console ABI and behavior, macOS host-tool execution, and cross-compilation were not verified.
To get this to a good state
Nothing is required. The comments above are optional; complete the changed-line review and run the relevant checks before treating this review as a formal merge recommendation.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T17:56:36Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected code shows a verified blocking defect; the host build and console behavior were not independently verified.
What I ran
Reviewed head
cff5301f3c6a427781a9ab939051f1ee8883d79fusing the prepared diff and reader. No build or tests were run.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Sources
Behavior and implementation reviewed in BreakIterator.cpp, Configuration.cpp, and IcuData.cmake.
Not verified
I inspected the prepared description, commit list, manifest, diff, and the full text of
BreakIterator.cpp,Configuration.cpp, andIcuData.cmake; I also inspected changed CMake sections and searched for the default-locale implementation. I did not read every changed file in full, including all tests and documentation, so this is not a complete file-by-file review. The review bundle’sfiles.jsonwas unavailable; the manifest lists all 24 changed files as included and shows no excluded entries. Reported Linux and Windows test results, cross-build behavior, and PS5 behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T03:57:03Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed implementation and build wiring support merging.
What I ran
Reviewed head
eddb65df5f420a855655f89271ffc617affb9e36againstmainusing the prepared diff andrepo_read.pytargeted reads. No commands or tests were run by me; the test results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
The reviewed source was the prepared diff and repository files at the pinned head. Read files:
description.md,commits.md,manifest.json,diff.patch,BreakIterator.cpp,Configuration.cpp,cmake/IcuData.cmake, andcore/libs/prx/libSceIcu/CMakeLists.txt. All changed files listed by the review folder were included; not every included file was read in full, andfiles.jsonwas unavailable through the reader.Not verified
Build and test claims were not run or independently confirmed. The complete text of other changed files and behavior outside the targeted code were not inspected.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:48:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because several changed files were not read, so this is a comment rather than an approval.
What I ran
Reviewed head
6248105ca45ed89f15ae64ea7d8e125ad244f751usingrepo_read.pyvia the pinned reader. No build or tests were run. The author-reported Linux and Windows results in the PR description were not independently verified.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The review bundle contains 25 changed files, all marked included in
manifest.json;files.jsonwas not available through the reader. Read:description.md,commits.md,manifest.json,diff.patch;cmake/IcuData.cmake,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.cpp, andcore/libs/prx/libSceIcu/Configuration.cpp. The included diff was inspected for build/test registration and selected test and debt changes, but the full text of the remaining changed files was not read. Build behavior, test results, console ABI/data behavior, and macOS host tools were not independently confirmed.To get this to a good state
Nothing is required. Optional: read the remaining changed files and run the project’s relevant build and tests before treating this review as complete.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T00:31:00Z.
Review: COMMENTED
Actionable comments posted: 1
df722752-a88d-470b-a137-547a60ba62f5Reviewing files that changed from the base of the PR and between
289b90f19candc3e7f4d90b..gitignoreCONTRIBUTING.mdcmake/Icu.cmakecmake/IcuData.cmakecmake/IcuDataFilter.jsoncmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/BreakIterator.hppcore/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/Configuration.cppcore/libs/prx/libSceIcu/Export.cppcore/libs/prx/libSceIcu/include/InventoryExports.hppcore/libs/prx/libSceIcu/libSceIcu.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Data.cppcore/libs/prx/libSceIcu/tests/LocaleTableFallback.cppcore/libs/prx/libSceIcu/tests/OpenStandardNames.cppcore/libs/prx/libSceIcu/tests/RightToLeft.cppcore/libs/prx/libSceIcu/tests/SupplementalRegion.cppcore/libs/tests/GuestIcuConverterAliases.cppdocs/dev/BUILD.mddocs/dev/debt/changes/feat-icu-open-available-by-type.mddocs/dev/debt/changes/feat-icu-ucnv-get-canonical-name.mddocs/dev/debt/changes/feat-icu-ucnv-open-all-names.mddocs/dev/debt/changes/feat-libsceicu-availability-exports.mddocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mddocs/dev/debt/changes/feat-libsceicu-ucol-available.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T00:39:35Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: review the memory callback forwarding with respect to allocator reconfiguration and cleanup.
What I ran
04e7e45a846d0631d06f1b72c8230373ad4e8420against the prepared diff and repository source at that head.review/README.md; none were excluded by the bundle. Also read targeted source context incmake/Icu.cmakeandcore/libs/prx/libSceIcu/CMakeLists.txt.Results
Findings
Blocking
None verified.
Non-blocking
core/libs/prx/libSceIcu/Configuration.cpp:126: The native allocator callbacks read the active guest allocator on every allocation and free. The mutex only serializesu_setMemoryFunctionsagainstu_cleanup; the exposed allocator configuration may therefore change while allocations created with an earlier callback/context remain live. Such allocations can be reallocated or freed through the newer callbacks/context. The debt fragment says allocator reconfiguration requires no outstanding handles, but that constraint is not enforced here. Preserve the allocator/context associated with each allocation until it is released, or otherwise prevent reconfiguration while allocations remain outstanding.Not verified
To get this to a good state
Nothing is required for the verdict. The allocator lifetime point above is optional feedback.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T06:52:48Z.
Review: APPROVED
Reviewed — looks good
The reviewed changes at
d86e64a5c8b49e84e5301083bbeb7983fe24e7deshow no verified blocking defects, and the implementation and reported Linux and Windows results support merging.What I ran
Reviewed the prepared diff and all 28 changed files listed under
reviewedinfiles.json, usingrepo_read.pyfor pinned source context. No build or tests were run in this review.Results
Negative control
Not run locally. The description reports mutation checks for break navigation and null-locale handling; those results were not independently verified.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
No local runtime checks, macOS host-tool execution, or console ABI and behavior comparison were performed. The description records console comparison as outstanding.
files.jsonlists 28 reviewed files and no excluded files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-01T06:58:00Z.
Review: COMMENTED
🏛️ Architecture findings (2)
Advisory architecture findings (2)
💬 Code review
db085cfd-c0b5-47a1-8896-2884b541df1dReviewing files that changed from the base of the PR and between
04e7e45a84andd86e64a5c8.core/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/libSceIcu.hppcore/libs/prx/libSceIcu/tests/DisplayKeywordValue.cppdocs/dev/BUILD.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:37:14Z.
Review: COMMENTED
The trial merge onto
c1601e56d5was clean. I checked that ICU’s host tools are built separately from the target library, that the data command depends on the filter and source inputs, and that break iteration forwards ICU status. Please retain the dictionary and locale-alias fixtures and show that a cross build runs the native tool binaries while linking data into the target library. Those exercise different build boundaries. I did not run the ICU data build locally.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.