Repository navigation
feat(icu): report the UChars dictionary matcher type - #23028
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against b485c04878:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_icu_uchars_matcher_type_testsbuilt cleanly. - CTest (
guest_icu_uchars_matcher_type):1/1 Test #3847: guest_icu_uchars_matcher_type .... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass. - Code reading:
- Verified upstream ICU 68.2 dictionarydata.cpp implementation of UCharsDictionaryMatcher::getType() const returning TRIE_TYPE_UCHARS (1) without inspecting or dereferencing the receiver pointer
- Verified ABI signature std::int32_t APS5_VABI (const void*) in LegacyExports.hpp and LegacyExports.cpp matching C++ member function call convention on x86_64 SysV ABI / Windows ABI
- Verified technical debt fragment docs/dev/debt/changes/feat-icu-uchars-matcher-type.md correctly records functional gap regarding hardware verification and dictionary loading
- Verified test logic in core/libs/prx/libSceIcu/tests/UCharsMatcherType.cpp checks return value and ensures memory is not mutated across multiple receiver patterns
- Verified AGENTS.md rules compliance: no prohibited comments, conventional commit PR title, and proper CMakeLists test registration with unwind and path configurations
Looks Good To Me
Progress report (1f27e2a → 8619779)📈 System libraries: 47.83% (+0.0025%, +1 implemented function) ✅ 1 implemented
Changed libraries (implemented exports)
|
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The reviewed head is b485c04878131586c34165ab4902693463307417; the implementation and focused ABI/return-value test are consistent with the stated ICU behavior, but I could not run checks in this review environment.
What I ran
No commands or tests were run. I read the prepared diff and all six changed files at the pinned head; the manifest lists all six as included, with no excluded changed files.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | Changed implementation and test inspected |
| Focused test | not run | No command runner available |
| Hardware verification | not run | Console ABI and behavior remain unverified |
Negative control
Not run; I could not execute the focused test or alter the implementation under test.
Findings
Blocking
None.
Non-blocking
None.
Sources
The changed implementation returns the ICU UChars trie tag (1) without using its receiver (core/libs/prx/libSceIcu/LegacyExports.cpp:1246). The focused test checks the function pointer signature, return value, and receiver preservation (core/libs/prx/libSceIcu/tests/UCharsMatcherType.cpp:7). Implementation at the reviewed commit · Test at the reviewed commit
Not verified
No build or test execution, Windows behavior, PS5 hardware behavior, or game compatibility was verified. The author-reported Linux checks were not rerun. I read core/libs/prx/libSceIcu/CMakeLists.txt, core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp, core/libs/prx/libSceIcu/tests/UCharsMatcherType.cpp, docs/dev/debt/changes/feat-icu-uchars-matcher-type.md, and docs/dev/debt/changes/feat-icu-ulist.md; no changed files were excluded by the manifest.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
|
This passed review on b485c04, but it now conflicts with main in feat-icu-ulist.md. Please merge main into the branch and push; it goes back to the merge queue on the new head. |
# Conflicts: # docs/dev/debt/changes/feat-icu-ulist.md
|
No actionable comments were generated in the recent review. Walkthrough
Change: Feature Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation returns the documented ICU 68 UChars trie tag and the console ABI gap is recorded.
What I ran
Reviewed head 8619779625568ada3ad5dcf6c6048d861759d093. I read all six changed files and the prepared diff; no commands or tests were run. The author reports earlier Linux x86-64 checks, but says they were not rerun on this head.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Six changed files read |
| Runtime/build checks | not run | Prior results are author-reported |
Negative control
Not run; the changed behavior was not executed during this review.
Findings
Blocking
None.
Non-blocking
None.
Sources
The changed implementation returns 1 without accessing its receiver (core/libs/prx/libSceIcu/LegacyExports.cpp:1220-1223); the test checks the declared function type, return value, and receiver preservation (core/libs/prx/libSceIcu/tests/UCharsMatcherType.cpp:7-16). The test is registered under BUILD_TESTING (core/libs/prx/libSceIcu/CMakeLists.txt:356-365).
Not verified
No build or test execution, Windows validation, PS5 hardware verification, or game compatibility was performed. All files listed as changed in the manifest were read; no changed files were excluded.
To get this to a good state
Nothing is required.
What
Implement
icu_68::UCharsDictionaryMatcher::getType() const(libSceIcu NID6KsOlzLtoaE, named in #14016). The export accepts the implicit receiver and returns the 32-bitTRIE_TYPE_UCHARStag (1) without reading or modifying the object, matching ICU 68.2. It does not implement dictionary loading, matching, or the bytes matcher. Add a focused ABI/return-value/receiver-preservation test and record the hardware-verification gap.Tested
The submitted patch includes results from Linux x86-64 (GCC 14.2) on base
7f21ff3c8d: the old export threw; the patched export agreed with ICU 68.2 on three real UChars matcher objects. The upstream byte matcher returned0as a negative reference. The focused repository test and the adjacent resource test passed in the submitted checks.On the PR base, all six file changes were checked against the current source. The Linux runtime checks were not rerun on this base. No full CMake build, Windows, PS5 hardware or game test; no title compatibility claim.
Checklist
main; no other open PR implementing the export was found in overlap checksSummary by CodeRabbit