feat(libSceIcu): implement the character name exports over ICU data #18208

Open
rocklouis055 wants to merge 29 commits from upstream-pr/18208 into main
rocklouis055 commented 2026-11-10 21:05:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rocklouis055 on 2026-11-10T21:05:09Z.


What

Implements the five libSceIcu character-name exports by forwarding them to ICU 78.1. It adds "unames": "include" to cmake/IcuDataFilter.json so that unames.icu (334 KiB) is built into the ICU data. This PR is stacked on #16971; the branch merges #16971's current head (ec69fdad70), and the PR's own changes are b043cabaf5 and e621f727dc. #13578 lists these exports as blocked on unames.icu; the slice was claimed in discussion #11150.

Export Behavior
u_charName Unicode, extended (<control-0000>) and alias names, including the algorithmic CJK and Hangul names; preflighting and the usual termination results
u_charFromName case-insensitive lookup per name choice; unknown names give 0xFFFF and U_ILLEGAL_CHAR_FOUND
u_enumCharNames calls the guest's UEnumCharNamesFn through a host trampoline and stops when it returns false
uprv_getMaxCharNameLength the longest name length
uprv_getCharNameCharacters calls the guest USetAdder's add through a trampoline, with the guest's own set pointer
  • ICU checks the name choice with nameChoice >= U_CHAR_NAME_CHOICE_COUNT, which lets a negative choice through when the enum is signed. The wrapper maps negative choices to U_ILLEGAL_ARGUMENT_ERROR on every compiler. The mutation check shows the clamp matters on Linux too: without it, -1 aborts the test.
  • ICU's own argument checks return U_ILLEGAL_ARGUMENT_ERROR for bad buffers, null names and a null callback, so these are forwarded rather than thrown. A null UErrorCode and a null adder throw std::invalid_argument.
  • Stubs are removed from Export.cpp/Identified.hpp and LegacyExports.cpp/.hpp. One debt entry is added next to the ISO comment entry.

Tested

Linux (GCC, Release):

  • The new guest_icu_character_names test passes. Its expected values come from UnicodeData and NameAliases: LATIN CAPITAL LETTER A, U+1F600, U+4E00 and U+AC01 (algorithmic), <control-0000> and <private use area-E000>, the U+01A2 alias, and the empty Unicode 1.0 name. It also covers overflow, exact-fit and preflight results, bad choices, null buffers, reverse lookup of each kind, enumeration with early stop and an empty range, the 83-character U+FBF9 name against uprv_getMaxCharNameLength, and the name character set.
  • All 37 guest_icu_* tests pass.
  • Windows: -fsyntax-only with zig x86_64-windows-gnu for both new files.
  • Mutation check: seven mutants of CharacterNames.cpp all make the test fail: no negative clamp, ignoring the visitor's stop result, the wrong choice passed to the visitor, a null visitor forwarded, the wrong set pointer passed to add, no null-adder check, and a fixed maximum length.

