* sets are passed through, so a post-processor could fix them up if
* necessary.
*
- * DOCS is not currently supported. It will be one day.
+ * DOCS to UTF-8 works. Other DOCS sequences are ignored, which will
+ * produce surprising results.
*/
#ifndef ENUM_CHARSETS
ustate.s1 = 0;
ustate.s0 = state->s0 & 0x03ffffffL;
- utf8 = charset_find_spec(CS_UTF8);
- utf8->read(utf8, input_chr, &ustate, emit, emitctx);
+ read_utf8(NULL, input_chr, &ustate, emit, emitctx);
state->s0 = (state->s0 & ~0x03ffffffL) | (ustate.s0 & 0x03ffffffL);
}