feat(libc): export locale::classic (PPSA34015) #6087

Merged
notaxeltv merged 1 commit from upstream-pr/6087 into main 2026-10-17 09:26:29 +00:00
notaxeltv commented 2026-10-14 21:34:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-14T21:34:56Z.


What

tools/import_audit.py on PPSA34015 lists absent libc.prx import Uq5K8tl8I9U (_ZNSt6locale7classicEv). Returns a stable locale facade whose implementation pointer is the existing classic _Locimp (same as _Getgloballocale / _sceLibcClassicLocale).

Tested

Windows 10, WinLibs GCC 15.2.0, guest_locale passes. tools/check_conventions.py --base upstream/main passes.

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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA34015 (absent libc import)
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864858586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6087). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-14T21:34:56Z. --- ### What `tools/import_audit.py` on PPSA34015 lists absent `libc.prx` import `Uq5K8tl8I9U` (`_ZNSt6locale7classicEv`). Returns a stable `locale` facade whose implementation pointer is the existing classic `_Locimp` (same as `_Getgloballocale` / `_sceLibcClassicLocale`). ### Tested Windows 10, WinLibs GCC 15.2.0, `guest_locale` passes. `tools/check_conventions.py --base upstream/main` passes. ### Checklist - [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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA34015 (absent libc import) - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-14 21:35:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:35:41Z.


Progress report (fa9365c → 511db2e)

➖ System libraries: 88.8% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libc _ZNSt6locale7classicEv_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179020971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6087#issuecomment-6179020971). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:35:41Z. --- <!-- progress-report --> ### Progress report (fa9365c → 511db2e) ➖ **System libraries**: 88.8% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libc | `_ZNSt6locale7classicEv_nid_postfix` | </details>
github-actions[bot] commented 2026-10-14 21:38:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:38:47Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestLocale.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179071359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6087#issuecomment-6179071359). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:38:47Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestLocale.cpp` |
adriadam10 commented 2026-10-16 22:43:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T22:43:24Z.


Checked against the title's libc.prx disassembly (classic() runs _Init(0) and returns the address of a static locale): the stable single-pointer facade over the classic _Locimp matches. guest_locale passes and fails to link without the change; conventions and relinker CI green. Merging once the full build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226080322 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6087#issuecomment-6226080322). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T22:43:24Z. --- Checked against the title's `libc.prx` disassembly (`classic()` runs `_Init(0)` and returns the address of a static `locale`): the stable single-pointer facade over the classic `_Locimp` matches. `guest_locale` passes and fails to link without the change; conventions and relinker CI green. Merging once the full build is green.
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!6087
No description provided.