Add a `--list-charsets' option to Halibut to enumerate canonical names of known
character sets.

(Also make libcharset `return_in_enum' values saner.)


git-svn-id: svn://svn.tartarus.org/sgt@5341 cda61777-01e9-0310-a592-d414129be87e
Explicitly constify a bunch of static data declarations which were
conceptually const but not declared as such. Halibut is now back to
the practically-speaking-pointless but rather satisfying status of
having no global writable data whatsoever :-)


git-svn-id: svn://svn.tartarus.org/sgt@5476 cda61777-01e9-0310-a592-d414129be87e
I've apparently had this todo-list comment sitting on stormhawk for
nearly a year and not checked it in.


git-svn-id: svn://svn.tartarus.org/sgt@6309 cda61777-01e9-0310-a592-d414129be87e
Bring utf8.c's internal tests up to date in the (somewhat belated)
wake of r3713.


git-svn-id: svn://svn.tartarus.org/sgt@6314 cda61777-01e9-0310-a592-d414129be87e
Substantial overhaul of the UTF-8 decoder.  It now uses 26 bits of state
rather than 32, which might make it possible to use it inside another
decoder.  All the tests still pass.


git-svn-id: svn://svn.tartarus.org/sgt@6315 cda61777-01e9-0310-a592-d414129be87e
TIS-620 is equivalent to ISO 8859-11, so map the MIME name for the former to
the latter.


git-svn-id: svn://svn.tartarus.org/sgt@6316 cda61777-01e9-0310-a592-d414129be87e
Names for ASCII and JIS X 0201 that appear both in the X registry and in
the usual X fonts.


git-svn-id: svn://svn.tartarus.org/sgt@6317 cda61777-01e9-0310-a592-d414129be87e
Fix stupid typo.


git-svn-id: svn://svn.tartarus.org/sgt@6318 cda61777-01e9-0310-a592-d414129be87e
Use standard "WILD" markers for unregistered Big 5 aliases.


git-svn-id: svn://svn.tartarus.org/sgt@6319 cda61777-01e9-0310-a592-d414129be87e
Reasonably complete ISO 2022 support.  Huge and hairy, but it seems to
largely work.  It might even be useful for something.


git-svn-id: svn://svn.tartarus.org/sgt@6320 cda61777-01e9-0310-a592-d414129be87e
Support for using DOCS to switch to and from UTF-8 mode.


git-svn-id: svn://svn.tartarus.org/sgt@6321 cda61777-01e9-0310-a592-d414129be87e
Undo accidental change in previous commit.


git-svn-id: svn://svn.tartarus.org/sgt@6323 cda61777-01e9-0310-a592-d414129be87e
Update comment to reflect state of DOCS support.


git-svn-id: svn://svn.tartarus.org/sgt@6324 cda61777-01e9-0310-a592-d414129be87e
Undo another change that leaked through with the ISO-2022 commit.


git-svn-id: svn://svn.tartarus.org/sgt@6325 cda61777-01e9-0310-a592-d414129be87e
Make read_utf8(), like read_sbcs(), accessible to the rest of the library,
so it can be used directly in iso2022.c.


git-svn-id: svn://svn.tartarus.org/sgt@6326 cda61777-01e9-0310-a592-d414129be87e
Ben points out that ESC ( J in ISO-2022-JP should encode the
_bottom_ half of JIS X 0201 (the one that's almost identical to
ASCII, equivalent to the bottom half of Shift-JIS), not the top
half.


git-svn-id: svn://svn.tartarus.org/sgt@6327 cda61777-01e9-0310-a592-d414129be87e
1: Better documentation of how read_iso2022() stores its state.
2: Minimal write_iso2022(): it can't encode anything, but promises not to
   segfault.


git-svn-id: svn://svn.tartarus.org/sgt@6328 cda61777-01e9-0310-a592-d414129be87e
When documenting s0 and s1, get then the right way around.


git-svn-id: svn://svn.tartarus.org/sgt@6329 cda61777-01e9-0310-a592-d414129be87e
Add two new SBCSes: BS 4730 (alias UK-ASCII) and DEC graphics (alias VT100
line-drawing).  I think this means that libcharset supports all the character
sets that PuTTY supports, which is nice.


git-svn-id: svn://svn.tartarus.org/sgt@6330 cda61777-01e9-0310-a592-d414129be87e
Add support for COMPOUND_TEXT extended segments encoding ISO 98859-14,
ISO 8859-15, and BIG5.


git-svn-id: svn://svn.tartarus.org/sgt@6335 cda61777-01e9-0310-a592-d414129be87e