feat(libSceIme): implement sceImeFilterText #8036

Merged
ymatrix1 merged 9 commits from upstream-pr/8036 into main 2026-10-20 15:11:45 +00:00
ymatrix1 commented 2026-10-19 18:19:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ymatrix1 on 2026-10-19T18:19:56Z.


What

Implements sceImeFilterText for every input, following the disassembly of libSceIme.sprx (firmware 13.60). It validates the arguments and mask, then filters the text by type: ASCII, number, Latin and the mask-driven class walk (Cyrillic, Thai, Greek, Arabic, Vietnamese, Romanian, fullwidth punctuation and two codepage sets). The two codepage checks (helpers at 0x4850 and 0x48f0) are CP932 and GBK/GB18030 membership tests. ImeFilterCodepages.hpp is generated from Unicode's public CP932.TXT and CP936.TXT plus the additions listed below; the generator is attached below and the output is byte-identical to the header in this PR. sceImeCheckFilterText is declared and throws. The debt entry records the source and the unknowns.

Additions on top of the public tables (observed by comparing against the real function's accepted units):

  • Set A (CP932): remove U+0080, U+E000-E757 and U+F8F0-F8F3; add U+00A0-00FF, U+2014, U+2016, U+203E, U+2212 and U+301C.
  • Set B (CP936): add U+0080-00FF, U+01F9, U+2E84, 2E88, 2E8B-2E8C, 2E97, 2EA7, 2EAA, 2EB6-2EB7, 2EBB, U+2FF0-2FFB, U+303E, CJK Extension A U+3400-4DB5 except U+3918, 39CF, 39DF, 415F, 4337, 4729, 477C, 478D, 4C9F, 4CA0, 4CA3, and U+E766-E864.
Generator: python mkpub.py <dir with CP932.TXT and CP936.TXT> ImeFilterCodepages.hpp
import re
import sys


def load(path):
    units = set()
    for line in open(path, encoding="latin1"):
        m = re.match(r"0x[0-9A-Fa-f]+\s+0x([0-9A-Fa-f]{4,6})", line)
        if m and int(m.group(1), 16) < 0x10000:
            units.add(int(m.group(1), 16))
    return units


def unit_range(first, last):
    return set(range(first, last + 1))


def build_a(cp932):
    units = set(cp932)
    units -= unit_range(0xE000, 0xE757) | {0x80} | unit_range(0xF8F0, 0xF8F3)
    units |= unit_range(0xA0, 0xFF) | {0x2014, 0x2016, 0x203E, 0x2212, 0x301C}
    return units


def build_b(cp936):
    units = set(cp936)
    units |= unit_range(0x80, 0xFF) | {0x1F9, 0x2E84, 0x2E88, 0x2E8B, 0x2E8C, 0x2E97, 0x2EA7, 0x2EAA}
    units |= {0x2EB6, 0x2EB7, 0x2EBB, 0x303E} | unit_range(0x2FF0, 0x2FFB)
    ext_a = unit_range(0x3400, 0x4DB5) - {0x3918, 0x39CF, 0x39DF, 0x415F, 0x4337, 0x4729, 0x477C, 0x478D, 0x4C9F, 0x4CA0, 0x4CA3}
    units |= ext_a | unit_range(0xE766, 0xE864)
    return units


def ranges(units):
    out = []
    start = prev = None
    for u in sorted(units):
        if start is None:
            start = prev = u
        elif u == prev + 1:
            prev = u
        else:
            out.append((start, prev))
            start = prev = u
    out.append((start, prev))
    return out


def emit(a, b):
    words = []
    for w in range(1024):
        v = 0
        for bit in range(64):
            if (w * 64 + bit) in a:
                v |= 1 << bit
        words.append(v)
    rb = ranges(b)
    out = ["#pragma once", "#include <cstdint>", "", "namespace ime_filter {", ""]
    out.append("inline constexpr std::uint64_t kCodepageABitmap[1024] = {")
    for i in range(0, 1024, 4):
        out.append("    " + ", ".join("0x%016xull" % x for x in words[i:i + 4]) + ",")
    out.append("};")
    out.append("")
    out.append("struct CodepageRange {\n    std::uint16_t first;\n    std::uint16_t last;\n};")
    out.append("")
    out.append("inline constexpr CodepageRange kCodepageBRanges[%d] = {" % len(rb))
    for i in range(0, len(rb), 6):
        out.append("    " + ", ".join("{0x%04x, 0x%04x}" % r for r in rb[i:i + 6]) + ",")
    out.append("};")
    out.append("")
    out.append("}")
    return "\n".join(out) + "\n"


if __name__ == "__main__":
    mappings, target = sys.argv[1], sys.argv[2]
    open(target, "w", newline="").write(emit(build_a(load(mappings + "/CP932.TXT")), build_b(load(mappings + "/CP936.TXT"))))

Tested

Differential test against the real function run in an x86-64 emulator (unicorn, with a shim for the AVX instructions): 28,000 random cases over all types, masks, version and variant values, capacities and source lengths, 0 mismatches. A unit test (GuestImeFilterText) passes when compiled with g++ against the filter logic. The full CMake build and ctest were not run, and nothing was measured on a console.

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:4925421250 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036). Originally posted by [ymatrix1](https://github.com/ymatrix1) on 2026-10-19T18:19:56Z. --- ### What Implements `sceImeFilterText` for every input, following the disassembly of `libSceIme.sprx` (firmware 13.60). It validates the arguments and mask, then filters the text by type: ASCII, number, Latin and the mask-driven class walk (Cyrillic, Thai, Greek, Arabic, Vietnamese, Romanian, fullwidth punctuation and two codepage sets). The two codepage checks (helpers at 0x4850 and 0x48f0) are CP932 and GBK/GB18030 membership tests. `ImeFilterCodepages.hpp` is generated from Unicode's public [CP932.TXT](https://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT) and [CP936.TXT](https://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP936.TXT) plus the additions listed below; the generator is attached below and the output is byte-identical to the header in this PR. `sceImeCheckFilterText` is declared and throws. The debt entry records the source and the unknowns. Additions on top of the public tables (observed by comparing against the real function's accepted units): - Set A (CP932): remove U+0080, U+E000-E757 and U+F8F0-F8F3; add U+00A0-00FF, U+2014, U+2016, U+203E, U+2212 and U+301C. - Set B (CP936): add U+0080-00FF, U+01F9, U+2E84, 2E88, 2E8B-2E8C, 2E97, 2EA7, 2EAA, 2EB6-2EB7, 2EBB, U+2FF0-2FFB, U+303E, CJK Extension A U+3400-4DB5 except U+3918, 39CF, 39DF, 415F, 4337, 4729, 477C, 478D, 4C9F, 4CA0, 4CA3, and U+E766-E864. <details> <summary>Generator: python mkpub.py &lt;dir with CP932.TXT and CP936.TXT&gt; ImeFilterCodepages.hpp</summary> ```python import re import sys def load(path): units = set() for line in open(path, encoding="latin1"): m = re.match(r"0x[0-9A-Fa-f]+\s+0x([0-9A-Fa-f]{4,6})", line) if m and int(m.group(1), 16) < 0x10000: units.add(int(m.group(1), 16)) return units def unit_range(first, last): return set(range(first, last + 1)) def build_a(cp932): units = set(cp932) units -= unit_range(0xE000, 0xE757) | {0x80} | unit_range(0xF8F0, 0xF8F3) units |= unit_range(0xA0, 0xFF) | {0x2014, 0x2016, 0x203E, 0x2212, 0x301C} return units def build_b(cp936): units = set(cp936) units |= unit_range(0x80, 0xFF) | {0x1F9, 0x2E84, 0x2E88, 0x2E8B, 0x2E8C, 0x2E97, 0x2EA7, 0x2EAA} units |= {0x2EB6, 0x2EB7, 0x2EBB, 0x303E} | unit_range(0x2FF0, 0x2FFB) ext_a = unit_range(0x3400, 0x4DB5) - {0x3918, 0x39CF, 0x39DF, 0x415F, 0x4337, 0x4729, 0x477C, 0x478D, 0x4C9F, 0x4CA0, 0x4CA3} units |= ext_a | unit_range(0xE766, 0xE864) return units def ranges(units): out = [] start = prev = None for u in sorted(units): if start is None: start = prev = u elif u == prev + 1: prev = u else: out.append((start, prev)) start = prev = u out.append((start, prev)) return out def emit(a, b): words = [] for w in range(1024): v = 0 for bit in range(64): if (w * 64 + bit) in a: v |= 1 << bit words.append(v) rb = ranges(b) out = ["#pragma once", "#include <cstdint>", "", "namespace ime_filter {", ""] out.append("inline constexpr std::uint64_t kCodepageABitmap[1024] = {") for i in range(0, 1024, 4): out.append(" " + ", ".join("0x%016xull" % x for x in words[i:i + 4]) + ",") out.append("};") out.append("") out.append("struct CodepageRange {\n std::uint16_t first;\n std::uint16_t last;\n};") out.append("") out.append("inline constexpr CodepageRange kCodepageBRanges[%d] = {" % len(rb)) for i in range(0, len(rb), 6): out.append(" " + ", ".join("{0x%04x, 0x%04x}" % r for r in rb[i:i + 6]) + ",") out.append("};") out.append("") out.append("}") return "\n".join(out) + "\n" if __name__ == "__main__": mappings, target = sys.argv[1], sys.argv[2] open(target, "w", newline="").write(emit(build_a(load(mappings + "/CP932.TXT")), build_b(load(mappings + "/CP936.TXT")))) ``` </details> ### Tested Differential test against the real function run in an x86-64 emulator (unicorn, with a shim for the AVX instructions): 28,000 random cases over all types, masks, version and variant values, capacities and source lengths, 0 mismatches. A unit test (`GuestImeFilterText`) passes when compiled with g++ against the filter logic. The full CMake build and ctest were not run, and nothing was measured on a console. ### 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](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
github-actions[bot] commented 2026-10-19 18:20:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T18:20:35Z.


Progress report (5f7e302 → 9a6f7c1)

📉 System libraries: 64.19% (-0.01%, +1 implemented, +1 declared functions)

✅ 1 implemented
Library Name
libSceIme sceImeFilterText
🆕 1 declared as stubs
Library Name
libSceIme sceImeCheckFilterText
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6274174618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6274174618). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T18:20:35Z. --- <!-- progress-report --> ### Progress report (5f7e302 → 9a6f7c1) 📉 **System libraries**: 64.19% (-0.01%, +1 implemented, +1 declared functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceIme | `sceImeFilterText` | </details> <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceIme | `sceImeCheckFilterText` | </details>
github-actions[bot] commented 2026-10-19 18:32:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T18:32:03Z.


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/prx/libSceIme/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6274390465 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6274390465). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T18:32:03Z. --- <!-- 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/prx/libSceIme/CMakeLists.txt` |
wachi35676 commented 2026-10-20 00:16:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T00:16:43Z.


Windows 11, Ryzen 5 9600X, WinLibs GCC 15.2.0 (UCRT), Release, BUILD_TESTING=ON, full CMake configure. Head 2e0d8d7ab merged onto main eb7500680. The description says the full build and ctest were not run.

  • Windows: builds without warnings in libSceIme, and guest_ime_filter_text passes, together with guest_ime_open, guest_ime_dialog, guest_ime_keyboard and guest_ime_parameters.
  • Linux: WSL Ubuntu 24.04, GCC 13.3, Release, same merge: builds, and guest_ime_filter_text and the other guest_ime_* tests pass.

Codepage provenance. The debt says the two tables were derived by running the firmware's helpers over all 65536 units, and that "the encodings are not identified". I compared both sets with Python's codec repertoires (I can share the script):

  • kCodepageABitmap (7,610 units) is exactly Windows-31J/CP932 with U+00A0–U+00FF, U+2014 and U+203E added, and with U+0080–U+009F, the private-use ranges U+E000–U+E757 and U+F8F0–U+F8F3 removed. The set compares equal, with 0 differing units.

  • kCodepageBRanges (28,878 units) is GBK/CP936 (all 21,919 GBK units are in it) plus:

    • U+0080–U+00FF;
    • CJK Extension A U+3400–U+4DB5 except 11 units (U+3918, 39CF, 39DF, 415F, 4337, 4729, 477C, 478D, 4C9F, 4CA0, 4CA3);
    • the GB18030-2000 two-byte additions U+01F9, U+20AC, U+2E84…U+2EBB (10 units), U+2FF0–U+2FFB, U+303E and U+E766–U+E864.

    Every unit is in GB18030.

So A is a Shift_JIS/CP932 converter and B is a GBK/GB18030 converter. The tables could be generated from the public mapping files (Unicode/WHATWG CP932 and GB18030) with the listed exceptions, instead of shipping 1,024 + 151 entries read out of the firmware module. Either way, the debt can name the encodings.

The filter logic itself (class masks, DerivedMask, ValidMask) has no source other than the firmware disassembly. shadPS4 only stubs sceImeFilterText (ime.cpp line 429), and KytyPS5 and SharpProspero have nothing for it, so I could not check it independently.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6280257335 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6280257335). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T00:16:43Z. --- Windows 11, Ryzen 5 9600X, WinLibs GCC 15.2.0 (UCRT), Release, `BUILD_TESTING=ON`, full CMake configure. Head `2e0d8d7ab` merged onto `main` eb7500680. The description says the full build and ctest were not run. - **Windows:** builds without warnings in `libSceIme`, and `guest_ime_filter_text` passes, together with `guest_ime_open`, `guest_ime_dialog`, `guest_ime_keyboard` and `guest_ime_parameters`. - **Linux:** WSL Ubuntu 24.04, GCC 13.3, Release, same merge: builds, and `guest_ime_filter_text` and the other `guest_ime_*` tests pass. **Codepage provenance.** The debt says the two tables were derived by running the firmware's helpers over all 65536 units, and that "the encodings are not identified". I compared both sets with Python's codec repertoires (I can share the script): - **`kCodepageABitmap`** (7,610 units) is exactly Windows-31J/CP932 with U+00A0–U+00FF, U+2014 and U+203E added, and with U+0080–U+009F, the private-use ranges U+E000–U+E757 and U+F8F0–U+F8F3 removed. The set compares equal, with 0 differing units. - **`kCodepageBRanges`** (28,878 units) is GBK/CP936 (all 21,919 GBK units are in it) plus: - U+0080–U+00FF; - CJK Extension A U+3400–U+4DB5 except 11 units (U+3918, 39CF, 39DF, 415F, 4337, 4729, 477C, 478D, 4C9F, 4CA0, 4CA3); - the GB18030-2000 two-byte additions U+01F9, U+20AC, U+2E84…U+2EBB (10 units), U+2FF0–U+2FFB, U+303E and U+E766–U+E864. Every unit is in GB18030. So A is a Shift_JIS/CP932 converter and B is a GBK/GB18030 converter. The tables could be generated from the public mapping files (Unicode/WHATWG CP932 and GB18030) with the listed exceptions, instead of shipping 1,024 + 151 entries read out of the firmware module. Either way, the debt can name the encodings. The filter logic itself (class masks, `DerivedMask`, `ValidMask`) has no source other than the firmware disassembly. shadPS4 only stubs `sceImeFilterText` (`ime.cpp` line 429), and KytyPS5 and SharpProspero have nothing for it, so I could not check it independently. AI-assisted: yes (Claude Code); results above were run on this machine.
oneandonlydean commented 2026-10-20 05:09:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T05:09:44Z.


@ymatrix1 thanks, the behaviour and the differential test look good. One request about ImeFilterCodepages.hpp: the codepage bitmaps are extracted from the firmware's libSceIme.sprx, and we'd rather not ship data copied out of the firmware. Could you regenerate them from a public source instead, for example the Unicode data files and the published codepage mappings, ideally with the small script that builds them, and keep your 28k-case test as the check that the result matches? If the tables come from rules you can describe, generating them in code works too.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6283875557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6283875557). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T05:09:44Z. --- @ymatrix1 thanks, the behaviour and the differential test look good. One request about `ImeFilterCodepages.hpp`: the codepage bitmaps are extracted from the firmware's `libSceIme.sprx`, and we'd rather not ship data copied out of the firmware. Could you regenerate them from a public source instead, for example the Unicode data files and the published codepage mappings, ideally with the small script that builds them, and keep your 28k-case test as the check that the result matches? If the tables come from rules you can describe, generating them in code works too.
blawesom commented 2026-10-20 07:59:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-20T07:59:56Z.


Rebase handoff — rebased onto current main (3fd1cc393, authorship unchanged). One debt conflict: main's unknown-signature stub list kept, your sceImeFilterText entry added.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; 1672/1675 — green apart from the three known main failures (#7584 BDA, #7784 guest-memory, tessellation), none from this PR; conventions pass.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/8036
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 1bf25e1de.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6286290199 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6286290199). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-20T07:59:56Z. --- **Rebase handoff** — rebased onto current `main` (`3fd1cc393`, authorship unchanged). One debt conflict: `main`'s unknown-signature stub list kept, your `sceImeFilterText` entry added. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; **1672/1675 — green apart from the three known `main` failures** (#7584 BDA, #7784 guest-memory, tessellation), none from this PR; conventions pass. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/8036 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `1bf25e1de`.
blawesom commented 2026-10-20 08:00:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-20T08:00:34Z.


Correction on the handoff above: my first push was missing your second commit (2e0d8d7ab, the debt-entry shortening) — the rebase had stopped on it and my push went out mid-rebase. The branch is now complete at 0cacac901 with both commits: main's unknown-signature stub list kept, your sceImeFilterText entry added in its shortened form. Same verification as above (1672/1675, green apart from the three known main failures; conventions pass). Apologies for the churn.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6286303308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6286303308). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-20T08:00:34Z. --- Correction on the handoff above: my first push was missing your second commit (`2e0d8d7ab`, the debt-entry shortening) — the rebase had stopped on it and my push went out mid-rebase. The branch is now complete at `0cacac901` with both commits: `main`'s unknown-signature stub list kept, your `sceImeFilterText` entry added in its shortened form. Same verification as above (1672/1675, green apart from the three known `main` failures; conventions pass). Apologies for the churn.
ymatrix1 commented 2026-10-20 09:57:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ymatrix1 on 2026-10-20T09:57:59Z.


@oneandonlydean done. ImeFilterCodepages.hpp is now generated from Unicode's public CP932.TXT and CP936.TXT plus a short list of additions (Latin-1, CJK Extension A and a few other units the firmware also accepts). The generator is in the PR description, and its output is byte-identical to the previous header, so the 28k-case differential test still passes unchanged. The debt entry now names the sources and encodings. Thanks to @wachi35676 for the independent identification of both sets.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6288351752 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6288351752). Originally posted by [ymatrix1](https://github.com/ymatrix1) on 2026-10-20T09:57:59Z. --- @oneandonlydean done. `ImeFilterCodepages.hpp` is now generated from Unicode's public [CP932.TXT](https://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT) and [CP936.TXT](https://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP936.TXT) plus a short list of additions (Latin-1, CJK Extension A and a few other units the firmware also accepts). The generator is in the PR description, and its output is byte-identical to the previous header, so the 28k-case differential test still passes unchanged. The debt entry now names the sources and encodings. Thanks to @wachi35676 for the independent identification of both sets.
oneandonlydean commented 2026-10-20 10:53:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T10:53:08Z.


Thanks, that answers it. We ran your generator on freshly downloaded CP932.TXT and CP936.TXT and got a header byte-identical to the committed one, and the additions are ranges written in code with a public basis, so this is fine on our side.

#8009 has just merged, and this branch now conflicts with it only in docs/dev/debt/libSceIme.md (both PRs add entries to the same list). Could you merge or rebase onto current main and keep both sets of entries? We'll run full CI on the new head right after.

Optional, not blocking: committing the generator under tools/ would let the header be regenerated later, and sceImeCheckFilterText has an unused param (the neighbouring exports write (void)param).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289248599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6289248599). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T10:53:08Z. --- Thanks, that answers it. We ran your generator on freshly downloaded CP932.TXT and CP936.TXT and got a header byte-identical to the committed one, and the additions are ranges written in code with a public basis, so this is fine on our side. #8009 has just merged, and this branch now conflicts with it only in `docs/dev/debt/libSceIme.md` (both PRs add entries to the same list). Could you merge or rebase onto current main and keep both sets of entries? We'll run full CI on the new head right after. Optional, not blocking: committing the generator under `tools/` would let the header be regenerated later, and `sceImeCheckFilterText` has an unused `param` (the neighbouring exports write `(void)param`).
ymatrix1 commented 2026-10-20 14:19:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ymatrix1 on 2026-10-20T14:19:31Z.


@oneandonlydean thanks. Merged current main into the branch, keeping both sets of debt entries, and added (void)param to sceImeCheckFilterText. The generator stays in the PR description only; I removed the tools/ copy I had briefly added.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6293041964 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6293041964). Originally posted by [ymatrix1](https://github.com/ymatrix1) on 2026-10-20T14:19:31Z. --- @oneandonlydean thanks. Merged current `main` into the branch, keeping both sets of debt entries, and added `(void)param` to `sceImeCheckFilterText`. The generator stays in the PR description only; I removed the `tools/` copy I had briefly added.
oneandonlydean commented 2026-10-20 14:25:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T14:25:01Z.


Thanks. Keeping the generator in the PR description is fine. There's no need to add it under tools/ for this PR. Full CI on c0af90213 is next.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6293155038 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8036#issuecomment-6293155038). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T14:25:01Z. --- Thanks. Keeping the generator in the PR description is fine. There's no need to add it under `tools/` for this PR. Full CI on `c0af90213` is next.
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!8036
No description provided.