feat(libSceIcu): implement compatibility normalization #19413
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19413"
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 THEMANnt on 2026-11-13T08:52:37Z.
What
Build the pinned ICU compatibility data into the existing ICU common library and expose the NFKC, NFKD, NFKC casefold and FC_NFKC_Closure guest exports. The implementation uses the upstream normalizer and needs neither an external runtime file nor a new dependency.
Tested
Windows x64 (GCC 15.2.0 MinGW, Ninja, Release) on head
4aab85ea2d.guest_icu_normalization,guest_icu_properties, and all fiveguest_icu_default_locale_*cases each passed three consecutive runs. Conventions and whitespace checks passed.Windows (GCC 15.2.0 MinGW, Ninja, Release) on
ffedfcf6be. Passedguest_icu_normalizationandguest_icu_properties. The new coverage verifies instance lookup, compatibility decomposition and composition, removal of a default ignorable during casefold and a nonempty closure mapping. Conventions and whitespace checks passed. The overlap tool hit a GitHub API EOF. Exact export searches and comparison with the broad ICU PRs found no competing implementation of these exports.After rebasing onto main with the filtered-normalizer implementation,
guest_icu_normalizationandguest_socket_stream_optionsboth passed on Windows x64 (GCC 15.2, Ninja, Release). The two local resource blobs match the pinned ICU submodule's input files. The rebased branch preserves the filtered-normalizer code and the corrected export inventory count.The Windows job on the earlier head passed
guest_icu_normalizationand timed out inguest_ces_wideandguest_ces_wide_module. Rebased to include #19618, which reverts the CES change that caused the timeouts. All three tests passed locally on Windows (GCC 15.2, Ninja, Release) onae8da40cf5.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-13T09:08:33Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The generated compatibility data does not have a verified source in the pinned repository, so the new CMake configure step cannot read its declared inputs.
What I ran
Reviewed head
ffedfcf6be0202f641290c24ab28a922bccd3546and the supplied diff. No build or tests were run.repo_read.pywas used to inspect the changed lines and check the referenced ICU data directory.Results
Findings
Blocking
cmake/Icu.cmake:9— The configure step reads3rdparty/icu/icu4c/source/data/in/nfkc.nrmandnfkc_cf.nrm, but the pinned repository’s correspondingdata/indirectory contains no files. Thus CMake’sfile(READ ...)cannot generate the embedded common data, blocking configuration for this build. Include the required data files in the pinned ICU source or generate them from files that are present.Non-blocking
None.
Not verified
No build, tests, or console behavior were run. The author reports Windows GCC 15.2.0 tests, but these were not independently run. All changed files were read; no changed files were excluded.
To get this to a good state
Provide the two
.nrminputs at the paths used by CMake (or update generation to use available inputs), then rerun configuration and the reported normalization tests on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-13T22:31:00Z.
Review: APPROVED
Reviewed — looks good
The reviewed changes implement compatibility normalization using pinned ICU data; I found no verified blocking defect in the inspected code.
What I ran
Reviewed head
ae8da40cf5b3a52b3972e72572cbd52b7c18a94using the prepared review bundle and the pinned repository reader,repo_read.py. I did not run build or test commands; reported Windows test results are author-supplied.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build/test results, console behavior, and full contents of large export files were not independently verified. The manifest lists 11 changed files under
reviewed, all marked included; I read the changed code and relevant ranges, not the complete 9,925-lineLegacyExports.cppor complete export inventory files. No files were excluded by the prepared file listing.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T19:23:07Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review is complete at the available source level, with author-reported tests not rerun.
What I ran
Reviewed head
95f7c144a5089b32eff23a73438b26850f0ea9b0using the pinned repository readerrepo_read.py. No build or tests were run. The description reports successful Windows tests on earlier heads; those results were not independently verified here.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, tests, or console run was performed. The report's Windows test results refer to earlier heads, not the reviewed SHA.
files.jsonwas not available as a separate review document; the reader's file listing andmanifest.jsonindicate that all 11 changed files are included. The ICU data directory listing returned no files, so the two.nrminputs were not independently inspected. Repository files read:cmake/Icu.cmake,cmake/IcuNormalizationData.cpp.in,core/libs/prx/libSceIcu/Export.cpp,core/libs/prx/libSceIcu/Identified.hpp,core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/Normalization.cpp,core/libs/prx/libSceIcu/Normalization.hpp,core/libs/prx/libSceIcu/include/InventoryExports.hpp,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/tests/Normalization.cpp, anddocs/dev/debt/changes/feat-icu-compatibility-normalization.md. Prepared documents read:description.md,commits.md,manifest.json, anddiff.patch.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T06:17:05Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation and all changed files were reviewed at head
4aab85ea2d9753374529f8c4507f6fd2d7898a3a; no checks were run in this session, so a formal approval is not justified.What I ran
No commands or tests were run. I reviewed the prepared diff and targeted source context using
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and test results were not independently verified. The description reports Windows test runs on earlier heads; those results do not establish a run on this reviewed head. Console behavior is also unverified, as documented in the change.
Read:
cmake/Icu.cmake,cmake/IcuNormalizationData.cpp.in,core/libs/prx/libSceIcu/Export.cpp,core/libs/prx/libSceIcu/Identified.hpp,core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/Normalization.cpp,core/libs/prx/libSceIcu/Normalization.hpp,core/libs/prx/libSceIcu/include/InventoryExports.hpp,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/tests/Normalization.cpp, anddocs/dev/debt/changes/feat-icu-compatibility-normalization.md. All changed files listed in the manifest were included.review/files.jsonwas unavailable.To get this to a good state
Nothing is required. Optional: run the build and tests on this exact head.
Pull request closed