Initial crate: all 16 single-byte MS-DOS code pages, bidirectional

Tables are generated from the Unicode Consortium's Microsoft mappings
(VENDORS/MICSFT/PC), vendored in data/ and regenerated by
tools/gen_tables.py. Decode is fallible because 857/864/869/874 leave
byte values undefined; decode_lossy substitutes U+FFFD. Every table is
a verified bijection, so defined bytes round-trip exactly.
This commit is contained in:
Claude Fable 5
2026-07-19 12:09:54 -05:00
commit 948135af72
22 changed files with 9193 additions and 0 deletions

12
Cargo.toml Normal file
View File

@@ -0,0 +1,12 @@
[package]
name = "msdos-encodings"
version = "0.1.0"
edition = "2021"
description = "Bidirectional, emulator-grade conversion between MS-DOS code pages and Unicode"
license = "MIT"
[dependencies]
thiserror = "2"
[profile.release]
lto = true