Merge notes: the stub removals are next to stubs that #16605 (Identified.hpp) and #14340/#14443 (LegacyExports) also touch, so each needs a one-line resolution. Nothing else conflicts with an open PR, including #18203.

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
  • 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: #16971
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5248893932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208). Originally posted by [rocklouis055](https://github.com/rocklouis055) on 2026-11-10T21:05:09Z. --- ### What Implements the five libSceIcu character-name exports by forwarding them to ICU 78.1. It adds `"unames": "include"` to `cmake/IcuDataFilter.json` so that `unames.icu` (334 KiB) is built into the ICU data. This PR is stacked on #16971; the branch merges #16971's current head (ec69fdad70), and the PR's own changes are b043cabaf5 and e621f727dc. #13578 lists these exports as blocked on `unames.icu`; the slice was claimed in [discussion #11150](https://github.com/boykopovar/AnyPS5/discussions/11150#discussioncomment-19528546). | Export | Behavior | |---|---| | `u_charName` | Unicode, extended (`<control-0000>`) and alias names, including the algorithmic CJK and Hangul names; preflighting and the usual termination results | | `u_charFromName` | case-insensitive lookup per name choice; unknown names give `0xFFFF` and `U_ILLEGAL_CHAR_FOUND` | | `u_enumCharNames` | calls the guest's `UEnumCharNamesFn` through a host trampoline and stops when it returns false | | `uprv_getMaxCharNameLength` | the longest name length | | `uprv_getCharNameCharacters` | calls the guest `USetAdder`'s `add` through a trampoline, with the guest's own `set` pointer | - ICU checks the name choice with `nameChoice >= U_CHAR_NAME_CHOICE_COUNT`, which lets a negative choice through when the enum is signed. The wrapper maps negative choices to `U_ILLEGAL_ARGUMENT_ERROR` on every compiler. The mutation check shows the clamp matters on Linux too: without it, `-1` aborts the test. - ICU's own argument checks return `U_ILLEGAL_ARGUMENT_ERROR` for bad buffers, null names and a null callback, so these are forwarded rather than thrown. A null `UErrorCode` and a null adder throw `std::invalid_argument`. - Stubs are removed from `Export.cpp`/`Identified.hpp` and `LegacyExports.cpp`/`.hpp`. One debt entry is added next to the ISO comment entry. ### Tested Linux (GCC, Release): - The new `guest_icu_character_names` test passes. Its expected values come from UnicodeData and NameAliases: `LATIN CAPITAL LETTER A`, U+1F600, U+4E00 and U+AC01 (algorithmic), `<control-0000>` and `<private use area-E000>`, the U+01A2 alias, and the empty Unicode 1.0 name. It also covers overflow, exact-fit and preflight results, bad choices, null buffers, reverse lookup of each kind, enumeration with early stop and an empty range, the 83-character U+FBF9 name against `uprv_getMaxCharNameLength`, and the name character set. - All 37 `guest_icu_*` tests pass. - Windows: `-fsyntax-only` with zig `x86_64-windows-gnu` for both new files. - Mutation check: seven mutants of `CharacterNames.cpp` all make the test fail: no negative clamp, ignoring the visitor's stop result, the wrong choice passed to the visitor, a null visitor forwarded, the wrong set pointer passed to `add`, no null-adder check, and a fixed maximum length. Merge notes: the stub removals are next to stubs that #16605 (`Identified.hpp`) and #14340/#14443 (`LegacyExports`) also touch, so each needs a one-line resolution. Nothing else conflicts with an open PR, including #18203. ### Checklist - [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) - [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: #16971 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-10 21:16:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-10T21:16:35Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The guest_icu_break_allocator assertion can miss a large caller-text copy made through the test allocator's realloc callback.

What I ran

PR #18208 head b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9; base d66e6aac01bdf52b7a0a97b255a4110e2efe03a3. The dependency/merge preview is not clean: #16971 and #18208 conflict with current main; the declared stack is #13578 → #16971 → #18208.

Environment: Linux x86_64, Debian glibc 2.36; Python 3.11.2; GCC 12.2.0; Git 2.39.5.

I read all 33 changed files at this head, split across build integration, exports/implementation, and tests/debt. I ran the exact-head no-build precheck and read the live GitHub checks:

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18208 --output-dir /tmp/anyps5-pr-precheck-18208
gh api repos/boykopovar/AnyPS5/commits/b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9/check-runs --jq '[.check_runs[] | {name,status,conclusion,head_sha}]'

Results

Check Result Note
Diff and conventions passed Both passed on the exact head and base.
Export audit passed Six lexical warnings were test helpers, not missing exports.
Test registration passed All six new C++ tests are registered in CMake.
Dependency and merge preview failed Conflict is in the declared stack through #16971.
GitHub checks passed Intake, conventions and labels passed; no build job ran.
Build and focused C++ tests not run Not run locally; the ICU submodule is not populated in this checkout.
Precheck output and mergeability evidence
Conclusion: checks failed

The stack report records: #13578 → #16971 → #18208; #13578 merges cleanly, while #16971 and #18208 conflict against base d66e6aac01bdf52b7a0a97b255a4110e2efe03a3. The declared #16971 head is included in #18208; the current #13578 head is not included in #16971.

The precheck also reported All conventions checks passed. and git diff --check produced no output.

Negative control

I did not run local tests or mutation controls. The PR description reports seven character-name mutants detected by guest_icu_character_names; I did not independently reproduce that result, and it does not exercise the allocator assertion below.

Findings

Blocking

In Data.cpp, Reallocate updates largest only when it delegates to Allocate for a null pointer. A non-null pointer can be grown to at least the 200,000-byte caller-text size without updating largest, so the assertion at line 84 can pass even if ICU copies the input through realloc. Track the requested size on every reallocation so this test detects the behavior it claims to rule out.

void* APS5_VABI Reallocate(const void* context, void* pointer, std::size_t size) {
    auto& memory = *static_cast<Memory*>(const_cast<void*>(context));
    if (size > memory.largest) memory.largest = size;
    if (!pointer) return Allocate(context, size);
    return std::realloc(pointer, size);
}

Non-blocking

UnicodeData.cpp records a bad start value but then uses it as a vector index. If u_enumCharTypes supplies a negative start, the test can invoke undefined behavior instead of reporting the mismatch. Validate the range and return before indexing.

The merge conflict is in the declared stack: #16971 currently conflicts with main, and #18208 includes that dependency head. Defer stack updates until #16971 is resolved; the current mergeability result does not establish a separate conflict in this PR's final change.

Sources

Not verified

  • I did not build ICU or run guest_icu_break_allocator or guest_icu_unicode_data; the ICU submodule is not populated in this checkout. The author-reported Linux test results were not independently reproduced.
  • No Windows, macOS, GPU or console run was performed.
  • The hosted snapshot had only the three passing policy checks above; it provides no build or C++ runtime evidence.

To get this to a good state

Update the allocator's size accounting and guard invalid enumeration ranges. Then run guest_icu_break_allocator and guest_icu_unicode_data on the new head. Resolve the declared stack after #16971 is updated; I will re-check the same source checks and current mergeability on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5849573113 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-5849573113). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-10T21:16:35Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The `guest_icu_break_allocator` assertion can miss a large caller-text copy made through the test allocator's `realloc` callback. ## What I ran PR #18208 head `b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9`; base `d66e6aac01bdf52b7a0a97b255a4110e2efe03a3`. The dependency/merge preview is not clean: #16971 and #18208 conflict with current `main`; the declared stack is #13578 → #16971 → #18208. Environment: Linux x86_64, Debian glibc 2.36; Python 3.11.2; GCC 12.2.0; Git 2.39.5. I read all 33 changed files at this head, split across build integration, exports/implementation, and tests/debt. I ran the exact-head no-build precheck and read the live GitHub checks: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18208 --output-dir /tmp/anyps5-pr-precheck-18208 gh api repos/boykopovar/AnyPS5/commits/b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9/check-runs --jq '[.check_runs[] | {name,status,conclusion,head_sha}]' ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Both passed on the exact head and base. | | Export audit | passed | Six lexical warnings were test helpers, not missing exports. | | Test registration | passed | All six new C++ tests are registered in CMake. | | Dependency and merge preview | failed | Conflict is in the declared stack through #16971. | | GitHub checks | passed | Intake, conventions and labels passed; no build job ran. | | Build and focused C++ tests | not run | Not run locally; the ICU submodule is not populated in this checkout. | <details> <summary>Precheck output and mergeability evidence</summary> ```text Conclusion: checks failed ``` The stack report records: `#13578 → #16971 → #18208`; #13578 merges cleanly, while #16971 and #18208 conflict against base `d66e6aac01bdf52b7a0a97b255a4110e2efe03a3`. The declared #16971 head is included in #18208; the current #13578 head is not included in #16971. The precheck also reported `All conventions checks passed.` and `git diff --check` produced no output. </details> ## Negative control I did not run local tests or mutation controls. The PR description reports seven character-name mutants detected by `guest_icu_character_names`; I did not independently reproduce that result, and it does not exercise the allocator assertion below. ## Findings ### Blocking In `Data.cpp`, `Reallocate` updates `largest` only when it delegates to `Allocate` for a null pointer. A non-null pointer can be grown to at least the 200,000-byte caller-text size without updating `largest`, so the assertion at line 84 can pass even if ICU copies the input through `realloc`. Track the requested size on every reallocation so this test detects the behavior it claims to rule out. ```suggestion void* APS5_VABI Reallocate(const void* context, void* pointer, std::size_t size) { auto& memory = *static_cast<Memory*>(const_cast<void*>(context)); if (size > memory.largest) memory.largest = size; if (!pointer) return Allocate(context, size); return std::realloc(pointer, size); } ``` ### Non-blocking `UnicodeData.cpp` records a bad `start` value but then uses it as a vector index. If `u_enumCharTypes` supplies a negative start, the test can invoke undefined behavior instead of reporting the mismatch. Validate the range and return before indexing. The merge conflict is in the declared stack: #16971 currently conflicts with `main`, and #18208 includes that dependency head. Defer stack updates until #16971 is resolved; the current mergeability result does not establish a separate conflict in this PR's final change. ## Sources - [`Data.cpp` allocator callback and large-buffer assertion](https://github.com/boykopovar/AnyPS5/blob/b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9/core/libs/prx/libSceIcu/tests/Data.cpp#L35-L38) - [`UnicodeData.cpp` range callback](https://github.com/boykopovar/AnyPS5/blob/b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9/core/libs/prx/libSceIcu/tests/UnicodeData.cpp#L128-L134) - [CMake registration for the affected ICU tests](https://github.com/boykopovar/AnyPS5/blob/b043cabaf5f97b88ebbdcbc1033a9a59f67ce6c9/core/libs/prx/libSceIcu/CMakeLists.txt#L341-L395) ## Not verified - I did not build ICU or run `guest_icu_break_allocator` or `guest_icu_unicode_data`; the ICU submodule is not populated in this checkout. The author-reported Linux test results were not independently reproduced. - No Windows, macOS, GPU or console run was performed. - The hosted snapshot had only the three passing policy checks above; it provides no build or C++ runtime evidence. ## To get this to a good state Update the allocator's size accounting and guard invalid enumeration ranges. Then run `guest_icu_break_allocator` and `guest_icu_unicode_data` on the new head. Resolve the declared stack after #16971 is updated; I will re-check the same source checks and current mergeability on the new head.
MarcZX10 commented 2026-11-14 03:03:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T03:03:22Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the remaining verification limits are listed below.

What I ran

Reviewed head b3753a44eb71c84c94f368336e04195360585ce3 against the prepared diff. I read the PR description, commit list, diff, manifest, and the full text of CharacterNames.cpp, Configuration.cpp, Data.cpp, BreakIterator.cpp, and the libSceIcu CMake file, plus targeted export and macro context. I did not run commands or tests; repo_read.py was available only through reader tools.

Results

Check Result Note
Character-name wrappers passed Status and callback forwarding inspected
Changed-file coverage not run No included files were excluded by the manifest
Tests not run Author-reported runs were not independently verified

Negative control

Not run; no local test runner was available.

Findings

Blocking

None found in the inspected implementation.

Non-blocking

None.

Sources

Behavior claims are based on the prepared diff and the pinned-head source read through repo_read.py.

Not verified

I did not read every changed file or run the reported Linux, Windows, or mutation checks. The manifest marks all changed files as included; the directly inspected changed files were core/libs/prx/libSceIcu/CharacterNames.cpp, core/libs/prx/libSceIcu/Configuration.cpp, core/libs/prx/libSceIcu/Data.cpp, core/libs/prx/libSceIcu/BreakIterator.cpp, and core/libs/prx/libSceIcu/CMakeLists.txt. Remaining changed-file contents were not read. Console ABI and data parity remain author-documented as unverified.

To get this to a good state

Nothing is required. Optional: independently run the reported test suite and verify behavior on console hardware.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901135130 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-5901135130). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T03:03:22Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the remaining verification limits are listed below. ## What I ran Reviewed head `b3753a44eb71c84c94f368336e04195360585ce3` against the prepared diff. I read the PR description, commit list, diff, manifest, and the full text of `CharacterNames.cpp`, `Configuration.cpp`, `Data.cpp`, `BreakIterator.cpp`, and the libSceIcu CMake file, plus targeted export and macro context. I did not run commands or tests; `repo_read.py` was available only through reader tools. ## Results | Check | Result | Note | |---|---|---| | Character-name wrappers | passed | Status and callback forwarding inspected | | Changed-file coverage | not run | No included files were excluded by the manifest | | Tests | not run | Author-reported runs were not independently verified | ## Negative control Not run; no local test runner was available. ## Findings ### Blocking None found in the inspected implementation. ### Non-blocking None. ## Sources Behavior claims are based on the prepared diff and the pinned-head source read through `repo_read.py`. ## Not verified I did not read every changed file or run the reported Linux, Windows, or mutation checks. The manifest marks all changed files as included; the directly inspected changed files were `core/libs/prx/libSceIcu/CharacterNames.cpp`, `core/libs/prx/libSceIcu/Configuration.cpp`, `core/libs/prx/libSceIcu/Data.cpp`, `core/libs/prx/libSceIcu/BreakIterator.cpp`, and `core/libs/prx/libSceIcu/CMakeLists.txt`. Remaining changed-file contents were not read. Console ABI and data parity remain author-documented as unverified. ## To get this to a good state Nothing is required. Optional: independently run the reported test suite and verify behavior on console hardware.
MarcZX10 commented 2026-11-16 07:22:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T07:22:13Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing in the inspected code blocks merge; native data build integration and character name forwarding appear consistent with the stated goal.

