Skip to content

feat: add CP932 extensions in SJIS detection and conversion - #65

Merged
polygonplanet merged 3 commits into
masterfrom
feature/cp932-extension
Aug 28, 2026
Merged

feat: add CP932 extensions in SJIS detection and conversion#65
polygonplanet merged 3 commits into
masterfrom
feature/cp932-extension

Conversation

@polygonplanet

Copy link
Copy Markdown
Owner

Resolves #54
Resolves #22

  • detect the CP932 extended character areas as SJIS (feebcc5)
  • add CP932 IBM extended character mappings (4fdd203)
  • add CP932 duplicate code remapping (9a19766)

- include the user-defined and IBM extended character areas in isSJIS
- reject the undefined codes after 0xFC4B where the IBM extension ends
- stop skipping leading bytes above 0x80 in isSJIS
- add tests for valid and invalid SJIS byte sequences

Refs #54
- add CP932 IBM extended character mappings to `convert()`
- add `sjis-ext.js` for remapping SJIS codes
- add `convert()` tests for IBM extended characters

Refs #54
@polygonplanet
polygonplanet merged commit c7a59cd into master Aug 28, 2026
12 checks passed
@polygonplanet
polygonplanet deleted the feature/cp932-extension branch August 28, 2026 17:05
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.

CP932形式の扱いについて Hello, could you support SJIS-WIN encoding?

1 participant