feat(libSceIcu): implement uloc_getLCID and uloc_getLocaleForLCID #20034

Merged
rudranshcoolhai-boop merged 3 commits from upstream-pr/20034 into main 2026-11-14 20:35:50 +00:00
rudranshcoolhai-boop commented 2026-11-14 12:42:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rudranshcoolhai-boop on 2026-11-14T12:42:29Z.


What

Implements uloc_getLCID (NID sijsfM-blKs) and uloc_getLocaleForLCID (NID qqDpxJnCHyo) in libSceIcu, the ICU 68 names in LegacyExports.cpp. Both were parameterless placeholders that threw through NotImplemented_nid_no_patch. Signatures are ICU's: uint32_t uloc_getLCID(const char* localeID) and int32_t uloc_getLocaleForLCID(uint32_t hostID, char* locale, int32_t capacity, UErrorCode* status).

Reference: ICU 78.1, the 3rdparty/icu submodule at 049e0d6a, uloc.cpp L2279-L2330:

  • uloc_getLCID returns 0 for a null or shorter-than-2 ID. Then it asks uprv_convertToLCIDPlatform, which returns 0 here (built with UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0, as the merged uprv_* exports are). Next it takes the language with ulocimp_getLanguage, which also turns 3-letter codes into 2-letter ones. If the ID has keywords, it keeps only collation. Last, it calls uprv_convertToLCID from locmap.cpp.
  • uloc_getLocaleForLCID is ICU's one-line forward to uprv_convertToPosix.
  • The exports call the submodule's own functions. They don't reimplement them, so the tables and parsing are exactly those that the merged uprv_convertToPosix/uprv_convertToLCID exports already use.
  • uloc_getLocaleForLCID calls this library's uprv_convertToPosix export, so the guards stay the same: a null status throws std::invalid_argument, a negative capacity throws, and a null buffer is accepted only for a zero-capacity preflight.

Version note: the NIDs are ICU 68 names. ICU 68.2 uloc.cpp L1985-L2054 has the same steps. The difference is that it builds the language and the "base name + collation keyword" in 157-byte (ULOC_FULLNAME_CAPACITY) stack buffers, so a longer locale ID can take a different path there. Its locmap.cpp table also differs in entries added since 68. I used 78.1 because the submodule is 78.1 and the merged uprv_convertTo* exports already use its table. Both gaps are written in the debt entry.

Changes:

  • core/libs/prx/libSceIcu/LocaleMap.cpp, LocaleMap.hpp: the two exports with their real signatures, next to the uprv_convertTo* exports. The placeholders are removed from LegacyExports.cpp and include/LegacyExports.hpp.
  • cmake/Icu.cmake: uloc.cpp and the sources it reaches (locid.cpp, loclikely*.cpp, uloc_tag.cpp, uresbund.cpp, …) were compiled into icu_common only on Windows. They are now compiled on every platform, and only wintz.cpp stays Windows-only. This is the same move #18344 makes (that PR has conflicted with main since before #18331).
  • core/libs/prx/libSceIcu/tests/LocaleMap.cpp (guest_icu_locale_map):
    • uloc_getLCID, 37 IDs plus 3 long ones:
      • null, "" and e give 0
      • plain, region and script forms: en, en_US, en_ZZ, zh_Hans_CN, zh_Hant_TW, sr_Latn_RS, sr_Cyrl_RS, ckb_Arab_IQ, en_US_POSIX, de__POSIX
      • IDs that give 0: en-US, EN_us, en_US.UTF-8, xx_YY, eng_USA, root, und_US, prs_AF, in_ID
      • language aliases: quz_PE/qu_PE, iw_IL
      • collation keywords: es_ES@collation=traditional, de_DE@collation=phonebook, de@collation=phonebook, zh_CN@collation=stroke
      • keywords that are ignored: PhoneBook (case), pinyin, currency, calendar, an empty value, a bare @, and collation after another keyword
      • 78.1's unbounded buffers: an 80-variant ID with and without a collation keyword, and a 200-character collation value
    • uloc_getLocaleForLCID:
      • 0x10407 gives de_DE@collation=phonebook (25), 0x0004 gives zh_Hans, and 0 gives root
      • exact capacity: an unterminated warning
      • small capacity: an overflow, with the prefix written
      • null preflight: length 5 and an overflow
      • an unknown LCID: illegal argument, buffer untouched
      • a failed status on entry: ICU still writes the locale and keeps the error
      • a fallback warning is kept
      • a not-terminated warning is cleared
      • a null status throws
    • Every expected value comes from the real ICU functions in the host's ICU 78.3 (/usr/lib/libicuuc.so.78.3). Its uloc.cpp, locmap.cpp, locid.cpp and uloc_tag.cpp are byte-identical to the 78.1 submodule.
  • docs/dev/debt/libSceIcu.md: the LCID mapping entry now covers the two exports and the ICU 68 buffer difference. The "Older callable exports" line names them among the implemented exports; its counts are unchanged, since names are not counts of stubs.