What I ran

Reviewed head 52ca84cc4ffd486343bac8d25076458ed4fef246 using the prepared diff and pinned repository reader repo_read.py. No build or tests were run by this review.

Results

Check Result Note
Diff and changed-file inventory passed Prepared bundle inspected
Character name wrapper paths passed Targeted source and test read
Build and tests not run Reported runs are author supplied

Findings

Blocking

None identified in the inspected code.

Non-blocking

None.

Not verified

I read the review description, commits, manifest, the full prepared diff, and the changed source CharacterNames.cpp and CharacterNames.hpp, plus its character names test content in the diff. The manifest lists 23 changed files, all included in the prepared bundle; I did not read every changed file's full text or all touched functions. Build integration, break iterator and data registration behavior, platform builds, and console ABI/behavior remain unverified. Linux tests and Windows syntax-only checks in the description are author reported, not run in this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5916343114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-5916343114). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T07:22:13Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing in the inspected code blocks merge; native data build integration and character name forwarding appear consistent with the stated goal. ## What I ran Reviewed head `52ca84cc4ffd486343bac8d25076458ed4fef246` using the prepared diff and pinned repository reader `repo_read.py`. No build or tests were run by this review. ## Results | Check | Result | Note | |---|---|---| | Diff and changed-file inventory | passed | Prepared bundle inspected | | Character name wrapper paths | passed | Targeted source and test read | | Build and tests | not run | Reported runs are author supplied | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking None. ## Not verified I read the review description, commits, manifest, the full prepared diff, and the changed source `CharacterNames.cpp` and `CharacterNames.hpp`, plus its character names test content in the diff. The manifest lists 23 changed files, all included in the prepared bundle; I did not read every changed file's full text or all touched functions. Build integration, break iterator and data registration behavior, platform builds, and console ABI/behavior remain unverified. Linux tests and Windows syntax-only checks in the description are author reported, not run in this review. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 13:25:02 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the implementation and tests support merging based on the source reviewed.

