feat(icu): implement converter name and signature helpers #12738
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12738"
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 atharvjairath on 2026-10-29T06:19:21Z.
What
Implement four missing ICU converter helpers:
ucnv_compareNames: ASCII converter/alias comparison with ICU's case, punctuation and numeric-run rules.ucnv_io_stripASCIIForCompareanducnv_io_stripEBCDICForCompare: matching normalization, including in-place output and EBCDIC output bytes.ucnv_detectUnicodeSignature: bounded or NUL-terminated signature detection, including UTF-16/UTF-32 precedence, UTF-7 variants and ICU status/output preservation.Names and generated NIDs match the pinned PS5 3.20 inventory. Behavior follows ICU 78.1 commit
049e0d6a420629ac7db77256987d083a563287b5, ucnv_io.cpp and ucnv.cpp. Required null normalization pointers throw; the undefined upstream memory access is not reproduced. Console ABI/behavior and cross-firmware availability remain unverified and are recorded in the existing debt file. No new runtime dependency is added.On exact base
2960e9a6e7e1fc99c4ed180c71495b5eb83464c7, the unchanged progress scanner reports four additional implemented names: ICU 11/120 → 15/124 (9.17% → 12.10%), project 6679/14548 → 6683/14552 (45.91% → 45.92%). These four names were absent, so the denominator increases too; all 107 literal-NID stubs and existing unsupported paths remain. Scanner counts are not a complete firmware API inventory (for example, they include the existingByteAtcallback).The exact overlap CLI inspected 1420 open PRs against this base. Its 15 reported peers share CMake, umbrella-header or debt insertion sites; none implements these four exports. Current heads and complete shared patches were reviewed, including the six base-conflicted numeric/error/field-position/set/enumeration/iterator branches. No open prerequisite or peer code is imported; later merges must retain both sets of source/header/test/debt additions.
Tested
Exact committed head
26780f3701db3f8f336216d2b6d00c580835ad76, based on2960e9a6e7e1fc99c4ed180c71495b5eb83464c7:guest_icu_converter_helperspasses (3.33 s), as do version and unescape. Existingguest_icu_cstringaborts atparser preserves LP64 strtoul results before narrowing, then times out. A separately rebuilt, complete exact-base ICU DLL excluding this change reproduces the same assertion with the same libc and unchanged test executable; Wine loader tracing confirms the control DLL path. This failure remains visible; no assertion, gate or runtime workaround was changed.-Wall -Wextra -Werror. All four focused test registrations and emulator commands verified. Exactpython3 tools/pr_overlap.py --branch feat/icu-converter-helperspasses; shared-file review completed.No native Windows, PS5, title, packaged-product or whole-project runtime validation is claimed. The focused harness disables libc's standalone test registrations; it builds the real library but does not constitute a whole-project test-registration audit. Full maintainer CI is still required.
Representative reproduction:
The commands above are the repository test target; local platform results used the focused harness described above. Full recipes, source/binary hashes, oracle, mutation and failure/control logs are retained in
/private/tmp/anyps5-icu-converter-20261029.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)