Rewrote codepage support to use the new codepage tables.

6 files changed