What I ran

Read the prepared diff and changed-line manifest for head 15291e5df43f1584438738e39d8b9bf62dc530a using repo_read.py. No tests were run. I read the description, commits, README, manifest, and diff; targeted source reading was incomplete.

Results

Check Result Note
Prepared diff review passed Description and diff inspected
Tests not run Author-reported results only
Changed-line coverage not run Not every changed line was read

Findings

Blocking

None identified in the portions reviewed.

Non-blocking

None.

Not verified

The review bundle lists 24 changed files. I did not read every changed line or verify all behavior claims, build configuration, or author-reported test results. In particular, source context beyond the prepared diff was not inspected, so this is not a complete review.

To get this to a good state

Complete the changed-line review and run the relevant checks before treating this as a full approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5957474952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-5957474952). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T13:25:02Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the implementation and tests support merging based on the source reviewed. ## What I ran Read the prepared diff and changed-line manifest for head `15291e5df43f1584438738e39d8b9bf62dc530a` using `repo_read.py`. No tests were run. I read the description, commits, README, manifest, and diff; targeted source reading was incomplete. ## Results | Check | Result | Note | |---|---|---| | Prepared diff review | passed | Description and diff inspected | | Tests | not run | Author-reported results only | | Changed-line coverage | not run | Not every changed line was read | ## Findings ### Blocking None identified in the portions reviewed. ### Non-blocking None. ## Not verified The review bundle lists 24 changed files. I did not read every changed line or verify all behavior claims, build configuration, or author-reported test results. In particular, source context beyond the prepared diff was not inspected, so this is not a complete review. ## To get this to a good state Complete the changed-line review and run the relevant checks before treating this as a full approval.
MarcZX10 commented 2026-11-19 09:43:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T09:43:58Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: preserve ICU’s status handling in udata_setFileAccess.