Tested

Arch Linux x86-64, Linux 7.2.15-arch1-1, GCC 16.2.1 20260810, Ninja Release, BUILD_TESTING=ON, head f939a0bf58 on main 0f4538fa02.

  • cmake --build build --target libSceIcu libharfbuzz plus every guest_icu_*_tests and guest_harfbuzz_*_tests target. libharfbuzz is included because it also links icu_common, which now has more sources on Linux.
  • ctest --test-dir build -R 'guest_icu|guest_harfbuzz|^public_headers|^conventions_|^debt_split|^tools_nid' -j8 --output-on-failure --no-tests=error: 217 of 217 passed. That covers all libSceIcu and libharfbuzz guest tests plus the public-header, convention, debt and NID checker tests.
  • ctest --test-dir build -R '^guest_icu_locale_map$' run 3 times: passed each time.
  • Differential check: a throwaway harness, not committed, linked against this branch's libSceIcu. It called the two exports and compared their output with a host program that calls the system ICU 78.3 uloc_getLCID/uloc_getLocaleForLCID:
    • 7,094 locale IDs: every gPosixIDmap name, its 3-letter, hyphen, upper-case, .codeset and keyword variants, and 1,950 IDs with @ keywords. 4,079 map to a nonzero LCID. All 7,094 match exactly.
    • 211,001 LCIDs (every value 0-0x10000, then 145,457 sampled values up to 0xFFFFFFFF), comparing the returned length, the status and the string. 28,691 succeed. All 211,001 match exactly.
  • Negative controls, each applied alone to LocaleMap.cpp, rebuilt and reverted. Every one failed guest_icu_locale_map:
    1. dropping all keywords, using the base name (en-US: got 0x409)
    2. taking the first two characters as the language (de_DE@currency=EUR;collation=phonebook: got 0x407)
    3. passing capacity - 1 to uprv_convertToPosix (exact capacity case)
    4. returning 0 early on a failed incoming status (failed-status case)
    5. clearing the incoming status (failed-status case)
    6. lowercasing the locale ID (en_US: got 9)
      After reverting, the test passes.
  • python3 tools/check_conventions.py --base origin/main: "All conventions checks passed." git diff --check origin/main: clean.
  • python3 tools/pr_overlap.py --names uloc_getLCID uloc_getLocaleForLCID: main stubs both, no open PR adds them. python3 tools/pr_overlap.py --branch feat/icu-uloc-lcid failed closed, because several open libSceIcu PRs no longer merge into main. I also fetched the heads of all 1,535 open PRs and searched each diff against its merge base for uloc_getLCID, uloc_getLocaleForLCID, sijsfM-blKs and qqDpxJnCHyo: no match.
  • Line overlaps:
    • #19413 replaces the stubdata.cpp line of cmake/Icu.cmake, the context line right above this PR's hunk.
    • #18344 makes the same if(WIN32) group move. #18208, #18210 and #19435 also touch cmake/Icu.cmake.
    • Many libSceIcu PRs change neighbouring lines in LegacyExports.cpp/.hpp and the "Older callable exports" debt line: #14144, #14340, #14443, #17297, #18208, #18344.
    • None implements these exports. Whichever merges second needs a rebase.

