diff options
author | Rich Felker <dalias@aerifal.cx> | 2017-11-13 18:34:27 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-11-13 18:34:27 -0500 |
commit | 105eff9dec51bc4898a74af2854ab71f927a5c3b (patch) | |
tree | 5ee1447893b7b760c599afb19341b5f8f2eb8ee3 /src/prng/__seed48.c | |
parent | a71b46cfd289aa0ff829fc9a436c59c398f8326d (diff) | |
download | musl-105eff9dec51bc4898a74af2854ab71f927a5c3b.tar.gz |
generalize iconv framework for 8-bit codepages
previously, 8-bit codepages could only remap the high 128 bytes; the
low range was assumed/forced to agree with ascii. interpretation of
codepage table headers has been changed so that it's possible to
represent mappings for up to 256 slots (fewer if the initial portion
of the map is elided because it coincides with unicode codepoints).
this requires consuming a bit more of the 10-bit space of characters
that can be represented in 8-bit codepages, but there's still a plenty
left. the size of the legacy_chars table is actually reduced now by
eliding the first 256 entries and considering them to map implicitly
via the identity map.
before these changes, there seem to have been minor bugs/omissions in
codepage table generation, so it's likely that some actual bug fixes
are silently included in this commit. round-trip testing of a few
codepages was performed on the new version of the code, but no
differential testing against the old version was done.
Diffstat (limited to 'src/prng/__seed48.c')
0 files changed, 0 insertions, 0 deletions