What I ran

Reviewed head 7d20a40afb53a9d541b87c592f9789c148e710ec. I read the prepared description, commit list, manifest, diff, and targeted source files through repo_read.py. I did not run build or test commands.

Results

Check Result Note
Source review failed Found a status-forwarding defect
Build and tests not run Results in the PR description are author-reported

Findings

Blocking

  • core/libs/prx/libSceIcu/Data.cpp:19-20 discards the caller’s UErrorCode* and always calls udata_setFileAccess_78 with a null status. This bypasses ICU’s failed-input behavior and prevents the wrapper from returning ICU’s status for invalid access values. Forward the guest status through a local UErrorCode, then copy it back, following the udata_setCommonData wrapper.

Non-blocking

None.

Not verified

  • I did not run the reported Linux tests, Windows syntax check, or mutation checks.
  • I did not verify console ABI or behavior, nor build the complete ICU data/toolchain changes.
  • Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceIcu/CharacterNames.cpp, core/libs/prx/libSceIcu/CharacterNames.hpp, core/libs/prx/libSceIcu/tests/CharacterNames.cpp, core/libs/prx/libSceIcu/Configuration.cpp, core/libs/prx/libSceIcu/Configuration.hpp, core/libs/prx/libSceIcu/Data.cpp, core/libs/prx/libSceIcu/Data.hpp, core/libs/prx/libSceIcu/libSceIcu.hpp, core/libs/prx/libSceIcu/tests/Data.cpp, and cmake/IcuData.cmake.
  • I did not read the other changed files listed in the manifest or any files excluded from the prepared diff.