Not run: console, any title, Windows, macOS.

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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

— @rudranshcoolhai-boop

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5311340227 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20034). Originally posted by [rudranshcoolhai-boop](https://github.com/rudranshcoolhai-boop) on 2026-11-14T12:42:29Z. --- ### What Implements `uloc_getLCID` (NID `sijsfM-blKs`) and `uloc_getLocaleForLCID` (NID `qqDpxJnCHyo`) in libSceIcu, the ICU 68 names in `LegacyExports.cpp`. Both were parameterless placeholders that threw through `NotImplemented_nid_no_patch`. Signatures are ICU's: `uint32_t uloc_getLCID(const char* localeID)` and `int32_t uloc_getLocaleForLCID(uint32_t hostID, char* locale, int32_t capacity, UErrorCode* status)`. Reference: ICU 78.1, the `3rdparty/icu` submodule at `049e0d6a`, [`uloc.cpp` L2279-L2330](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/uloc.cpp#L2279-L2330): - `uloc_getLCID` returns 0 for a null or shorter-than-2 ID. Then it asks `uprv_convertToLCIDPlatform`, which returns 0 here (built with `UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0`, as the merged `uprv_*` exports are). Next it takes the language with `ulocimp_getLanguage`, which also turns 3-letter codes into 2-letter ones. If the ID has keywords, it keeps only `collation`. Last, it calls `uprv_convertToLCID` from [`locmap.cpp`](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/locmap.cpp). - `uloc_getLocaleForLCID` is ICU's one-line forward to `uprv_convertToPosix`. - The exports call the submodule's own functions. They don't reimplement them, so the tables and parsing are exactly those that the merged `uprv_convertToPosix`/`uprv_convertToLCID` exports already use. - `uloc_getLocaleForLCID` calls this library's `uprv_convertToPosix` export, so the guards stay the same: a null status throws `std::invalid_argument`, a negative capacity throws, and a null buffer is accepted only for a zero-capacity preflight. Version note: the NIDs are ICU 68 names. [ICU 68.2 `uloc.cpp` L1985-L2054](https://github.com/unicode-org/icu/blob/84e1f26ea77152936e70d53178a816dbfbf69989/icu4c/source/common/uloc.cpp#L1985-L2054) has the same steps. The difference is that it builds the language and the "base name + collation keyword" in 157-byte (`ULOC_FULLNAME_CAPACITY`) stack buffers, so a longer locale ID can take a different path there. Its `locmap.cpp` table also differs in entries added since 68. I used 78.1 because the submodule is 78.1 and the merged `uprv_convertTo*` exports already use its table. Both gaps are written in the debt entry. Changes: - `core/libs/prx/libSceIcu/LocaleMap.cpp`, `LocaleMap.hpp`: the two exports with their real signatures, next to the `uprv_convertTo*` exports. The placeholders are removed from `LegacyExports.cpp` and `include/LegacyExports.hpp`. - `cmake/Icu.cmake`: `uloc.cpp` and the sources it reaches (`locid.cpp`, `loclikely*.cpp`, `uloc_tag.cpp`, `uresbund.cpp`, …) were compiled into `icu_common` only on Windows. They are now compiled on every platform, and only `wintz.cpp` stays Windows-only. This is the same move #18344 makes (that PR has conflicted with `main` since before #18331). - `core/libs/prx/libSceIcu/tests/LocaleMap.cpp` (`guest_icu_locale_map`): - `uloc_getLCID`, 37 IDs plus 3 long ones: - null, `""` and `e` give 0 - plain, region and script forms: `en`, `en_US`, `en_ZZ`, `zh_Hans_CN`, `zh_Hant_TW`, `sr_Latn_RS`, `sr_Cyrl_RS`, `ckb_Arab_IQ`, `en_US_POSIX`, `de__POSIX` - IDs that give 0: `en-US`, `EN_us`, `en_US.UTF-8`, `xx_YY`, `eng_USA`, `root`, `und_US`, `prs_AF`, `in_ID` - language aliases: `quz_PE`/`qu_PE`, `iw_IL` - collation keywords: `es_ES@collation=traditional`, `de_DE@collation=phonebook`, `de@collation=phonebook`, `zh_CN@collation=stroke` - keywords that are ignored: `PhoneBook` (case), `pinyin`, `currency`, `calendar`, an empty value, a bare `@`, and `collation` after another keyword - 78.1's unbounded buffers: an 80-variant ID with and without a collation keyword, and a 200-character collation value - `uloc_getLocaleForLCID`: - `0x10407` gives `de_DE@collation=phonebook` (25), `0x0004` gives `zh_Hans`, and `0` gives `root` - exact capacity: an unterminated warning - small capacity: an overflow, with the prefix written - null preflight: length 5 and an overflow - an unknown LCID: illegal argument, buffer untouched - a failed status on entry: ICU still writes the locale and keeps the error - a fallback warning is kept - a not-terminated warning is cleared - a null status throws - Every expected value comes from the real ICU functions in the host's ICU 78.3 (`/usr/lib/libicuuc.so.78.3`). Its `uloc.cpp`, `locmap.cpp`, `locid.cpp` and `uloc_tag.cpp` are byte-identical to the 78.1 submodule. - `docs/dev/debt/libSceIcu.md`: the LCID mapping entry now covers the two exports and the ICU 68 buffer difference. The "Older callable exports" line names them among the implemented exports; its counts are unchanged, since names are not counts of stubs. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Arch Linux x86-64, Linux 7.2.15-arch1-1, GCC 16.2.1 20260810, Ninja Release, `BUILD_TESTING=ON`, head `f939a0bf58` on `main` `0f4538fa02`. - `cmake --build build --target libSceIcu libharfbuzz` plus every `guest_icu_*_tests` and `guest_harfbuzz_*_tests` target. libharfbuzz is included because it also links `icu_common`, which now has more sources on Linux. - `ctest --test-dir build -R 'guest_icu|guest_harfbuzz|^public_headers|^conventions_|^debt_split|^tools_nid' -j8 --output-on-failure --no-tests=error`: 217 of 217 passed. That covers all libSceIcu and libharfbuzz guest tests plus the public-header, convention, debt and NID checker tests. - `ctest --test-dir build -R '^guest_icu_locale_map$'` run 3 times: passed each time. - Differential check: a throwaway harness, not committed, linked against this branch's `libSceIcu`. It called the two exports and compared their output with a host program that calls the system ICU 78.3 `uloc_getLCID`/`uloc_getLocaleForLCID`: - 7,094 locale IDs: every `gPosixIDmap` name, its 3-letter, hyphen, upper-case, `.codeset` and keyword variants, and 1,950 IDs with `@` keywords. 4,079 map to a nonzero LCID. All 7,094 match exactly. - 211,001 LCIDs (every value `0`-`0x10000`, then 145,457 sampled values up to `0xFFFFFFFF`), comparing the returned length, the status and the string. 28,691 succeed. All 211,001 match exactly. - Negative controls, each applied alone to `LocaleMap.cpp`, rebuilt and reverted. Every one failed `guest_icu_locale_map`: 1. dropping all keywords, using the base name (`en-US`: got 0x409) 2. taking the first two characters as the language (`de_DE@currency=EUR;collation=phonebook`: got 0x407) 3. passing `capacity - 1` to `uprv_convertToPosix` (exact capacity case) 4. returning 0 early on a failed incoming status (failed-status case) 5. clearing the incoming status (failed-status case) 6. lowercasing the locale ID (`en_US`: got 9) After reverting, the test passes. - `python3 tools/check_conventions.py --base origin/main`: "All conventions checks passed." `git diff --check origin/main`: clean. - `python3 tools/pr_overlap.py --names uloc_getLCID uloc_getLocaleForLCID`: main stubs both, no open PR adds them. `python3 tools/pr_overlap.py --branch feat/icu-uloc-lcid` failed closed, because several open libSceIcu PRs no longer merge into `main`. I also fetched the heads of all 1,535 open PRs and searched each diff against its merge base for `uloc_getLCID`, `uloc_getLocaleForLCID`, `sijsfM-blKs` and `qqDpxJnCHyo`: no match. - Line overlaps: - #19413 replaces the `stubdata.cpp` line of `cmake/Icu.cmake`, the context line right above this PR's hunk. - #18344 makes the same `if(WIN32)` group move. #18208, #18210 and #19435 also touch `cmake/Icu.cmake`. - Many libSceIcu PRs change neighbouring lines in `LegacyExports.cpp`/`.hpp` and the "Older callable exports" debt line: #14144, #14340, #14443, #17297, #18208, #18344. - None implements these exports. Whichever merges second needs a rebase. Not run: console, any title, Windows, macOS. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes — @rudranshcoolhai-boop
PrivacyOnion commented 2026-11-14 13:18:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T13:18:04Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against f939a0bf58:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_icu_locale_map_tests built cleanly.
  • CTest (guest_icu_locale_map):
    1/1 Test #3436: guest_icu_locale_map .............   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/LocaleMap.cpp, core/libs/prx/libSceIcu/LocaleMap.hpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/libs/prx/libSceIcu/LocaleMap.cpp: uloc_getLCID_nid_postfix correctly forwards to ICU's uloc_getLCID, which safely returns 0 for null/empty locale IDs without dereferencing null pointers.
    • Verified core/libs/prx/libSceIcu/LocaleMap.cpp: uloc_getLocaleForLCID_nid_postfix delegates to uprv_convertToPosix_nid_postfix matching ICU uloc.cpp L2328 while maintaining AnyPS5 guard semantics for null status pointers, negative capacities, and null-buffer preflighting.
    • Verified cmake/Icu.cmake: moved uloc.cpp and its transitive dependency sources from WIN32-only into icu_common across all platforms, preserving PIC, symbol visibility, and linker flags without duplicate target sources.
    • Verified core/libs/prx/libSceIcu/LegacyExports.cpp and include/LegacyExports.hpp: cleanly removed unimplemented placeholder stubs for uloc_getLCID_nid_postfix and uloc_getLocaleForLCID_nid_postfix.
    • Verified docs/dev/debt/libSceIcu.md: updated functional debt entries to document the ICU 68 vs 78.1 157-byte buffer difference and LCID mapping behavioral parity per AGENTS.md.
    • Verified core/libs/prx/libSceIcu/tests/LocaleMap.cpp: comprehensive test coverage for exact-capacity truncation (NotTerminated), buffer overflows (BufferOverflow), preflight queries, failed incoming status propagation, and collation keyword handling.
    • Verified AGENTS.md compliance: confirmed no comments were added to code, conventional commit formatting is adhered to, and no untracked/report files were introduced.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904495612 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20034#pullrequestreview-5904495612). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T13:18:04Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `f939a0bf58`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_icu_locale_map_tests` built cleanly. - **CTest** (`guest_icu_locale_map`): ``` 1/1 Test #3436: guest_icu_locale_map ............. 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/LocaleMap.cpp`, `core/libs/prx/libSceIcu/LocaleMap.hpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/libs/prx/libSceIcu/LocaleMap.cpp: uloc_getLCID_nid_postfix correctly forwards to ICU's uloc_getLCID, which safely returns 0 for null/empty locale IDs without dereferencing null pointers. - Verified core/libs/prx/libSceIcu/LocaleMap.cpp: uloc_getLocaleForLCID_nid_postfix delegates to uprv_convertToPosix_nid_postfix matching ICU uloc.cpp L2328 while maintaining AnyPS5 guard semantics for null status pointers, negative capacities, and null-buffer preflighting. - Verified cmake/Icu.cmake: moved uloc.cpp and its transitive dependency sources from WIN32-only into icu_common across all platforms, preserving PIC, symbol visibility, and linker flags without duplicate target sources. - Verified core/libs/prx/libSceIcu/LegacyExports.cpp and include/LegacyExports.hpp: cleanly removed unimplemented placeholder stubs for uloc_getLCID_nid_postfix and uloc_getLocaleForLCID_nid_postfix. - Verified docs/dev/debt/libSceIcu.md: updated functional debt entries to document the ICU 68 vs 78.1 157-byte buffer difference and LCID mapping behavioral parity per AGENTS.md. - Verified core/libs/prx/libSceIcu/tests/LocaleMap.cpp: comprehensive test coverage for exact-capacity truncation (NotTerminated), buffer overflows (BufferOverflow), preflight queries, failed incoming status propagation, and collation keyword handling. - Verified AGENTS.md compliance: confirmed no comments were added to code, conventional commit formatting is adhered to, and no untracked/report files were introduced. - Note: the AI-assisted checkbox can stay. Looks Good To Me
MarcZX10 commented 2026-11-14 13:49:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T13:49:46Z.

Review: APPROVED


Reviewed — looks good

The changed wrappers forward to ICU’s locale mapping routines, and the added tests cover key input, buffer-capacity, and status cases; I did not run the checks reported by the author.

What I ran

Reviewed head f939a0bf5848b6e83f77440f277df1d755795967. No build or tests were run in this review session. The PR description reports Linux build and test results; those are author-reported, not independently verified.

Reader inspection only; no commands or tests run.

Results

Check Result Note
Diff and source review passed Changed behavior and build configuration inspected
Build and tests not run Results in description are author-reported
Console and other platforms not run Linux-only verification is reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

The changed files shown in review/manifest.json were cmake/Icu.cmake, core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/LocaleMap.cpp, core/libs/prx/libSceIcu/LocaleMap.hpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp, core/libs/prx/libSceIcu/tests/LocaleMap.cpp, and docs/dev/debt/libSceIcu.md. I read the diff and the head contents of cmake/Icu.cmake, core/libs/prx/libSceIcu/LocaleMap.cpp, core/libs/prx/libSceIcu/LocaleMap.hpp, core/libs/prx/libSceIcu/CMakeLists.txt, and core/libs/prx/libSceIcu/tests/LocaleMap.cpp. I did not read the full contents of LegacyExports.cpp, include/LegacyExports.hpp, or docs/dev/debt/libSceIcu.md; their changes are visible in the diff. The review bundle did not expose review/files/ through the available reader. Console, Windows, and macOS behavior were not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904616927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20034#pullrequestreview-5904616927). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T13:49:46Z. **Review:** APPROVED --- # Reviewed — looks good The changed wrappers forward to ICU’s locale mapping routines, and the added tests cover key input, buffer-capacity, and status cases; I did not run the checks reported by the author. ## What I ran Reviewed head `f939a0bf5848b6e83f77440f277df1d755795967`. No build or tests were run in this review session. The PR description reports Linux build and test results; those are author-reported, not independently verified. ```text Reader inspection only; no commands or tests run. ``` ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Changed behavior and build configuration inspected | | Build and tests | not run | Results in description are author-reported | | Console and other platforms | not run | Linux-only verification is reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The changed files shown in `review/manifest.json` were `cmake/Icu.cmake`, `core/libs/prx/libSceIcu/LegacyExports.cpp`, `core/libs/prx/libSceIcu/LocaleMap.cpp`, `core/libs/prx/libSceIcu/LocaleMap.hpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp`, `core/libs/prx/libSceIcu/tests/LocaleMap.cpp`, and `docs/dev/debt/libSceIcu.md`. I read the diff and the head contents of `cmake/Icu.cmake`, `core/libs/prx/libSceIcu/LocaleMap.cpp`, `core/libs/prx/libSceIcu/LocaleMap.hpp`, `core/libs/prx/libSceIcu/CMakeLists.txt`, and `core/libs/prx/libSceIcu/tests/LocaleMap.cpp`. I did not read the full contents of `LegacyExports.cpp`, `include/LegacyExports.hpp`, or `docs/dev/debt/libSceIcu.md`; their changes are visible in the diff. The review bundle did not expose `review/files/` through the available reader. Console, Windows, and macOS behavior were not verified. ## To get this to a good state Nothing is required.
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!20034
No description provided.