Skip to content

docs(libc): drop two debt statements the code no longer matches - #1993

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/28196
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/28196

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#28196, originally opened by mnoori11.

Source commit: 2eccbc6157030f0d101fc745d8efa6bd6cc9de08. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Cuts two libc debt entries to what is still open, through one fragment. No code changes.

swprintf_s and vswprintf_s ended with "The shared formatter still treats %S as a wide string, unlike the measured title libraries' literal %S; boykopovar#12397's correction is not integrated here." boykopovar#12397 is merged, and its branch in the shared wide formatter (FormattingWide.cpp:358) prints %S literally without reading secure. swprintf_s and vswprintf_s reach it through FormatWideSecure, which calls the same formatter with secure set (line 407). GuestWideFormatting.cpp checks the literal %S for swprintf. The fragment removes the sentence.

_WStod, _WStof and _WStold listed four differences from the PPSA06416 libc.prx. Merged fixes removed all four from ScaledFloat, which the wide wrappers call through ParseAsciiPrefix:

Both passages were out of date when they landed. boykopovar#12627 (the %S sentence) was opened before boykopovar#12397 merged. In boykopovar#14595, "retain existing parser qualifications" (5f320fe, 11-01) put the four differences back after boykopovar#12524, boykopovar#12553 and boykopovar#12659 had merged on 10-30, and the entry has ended mid-sentence ("... one unit lower") on main since.

Neighbours: boykopovar#14915's fragment changes the _Stod, _Stodx, ... entry, a different one, and boykopovar#9087 edits other lines of libc.md; neither touches these two entries.

The fragment keeps the first sentence, which is still open: the wrappers parse the leading ASCII characters, where the console's libc.prx parses the wide text itself.

Tested

Linux (WSL2, x86-64). Documentation only; no code changed.

  • python3 tools/debt_fold.py --show libc on main and on this branch: the only difference is the two removed passages above.
  • python3 tools/debt_fold.py --check: passes.
  • python3 tools/check_conventions.py --base origin/main: all checks pass.
  • Each claim was checked against the code on main and the tests named above (guest_wide_formatting, guest_dinkumware_internals), which run in CI. No host probe or console run.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added libc debt entries covering additional wide-character formatting and parsing routines, including their behavior and relationships to other routines.

The swprintf_s entry said boykopovar#12397's literal %S was not integrated; it
is, in the formatter swprintf_s shares. The _WStod entry listed four
differences from the title's libc.prx that boykopovar#12524, boykopovar#12553, boykopovar#12659 and
boykopovar#26157 removed. The fragment keeps what is still open in both.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Libc debt documentation

Layer / File(s) Summary
Document routine entries
docs/dev/debt/changes/docs-libc-debt-stale-entries.md
The document describes formatting rules, return values, overflow handling, and argument and encoding checks for swprintf_s and vswprintf_s. It also describes leading-ASCII parsing through the corresponding _Stodx routines.

Change: Other

Merge Risk: Minimal · up to 2eccb

This documentation-only change removes stale debt statements about libc wide formatting and parsing and has no runtime impact. It carries no meaningful merge risk.

Architecture risk: Low · up to 2eccb

Routine behavior was added to the debt documentation; the supplied evidence shows no change to the libc runtime behavior or public declarations.

Changed areas: docs

Review details

Systems and components

  • observed — 1 changed file mapped to docs.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37476c3d-e1ac-4888-8581-657cb8aaef82
Commits

Reviewing files that changed from the base of the PR and between 4131f51 and 2eccbc6.

Files selected for processing: 1

  • docs/dev/debt/changes/docs-libc-debt-stale-entries.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants