Skip to content

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

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
notaxeltv:feat/libc-locale-classic-ppsa34015
Oct 17, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
notaxeltv:feat/libc-locale-classic-ppsa34015

Conversation

@notaxeltv

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Progress report (fa9365c → 511db2e)

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

✅ 1 implemented
Library Name
libc _ZNSt6locale7classicEv_nid_postfix

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the libc label Oct 14, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 15, 2026
@notaxeltv
notaxeltv force-pushed the feat/libc-locale-classic-ppsa34015 branch from 12fdc07 to 8da281d Compare October 15, 2026 16:30
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 15, 2026
Absent PPSA34015 import; return a stable facade over the classic _Locimp.

Co-authored-by: Cursor <cursoragent@cursor.com>
@notaxeltv
notaxeltv force-pushed the feat/libc-locale-classic-ppsa34015 branch from 8da281d to 511db2e Compare October 15, 2026 16:57
@adriadam10 adriadam10 self-assigned this Oct 16, 2026
@adriadam10

Copy link
Copy Markdown
Collaborator

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.

@adriadam10
adriadam10 merged commit 05f6541 into boykopovar:main Oct 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants