feat(libSceCesCs): implement sceCesJiscsToUcs and sceCesUcsToJiscs #12946

Merged
KernelPanicNT merged 8 commits from upstream-pr/12946 into main 2026-11-05 13:50:25 +00:00
KernelPanicNT commented 2026-10-29 15:45:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-29T15:45:16Z.


What

Source of the behaviour

Measured with homebrew probes running as a payload process on a device. The probes loaded the system libSceCesCs.sprx, built each profile in their own guarded static sheet, and logged every result and output word. The full sweeps logged an FNV-1a hash of the (result, output) pairs for each row of 94 cells or block of 256 code points. A model built from the in-tree tables reproduces all 2256 row hashes, all 2560 block hashes and all 4556 logged single results inside the implemented forms (probe output outside them is listed below as throwing).

Case Device AnyPS5 now
sceCesJiscsToUcs, each profile, every row and cell 0x21-0x7E with bits 16-23 at 0 the profile's JIS X 0208 (strict or CP932) or JIS X 0213 plane 1 cell; 0x805C0020 for an empty cell same for all rows
Same with bits 16-23 at 1 or 2 (0x1RRCC, 0x2RRCC) 0x805C0015 for every cell and profile same
Bytes 0x00-0xFF, each profile 0x00-0x9F unchanged (Shift_JIS X 0208: 0x5C U+00A5, 0x7E U+203E); 0xA1-0xDF half-width katakana, except EUC-JP X 0208 without SS2; the rest 0x805C0020 same
sceCesUcsToJiscs, each profile, U+0000-U+FFFF; U+20000-U+2FFFF for the two 2004 profiles U+0000-U+009F unchanged (Shift_JIS X 0208: U+00A5 and U+203E to 0x5C and 0x7E, U+005C to cell 1-32, U+007E unassigned); katakana to 0xA1-0xDF where the profile has it; otherwise the lowest cell of the profile's table, with the CP932 aliases (U+2014 to cell 1-29), JIS X 0212 as 0x0400RRCC (SS3 and EUC-JIS-2004 only) and JIS X 0213 plane 2 as 0x0302RRCC; surrogates 0x805C0015; the rest 0x805C0020 same for all blocks
U+110000 and 0xFFFFFFFF, each profile and a null profile 0x805C0015 same for any value above U+10FFFF (generalised from these two samples)
Null profile, 43 JIS codes and 29 code points 0x805C0004, output 0 same, except the JIS codes outside the implemented forms (next rows), which throw
Null output with a valid profile (0x2422, U+3042) 0x805C0030 same
Null output with a zero-filled sheet the conversion error (0x805C0020), not 0x805C0030 a conversion error before 0x805C0030; inferred from this sheet only, not observed with a JIS profile or for sceCesUcsToJiscs, and not pinned by the test
Any error output written as 0 same
Other JIS code forms: 0x82A0, 0xA4A2, 0x8E21, 0x8FA2AF, 0xFFFF, 0x02002422, 0x10000, 0x1002422 and others per-profile results (native Shift_JIS and EUC-JP codes decode; 0x02002422 gives U+8CC3); a null profile with 0x8FA2AF faults throws
0x02002422, each profile U+8CC3, so 0x02 reads the row and cell from 1 (row 36, cell 34), the same counting as the encoder's 0x03PPRRCC and 0x0400RRCC; those two forms were never sent to sceCesJiscsToUcs throws, so passing encoder output back throws for every multibyte character
Null profile with 0x82A0, 0xA4A2, 0x30000, 0x02002422, 0xFFFF, 0xFFFFFFFF 0x805C0004; 0x8FA2AF faults throws (null handling depends on the form)
U+2000B and U+20B9F with a JIS X 0208 profile 0x805C0020 (two samples) throws
Planes 1 and 3-16 not measured throws
Zero-filled sheet as the profile read as a profile, mixed results (0x80 converts) throws

Implements sceCesJiscsToUcs(const void* profile, uint32_t jiscs, uint32_t* ucs) and sceCesUcsToJiscs(uint32_t ucs, const void* profile, uint32_t* jiscs) for the eight JIS profiles (sceCesUcsProfileInit SJis1997X0208, SJis1997Cp932, EucJpX0208, EucJpX0208Ss2, EucJpX0208Ss2Ss3, EucJpCp51932, SJis2004X0213 and EucJis2004). Both called NotImplemented_nid_no_patch.

A JIS code is a byte or a row and cell 0x21-0x7E (0x2422 is U+3042). Encoding returns a byte, 0x03PPRRCC (plane, then row and cell counted from 1, so U+3042 is 0x03010402) or 0x0400RRCC for JIS X 0212. The mapping reuses the profile tables already in the tree, and the measured sweeps confirm them for every cell and code point listed below. Everything else throws std::runtime_error and is listed in docs/dev/debt/libSceCesCs.md in two entries. The first covers forms the device answered but this PR does not implement, with what it returned: native Shift-JIS and EUC-JP codes, 0x02002422 (U+8CC3), the null-profile 0x805C0004 results for those codes and U+2000B and U+20B9F with a JIS X 0208 profile (0x805C0020). The second covers what was not measured at all, which also throws: planes 1 and 3-16, the 0x03PPRRCC and 0x0400RRCC codes the encoder returns given back as input, and other profiles. It also lists two unverified points that do not throw: the inferred error precedence, and whether sce*UcsProfileSetSbcs profiles (handled here as the base JIS profile) behave differently.

Open questions and overlap

  • #10431 lets an MBCS profile carry a custom single-byte set. These two functions hard-code the default bytes and do not check for it; whether the console's Jiscs functions honour sce*UcsProfileSetSbcs is not measured. The second debt entry lists this.
  • tools/pr_overlap.py --branch feat/cescs-jiscs: no open PR implements these exports. #10431 and #14085 touch neighbouring lines (the CMake variant list, stubs, declarations and the debt file). #9912, #11614, #13486, #13573, #14212 and #15409 conflict with main, so they were not compared; they touch the same files and none adds these two functions. sceCesJisGetLevel, now in main, sits next to these stubs and declarations; the conflict with it is resolved.

Tested

Linux (GCC). The new test runs as guest_ces_jiscs and guest_ces_jiscs_module (linked against libSceCesCs and libSceCesCs-module). It repeats the device sweeps for the eight profiles: every row of planes 0-2, every BMP block and plane 2 for the 2004 profiles, hashed per row or block as the probes did. It then folds those hashes and compares them with the folds of the hashes the device logged, and compares hashes of both 256-value scans with the device's. It also checks samples and the measured null-profile, null-output and invalid-scalar cases; it does not require the forms left unimplemented to throw. All 24 guest_ces tests pass on main (b11c7bf84f) with this branch applied. Both new tests fail with Export.cpp, PendingExports.cpp and Api.hpp from main (they do not build), and with the two functions reduced to NotImplemented_nid_no_patch stubs (both abort). tools/progress.py: +2 implemented functions (libSceCesCs 270/287 -> 272/287). tools/check_conventions.py 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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5071133479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12946). Originally posted by [KernelPanicNT](https://github.com/KernelPanicNT) on 2026-10-29T15:45:16Z. --- ### What **Source of the behaviour** Measured with homebrew probes running as a payload process on a device. The probes loaded the system `libSceCesCs.sprx`, built each profile in their own guarded static sheet, and logged every result and output word. The full sweeps logged an FNV-1a hash of the (result, output) pairs for each row of 94 cells or block of 256 code points. A model built from the in-tree tables reproduces all 2256 row hashes, all 2560 block hashes and all 4556 logged single results inside the implemented forms (probe output outside them is listed below as throwing). | Case | Device | AnyPS5 now | |---|---|---| | `sceCesJiscsToUcs`, each profile, every row and cell `0x21`-`0x7E` with bits 16-23 at 0 | the profile's JIS X 0208 (strict or CP932) or JIS X 0213 plane 1 cell; `0x805C0020` for an empty cell | same for all rows | | Same with bits 16-23 at 1 or 2 (`0x1RRCC`, `0x2RRCC`) | `0x805C0015` for every cell and profile | same | | Bytes `0x00`-`0xFF`, each profile | `0x00`-`0x9F` unchanged (Shift_JIS X 0208: `0x5C` U+00A5, `0x7E` U+203E); `0xA1`-`0xDF` half-width katakana, except EUC-JP X 0208 without SS2; the rest `0x805C0020` | same | | `sceCesUcsToJiscs`, each profile, U+0000-U+FFFF; U+20000-U+2FFFF for the two 2004 profiles | U+0000-U+009F unchanged (Shift_JIS X 0208: U+00A5 and U+203E to `0x5C` and `0x7E`, U+005C to cell 1-32, U+007E unassigned); katakana to `0xA1`-`0xDF` where the profile has it; otherwise the lowest cell of the profile's table, with the CP932 aliases (U+2014 to cell 1-29), JIS X 0212 as `0x0400RRCC` (SS3 and EUC-JIS-2004 only) and JIS X 0213 plane 2 as `0x0302RRCC`; surrogates `0x805C0015`; the rest `0x805C0020` | same for all blocks | | U+110000 and `0xFFFFFFFF`, each profile and a null profile | `0x805C0015` | same for any value above U+10FFFF (generalised from these two samples) | | Null profile, 43 JIS codes and 29 code points | `0x805C0004`, output 0 | same, except the JIS codes outside the implemented forms (next rows), which throw | | Null output with a valid profile (`0x2422`, U+3042) | `0x805C0030` | same | | Null output with a zero-filled sheet | the conversion error (`0x805C0020`), not `0x805C0030` | a conversion error before `0x805C0030`; inferred from this sheet only, not observed with a JIS profile or for `sceCesUcsToJiscs`, and not pinned by the test | | Any error | output written as 0 | same | | Other JIS code forms: `0x82A0`, `0xA4A2`, `0x8E21`, `0x8FA2AF`, `0xFFFF`, `0x02002422`, `0x10000`, `0x1002422` and others | per-profile results (native Shift_JIS and EUC-JP codes decode; `0x02002422` gives U+8CC3); a null profile with `0x8FA2AF` faults | throws | | `0x02002422`, each profile | U+8CC3, so `0x02` reads the row and cell from 1 (row 36, cell 34), the same counting as the encoder's `0x03PPRRCC` and `0x0400RRCC`; those two forms were never sent to `sceCesJiscsToUcs` | throws, so passing encoder output back throws for every multibyte character | | Null profile with `0x82A0`, `0xA4A2`, `0x30000`, `0x02002422`, `0xFFFF`, `0xFFFFFFFF` | `0x805C0004`; `0x8FA2AF` faults | throws (null handling depends on the form) | | U+2000B and U+20B9F with a JIS X 0208 profile | `0x805C0020` (two samples) | throws | | Planes 1 and 3-16 | not measured | throws | | Zero-filled sheet as the profile | read as a profile, mixed results (`0x80` converts) | throws | - Previous stubs: [`PendingExports.cpp#L96`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/PendingExports.cpp#L96), [`#L201`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/PendingExports.cpp#L201); declarations [`Api.hpp#L229`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/include/Api.hpp#L229), [`#L265`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/include/Api.hpp#L265). - Tables and lookups reused: [`jisX0208ToUnicode`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/Export.cpp#L314), [`jis2004Reverse`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/Export.cpp#L793), [`jisReverse`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/Export.cpp#L990), [`jisAlias`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/core/libs/prx/libSceCesCs/Export.cpp#L997); the profile notes in [`libSceCesCs.md#L14`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/docs/dev/debt/libSceCesCs.md#L14) and [`#L23`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/docs/dev/debt/libSceCesCs.md#L23). - Signatures: [Orbital type database](https://github.com/AlexAltea/orbital/blob/b321fcdbd700/tools/ida/db_types.json) (`int sceCesJiscsToUcs(const union* prof, uint32_t jcode, uint32_t *ucode)`, `int sceCesUcsToJiscs(uint32_t ucode, const union* prof, uint32_t *jcode)`). - Device measurement as a source: [`REVERSE_ENGINEERING.md#L9`](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea/docs/dev/REVERSE_ENGINEERING.md#L9). Implements `sceCesJiscsToUcs(const void* profile, uint32_t jiscs, uint32_t* ucs)` and `sceCesUcsToJiscs(uint32_t ucs, const void* profile, uint32_t* jiscs)` for the eight JIS profiles (`sceCesUcsProfileInit` SJis1997X0208, SJis1997Cp932, EucJpX0208, EucJpX0208Ss2, EucJpX0208Ss2Ss3, EucJpCp51932, SJis2004X0213 and EucJis2004). Both called `NotImplemented_nid_no_patch`. A JIS code is a byte or a row and cell `0x21`-`0x7E` (`0x2422` is U+3042). Encoding returns a byte, `0x03PPRRCC` (plane, then row and cell counted from 1, so U+3042 is `0x03010402`) or `0x0400RRCC` for JIS X 0212. The mapping reuses the profile tables already in the tree, and the measured sweeps confirm them for every cell and code point listed below. Everything else throws `std::runtime_error` and is listed in `docs/dev/debt/libSceCesCs.md` in two entries. The first covers forms the device answered but this PR does not implement, with what it returned: native Shift-JIS and EUC-JP codes, `0x02002422` (U+8CC3), the null-profile `0x805C0004` results for those codes and U+2000B and U+20B9F with a JIS X 0208 profile (`0x805C0020`). The second covers what was not measured at all, which also throws: planes 1 and 3-16, the `0x03PPRRCC` and `0x0400RRCC` codes the encoder returns given back as input, and other profiles. It also lists two unverified points that do not throw: the inferred error precedence, and whether `sce*UcsProfileSetSbcs` profiles (handled here as the base JIS profile) behave differently. **Open questions and overlap** - [#10431](https://github.com/boykopovar/AnyPS5/pull/10431) lets an MBCS profile carry a custom single-byte set. These two functions hard-code the default bytes and do not check for it; whether the console's Jiscs functions honour `sce*UcsProfileSetSbcs` is not measured. The second debt entry lists this. - `tools/pr_overlap.py --branch feat/cescs-jiscs`: no open PR implements these exports. [#10431](https://github.com/boykopovar/AnyPS5/pull/10431) and [#14085](https://github.com/boykopovar/AnyPS5/pull/14085) touch neighbouring lines (the CMake variant list, stubs, declarations and the debt file). [#9912](https://github.com/boykopovar/AnyPS5/pull/9912), [#11614](https://github.com/boykopovar/AnyPS5/pull/11614), [#13486](https://github.com/boykopovar/AnyPS5/pull/13486), [#13573](https://github.com/boykopovar/AnyPS5/pull/13573), [#14212](https://github.com/boykopovar/AnyPS5/pull/14212) and [#15409](https://github.com/boykopovar/AnyPS5/pull/15409) conflict with `main`, so they were not compared; they touch the same files and none adds these two functions. `sceCesJisGetLevel`, now in `main`, sits next to these stubs and declarations; the conflict with it is resolved. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux (GCC). The new test runs as `guest_ces_jiscs` and `guest_ces_jiscs_module` (linked against `libSceCesCs` and `libSceCesCs-module`). It repeats the device sweeps for the eight profiles: every row of planes 0-2, every BMP block and plane 2 for the 2004 profiles, hashed per row or block as the probes did. It then folds those hashes and compares them with the folds of the hashes the device logged, and compares hashes of both 256-value scans with the device's. It also checks samples and the measured null-profile, null-output and invalid-scalar cases; it does not require the forms left unimplemented to throw. All 24 `guest_ces` tests pass on `main` (`b11c7bf84f`) with this branch applied. Both new tests fail with `Export.cpp`, `PendingExports.cpp` and `Api.hpp` from `main` (they do not build), and with the two functions reduced to `NotImplemented_nid_no_patch` stubs (both abort). `tools/progress.py`: +2 implemented functions (libSceCesCs 270/287 -> 272/287). `tools/check_conventions.py` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
rooklz commented 2026-10-29 18:36:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-29T18:36:25Z.

Review: COMMENTED


Reviewed head b8411fd070 on macOS arm64. I built the PR's Export.cpp, Unicode.cpp and GuestCesJiscs.cpp on their own, without the CMake tree, which needs submodules.

Gates

  • git merge-tree against main bb04a4f1ea is clean, and so is git diff --check. tools/check_conventions.py --base upstream/main passes.
  • tools/pr_overlap.py: text overlaps with #10431 and #10751 (CMake list, stubs, declarations). #9912 already conflicts with main. This matches what the body says.
  • clang++ -arch x86_64 -O2: the new test passes in 0.6 s. With -fsanitize=address,undefined it also passes, with no reports.
  • x86_64-w64-mingw32-g++ (16.2) -fsyntax-only on Export.cpp and the test: 0 errors.
  • On main, the test fails to compile (17 errors, because of the (void) declarations), as the body says.

Mutants (on Export.cpp, each run against the PR test)
26 mutants in total. 20 are killed by the PR test as it stands, including:

  • SS2 gate on bytes and katakana, and the 0x9F/0xDF bounds
  • plane≠0 → ILLEGAL_CODE, and the measured-plane bound
  • X 0208 strictness, the row/cell +1 packing
  • X 0212 on SJIS-2004, the SS3 gate
  • alias never/always, the SJIS ¥/‾ mapping and 5C/7E passthrough
  • output zeroing in both functions
  • scalar check before the profile check
  • plane 2 with an X 0208 profile throwing.

6 survive:

  1. isJisGraphic upper bound 0x7E→0x7F
  2. lower bound 0x21→0x20
  3. sceCesJiscsToUcs accepting a non-JIS profile (dropping the throw)
  4. null-output check moved before the conversion, in sceCesJiscsToUcs
  5. the same move in sceCesUcsToJiscs
  6. measured-form check moved after the null-profile check

Of these, 4 and 5 are the "inferred, not pinned" precedence the body already discloses, so they are fine to leave. 6 is a deliberate choice: the device faults on 0x8FA2AF with a null profile.

1–3 are killed by the four optional rows below. Each one asserts something the code already does. Head stays green with them under ASan+UBSan.

    RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(sceCesRefersUcsProfileCp1252(), 0x2422, &out); });
    RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x217F, &out); });
    RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x7F21, &out); });
    RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x2120, &out); });

