feat(libSceIcu): give 70 recovered exports their ICU 68.2 signatures and early returns #17265
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17265"
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 MarrasFederico on 2026-11-08T16:31:45Z.
What
This replaces the single-function series #17160 to #17215, as asked in this comment, with one change. It also folds in 20 functions from the same series that were never opened separately. The series PRs will be closed in favour of this one.
70 exports that were parameterless placeholders get their ICU 68.2 signatures: 68 from
RecoveredInventory.cpp, plusures_closeandutext_closefromExport.cpp. Each implements only the paths that the pinned ICU 68.2 source decides before it touches an object:UErrorCode(above zero) with the status untouched, while warnings still reach the argument checks that come before any object use.Everything else still throws
NotImplemented_nid_no_patch: non-null handles, a nullUErrorCode, and anything that needs a real object, locale data or an allocation. No title behaves differently yet.Layout, so later work only appends:
RecoveredSignatures.hpp, included once fromlibSceIcu.hpp;guest_icu_recovered_signatures, with one test file per header and shared checks intests/RecoveredSignatureChecks.hpp;ICU_RECOVERED_SOURCESandICU_RECOVERED_TESTS;Calendar.cppucal_clone,ucal_close,ucal_get,ucal_getCanonicalTimeZoneID,ucal_getDefaultTimeZone,ucal_getKeywordValuesForLocale,ucal_getTimeZoneDisplayName,ucal_open,ucal_setGregorianChange,ucal_setMillisCollator.cppucol_close,ucol_getAttribute,ucol_getReorderCodes,ucol_getTailoredSet,ucol_open,ucol_setAttributeDateFormat.cppudat_close,udat_format,udat_formatForFields,udat_getSymbols,udat_open,udat_toPatternDateTimePatternGenerator.cppudatpg_close,udatpg_getBestPattern,udatpg_getBestPatternWithOptions,udatpg_getFieldDisplayName,udatpg_getSkeleton,udatpg_openDateIntervalFormat.cppudtitvfmt_close,udtitvfmt_closeResult,udtitvfmt_formatCalendarToResult,udtitvfmt_formatToResult,udtitvfmt_open,udtitvfmt_openResultFieldPositionIterator.cppufieldpositer_close,ufieldpositer_openFormattedValue.cppufmtval_getString,ufmtval_nextPositionIdna.cppuidna_close,uidna_nameToASCII,uidna_nameToUnicode,uidna_openUTS46LocaleDisplayNames.cppuldn_close,uldn_openForContextListFormatter.cppulistfmt_close,ulistfmt_closeResult,ulistfmt_format,ulistfmt_formatStringsToResult,ulistfmt_openForType,ulistfmt_openResultNumberFormat.cppunum_clone,unum_close,unum_formatDecimal,unum_formatDouble,unum_getSymbol,unum_openNumberFormatter.cppunumf_close,unumf_closeResult,unumf_openResultNumberingSystem.cppunumsys_close,unumsys_open,unumsys_openByNamePluralRules.cppuplrules_close,uplrules_openForTypeRelativeDateTimeFormatter.cppureldatefmt_close,ureldatefmt_format,ureldatefmt_openResourceBundle.cppures_closeStringSearch.cppusearch_openUText.cpputext_closeReviewer points addressed (oneandonlydean):
upstream/mainonto the published heada888ff804cwith two normal merge commits, both titledchore: merge upstream main:691294ad38(main919e4ee48a) andd475e2338c(maine894ec3383, current at the time of writing). No rebase, no force push.upstream/mainhad implemented any of the 70 exports: scanned all 70 functions with grep across the wholelibSceIcucodebase. Main implements none of these 70 functions (68 remained stubs inRecoveredInventory.cpp, and 2 inExport.cpp).main(Bidi.cpp,CharsetDetection.cpp,Normalization.cpp,CodePoints.cpp,LocaleCore.cpp,LocaleMap.cpp,LanguageTag.cpp,Properties.cpp,CaseMapping.cpp, etc.).libSceIcu, exactly 1 declaration, and 0 duplicate symbols.core/libs/prx/libSceIcu/RecoveredInventory.cpp: 117 stubs on main -> 49 stubs (grep -c "NotImplemented_nid_no_patch" core/libs/prx/libSceIcu/RecoveredInventory.cpp= 49).core/libs/prx/libSceIcu/Export.cpp: 56 remaining throwing functions inAdditional callable exportson main -> 54 (ures_closeandutext_closeremoved). TotalNotImplemented_nid_no_patchinExport.cpp: 82 on main -> 80 in branch (grep -c "NotImplemented_nid_no_patch" core/libs/prx/libSceIcu/Export.cpp= 80).docs/dev/debt/libSceIcu.md, all strictly within the 1000-character limit.guest_icu_recovered_signatures,guest_json_string_search, andnkwebkit_wtftext_allocationare present in the codebase, registered in CMake, built here and run: all three pass, together with every otherguest_icu_*test (39 executables,--repeat until-fail:3, 100% passed).Tested
Ubuntu 26.04.1 LTS, kernel 7.0.0-43-generic, GCC 15.2.0, Release,
BUILD_TESTING=ON, CMake 4.4.4 with Ninja 1.13 from a virtualenv. Mergedupstream/maininto the published heada888ff804cwith normal merge commits691294ad38(main919e4ee48a) and thend475e2338c(maine894ec3383); the published history was not rebased, squashed or force-pushed. Final head:d475e2338c(fulld475e2338ca169c5f660fadf24a1afb2a30ec015). Windows and macOS were not compiled here; no game title was run.libSceIcu, with 0 symbol collisions.guest_icu_recovered_signatures,guest_json_string_search, andnkwebkit_wtftext_allocation.a888ff804c, JJenkx verified thatguest_icu_recovered_signatures,guest_json_string_search, andnkwebkit_wtftext_allocationpassed in 3 of 3 runs on Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. Windows and macOS were not re-run in this local Linux merge pass.ucal_closethrow for a null handle makesguest_icu_recovered_signaturesabort.ctest -R '^guest_icu|guest_json_string_search|nkwebkit_wtftext_allocation' --output-on-failure --repeat until-fail:3: 100% tests passed out of 39, 3 runs each,Not Run= 0 (exit 0).3rdparty/icudid not move between the two merged mains;cmake/Icu.cmakegained ICU sources, so ICU was rebuilt incrementally.python3 tools/check_conventions.py --base upstream/mainpassed cleanly (exit code 0).git diff --check upstream/main...HEADpassed cleanly (exit code 0).python3 core/libs/tests/test_public_headers.py --audit-only: 411 libraries, 34457 exports: unique declarations and umbrella coverage verified.Publication checks: head
d475e2338ca169c5f660fadf24a1afb2a30ec015passed an independent conventions/diff check and a clean merge-tree check against upstream mainfa289273974bb03ffcf6c6432f0b15a2cb65f46d. Linux execution results above come from the recorded verification runs, reviewed rather than rerun during publication.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)