To get this to a good state

Forward and preserve the status value in udata_setFileAccess, add coverage for an incoming failure and an invalid access value, then rerun the affected tests on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5972615079 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-5972615079). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T09:43:58Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: preserve ICU’s status handling in `udata_setFileAccess`. ## What I ran Reviewed head `7d20a40afb53a9d541b87c592f9789c148e710ec`. I read the prepared description, commit list, manifest, diff, and targeted source files through `repo_read.py`. I did not run build or test commands. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | Found a status-forwarding defect | | Build and tests | not run | Results in the PR description are author-reported | ## Findings ### Blocking - `core/libs/prx/libSceIcu/Data.cpp:19-20` discards the caller’s `UErrorCode*` and always calls `udata_setFileAccess_78` with a null status. This bypasses ICU’s failed-input behavior and prevents the wrapper from returning ICU’s status for invalid access values. Forward the guest status through a local `UErrorCode`, then copy it back, following the `udata_setCommonData` wrapper. ### Non-blocking None. ## Not verified - I did not run the reported Linux tests, Windows syntax check, or mutation checks. - I did not verify console ABI or behavior, nor build the complete ICU data/toolchain changes. - Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceIcu/CharacterNames.cpp`, `core/libs/prx/libSceIcu/CharacterNames.hpp`, `core/libs/prx/libSceIcu/tests/CharacterNames.cpp`, `core/libs/prx/libSceIcu/Configuration.cpp`, `core/libs/prx/libSceIcu/Configuration.hpp`, `core/libs/prx/libSceIcu/Data.cpp`, `core/libs/prx/libSceIcu/Data.hpp`, `core/libs/prx/libSceIcu/libSceIcu.hpp`, `core/libs/prx/libSceIcu/tests/Data.cpp`, and `cmake/IcuData.cmake`. - I did not read the other changed files listed in the manifest or any files excluded from the prepared diff. ## To get this to a good state Forward and preserve the status value in `udata_setFileAccess`, add coverage for an incoming failure and an invalid access value, then rerun the affected tests on the updated head.
ligmaSec commented 2026-12-03 20:26:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T20:26:27Z.

Review: COMMENTED


I compiled and ran the branch's standalone CharacterNames fixture on Linux with the pinned ICU 78.1 library and its unames.icu data. The name lookup, enumeration, early stop and set callback cases passed. The existing ICU package needed unames.icu added for this standalone run, matching the branch's filter. Could the refreshed integrated test also verify the package built by CMake provides that data without a separate registration step?

Source review at 7d20a40afb. The trial merge conflicts in the ICU CMake and export files.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6177877281 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18208#pullrequestreview-6177877281). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T20:26:27Z. **Review:** COMMENTED --- I compiled and ran the branch's standalone `CharacterNames` fixture on Linux with the pinned ICU 78.1 library and its `unames.icu` data. The name lookup, enumeration, early stop and set callback cases passed. The existing ICU package needed `unames.icu` added for this standalone run, matching the branch's filter. Could the refreshed integrated test also verify the package built by CMake provides that data without a separate registration step? Source review at `7d20a40afb`. The trial merge conflicts in the ICU CMake and export files. 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/18208:upstream-pr/18208'
git switch 'upstream-pr/18208'

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/18208'
git switch 'upstream-pr/18208'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/18208'
git switch 'upstream-pr/18208'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/18208'
git switch 'main'
git merge --squash 'upstream-pr/18208'
git switch 'main'
git merge --ff-only 'upstream-pr/18208'
git switch 'main'
git merge 'upstream-pr/18208'
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!18208
No description provided.