Debt wording
I agree with @oneandonlydean. The new debt line opens with "throw where nothing was measured", but several of the listed forms were measured and are only not implemented:

  • native Shift_JIS/EUC-JP codes
  • 0x02002422 → U+8CC3
  • the null-profile 0x805C0004 results
  • U+2000B/U+20B9F → 0x805C0020 with X 0208

Suggestion: split the line into "measured, not implemented (device result: …)" and "not measured" (planes 1 and 3–16, 0x03PPRRCC/0x0400RRCC input, Set*Sbcs profiles).

Implementation looks right to me: it reuses the in-tree tables and generic profile tags, and has no title-specific values. I'd approve once the debt line is split.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5703058660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12946#pullrequestreview-5703058660). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-29T18:36:25Z. **Review:** COMMENTED --- Reviewed head `b8411fd070` on macOS arm64. I built the PR's `Export.cpp`, `Unicode.cpp` and `GuestCesJiscs.cpp` on their own, without the CMake tree, which needs submodules. **Gates** - `git merge-tree` against `main` `bb04a4f1ea` is clean, and so is `git diff --check`. `tools/check_conventions.py --base upstream/main` passes. - `tools/pr_overlap.py`: text overlaps with #10431 and #10751 (CMake list, stubs, declarations). #9912 already conflicts with main. This matches what the body says. - `clang++ -arch x86_64 -O2`: the new test passes in 0.6 s. With `-fsanitize=address,undefined` it also passes, with no reports. - `x86_64-w64-mingw32-g++` (16.2) `-fsyntax-only` on `Export.cpp` and the test: 0 errors. - On main, the test fails to compile (17 errors, because of the `(void)` declarations), as the body says. **Mutants** (on `Export.cpp`, each run against the PR test) 26 mutants in total. 20 are killed by the PR test as it stands, including: - SS2 gate on bytes and katakana, and the 0x9F/0xDF bounds - plane≠0 → ILLEGAL_CODE, and the measured-plane bound - X 0208 strictness, the row/cell +1 packing - X 0212 on SJIS-2004, the SS3 gate - alias never/always, the SJIS ¥/‾ mapping and 5C/7E passthrough - output zeroing in both functions - scalar check before the profile check - plane 2 with an X 0208 profile throwing. 6 survive: 1. `isJisGraphic` upper bound `0x7E→0x7F` 2. lower bound `0x21→0x20` 3. `sceCesJiscsToUcs` accepting a non-JIS profile (dropping the throw) 4. null-output check moved before the conversion, in `sceCesJiscsToUcs` 5. the same move in `sceCesUcsToJiscs` 6. measured-form check moved after the null-profile check Of these, 4 and 5 are the "inferred, not pinned" precedence the body already discloses, so they are fine to leave. 6 is a deliberate choice: the device faults on `0x8FA2AF` with a null profile. 1–3 are killed by the four optional rows below. Each one asserts something the code already does. Head stays green with them under ASan+UBSan. ```cpp RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(sceCesRefersUcsProfileCp1252(), 0x2422, &out); }); RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x217F, &out); }); RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x7F21, &out); }); RequireThrows([&] { std::uint32_t out = 0; sceCesJiscsToUcs(profiles[0], 0x2120, &out); }); ``` **Debt wording** I agree with @oneandonlydean. The new debt line opens with "throw where nothing was measured", but several of the listed forms *were* measured and are only not implemented: - native Shift_JIS/EUC-JP codes - `0x02002422` → U+8CC3 - the null-profile `0x805C0004` results - U+2000B/U+20B9F → `0x805C0020` with X 0208 Suggestion: split the line into "measured, not implemented (device result: …)" and "not measured" (planes 1 and 3–16, `0x03PPRRCC`/`0x0400RRCC` input, `Set*Sbcs` profiles). Implementation looks right to me: it reuses the in-tree tables and generic profile tags, and has no title-specific values. I'd approve once the debt line is split. AI-assisted: yes
CnRJay commented 2026-11-01 19:54:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:54:17Z.

Review: COMMENTED


Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (Unblocks: none is allowed), and it contained no code review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729937834 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12946#pullrequestreview-5729937834). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:54:17Z. **Review:** COMMENTED --- Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (`Unblocks: none` is allowed), and it contained no code review.
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!12946
No description provided.