Add the Windows ANSI family: 874 Thai and 1250-1258 as WindowsEncoding

The ten single-byte ANSI pages join as a second enum alongside
DosEncoding, mirroring its API. Errors now carry a public Encoding
wrapper (Dos | Windows) so both families share the single-byte codec
functions; Encoding::from_code_page resolves a raw code page number
across families, DOS first.

data/ is reorganized into pc/, windows/, and bestfit/, and the
generated single-byte tables split into dos.rs and ansi.rs. Microsoft
publishes an identical Thai table for both families, so DosEncoding::
Cp874 and WindowsEncoding::Cp874 agree byte-for-byte (pinned by test).
This commit is contained in:
Claude Fable 5
2026-07-19 12:40:36 -05:00
parent 518250da2c
commit 2fe53fdee4
40 changed files with 5857 additions and 100 deletions

19493
data/bestfit/bestfit932.txt Normal file

File diff suppressed because it is too large Load Diff

48948
data/bestfit/bestfit936.txt Normal file

File diff suppressed because it is too large Load Diff

35519
data/bestfit/bestfit949.txt Normal file

File diff suppressed because it is too large Load Diff

40567
data/bestfit/bestfit950.txt Normal file

File diff suppressed because it is too large Load Diff