feat(libSceIcu): implement uloc_getDisplayKeywordValue #23931
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23931"
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 Nino4you on 2026-11-19T22:26:08Z.
What
Implement
uloc_getDisplayKeywordValueinlibSceIcuover pinned ICU 78.1 (locdispnames.cppandlocresdata.cppcompiled intoicu_common).LegacyExports.cppand declares the typed SysV C signature ininclude/LegacyExports.hpp.displayLocalethrough AnyPS5Icu::DefaultLocaleName(), preflights to bound host buffer allocation (preventing oversized allocations on hugedestCapacityvalues), matches ICU write/overflow semantics for bothcurrencyand general keywords, and validates all guest input, output, and status pointers throughGuestCopyIn_nid_no_patch/GuestCopyOut_nid_no_patchwhile preservingerrno.guest_icu_display_keyword_valueunit tests with a 3,402-case differential matrix againsticu_common, edge-case checks, and guest-memory protection tests.docs/dev/debt/changes/feat-icu-uloc-get-display-keyword-value.md.Tested
Linux x86-64 (Debian 12, GCC, Ninja Release,
BUILD_TESTING=ON), baseupstream/mainc8fb4b06a2:cmake --build build --target libSceIcu guest_icu_display_keyword_value_tests guest_icu_locale_core_tests --parallel: passed.ctest --test-dir build -R '^(guest_icu_display_keyword_value|guest_icu_locale_core|public_headers)$' --output-on-failure -V: 3/3 passed (public_headers,guest_icu_locale_core,guest_icu_display_keyword_value).python3 tools/debt_fold.py --check: passed.python3 tools/check_test_registration.py build: passed.python3 tools/check_conventions.py --base upstream/main: all conventions checks passed (0 errors, 0 warnings).python3 tools/guest_pointer_audit.py libSceIcu: 0 findings inDisplayKeywordValue.cpp.tools/pr_overlap.py --names uloc_getDisplayKeywordValue(open: none) andtools/pr_overlap.py --branch feat/icu-uloc-get-display-keyword-value: 0 overlapping exports or new files.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T22:29:16Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
97e4b7b7bf:tools/check_conventions.pypassed.guest_icu_display_keyword_value_testsbuilt cleanly.guest_icu_display_keyword_value):core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/DisplayKeywordValue.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T22:49:42Z.
Review: COMMENTED
Reviewed — no blocking findings
The wrapper’s checked guest-memory access and ICU status handling are supported by the code and tests reviewed; console ABI and behavior remain unverified.
What I ran
Head:
97e4b7b7bfa3c40c686437eeffb44dd31683be0a. I read the prepared diff and changed files throughrepo_read.py; I ran no commands or tests. The build and test results in the PR description are author-reported.Results
Negative control
Not run; no test execution environment was available.
Findings
Blocking
None.
Non-blocking
Sources
Not verified
Windows, console or title behavior, and the build, tests, and audit checks reported by the author were not run by this review. All seven changed files listed in the manifest were read; none were excluded.
To get this to a good state
Nothing is required. Optional: compare ABI and behavior on a console when available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:09:05Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
10c8ad0b1331f03cc0af4ff2273acc8200e67d28; no commands or tests were run. The reader interface provided read-only access.Results
Findings
Blocking
None.
Non-blocking
localeor emptykeyword. A console comparison for those cases would help confirm compatibility.Not verified
No local build or tests were run, and Windows, console, and title behavior were not verified. The PR description reports Linux build and test results; these were not run by this review. Read
cmake/Icu.cmake,core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/DisplayKeywordValue.cpp,core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/tests/DisplayKeywordValue.cpp, anddocs/dev/debt/changes/feat-icu-uloc-get-display-keyword-value.md. No changed files were excluded.To get this to a good state
Nothing is required. Optional: compare null-locale and empty-keyword behavior against ICU 68.2 on a console.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T02:31:36Z.
Review: COMMENTED
Architecture findings (2)
Advisory architecture findings (1)
cf53da42-706e-45c5-9eaf-17875389c0adReviewing files that changed from the base of the PR and between
5ed18b5d5aand3267bf5919.core/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/DisplayKeywordValue.cppcore/libs/prx/libSceIcu/LegacyExports.cppcore/libs/prx/libSceIcu/include/LegacyExports.hppcore/libs/prx/libSceIcu/tests/DisplayKeywordValue.cppdocs/dev/debt/changes/feat-icu-uloc-get-display-keyword-value.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-30T02:49:20Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change based on the source reviewed; the unrun platform and console checks leave behavior outside the Linux host environment unverified.
What I ran
Reviewed head
3267bf59193b150793b0ef8b4cf2a8f9ed109b79usingrepo_read.pyto inspect the prepared diff and source at that head. No commands or tests were run by me. The description reports Linux x86-64 build, test, and audit checks; those results were not independently reproduced.Results
Findings
Blocking
None found in the source reviewed.
Non-blocking
None.
Not verified
I read
core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/DisplayKeywordValue.cpp,core/libs/prx/libSceIcu/LegacyExports.cppdiff,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/tests/DisplayKeywordValue.cppdiff, anddocs/dev/debt/changes/feat-icu-uloc-get-display-keyword-value.md. The fullLegacyExports.cppand test source were excluded fromfiles/and only their changed diff hunks were read;files.jsonwas not available through the reader. Windows, console ABI and behavior, and title behavior were not verified. The reported tests and checks were not run by me.To get this to a good state
Nothing is required.