citrus_iso2022's cstowc() can't treat ISO-8859-1 special case.

Issue #79 closed
Takehiko NOZAKI repo owner created an issue

itojun's rune iso2022 mapping treat ISO-8859-1 as special.

/*
 * wchar_t mappings:
 * ASCII (ESC ( B)              00000000 00000000 00000000 0xxxxxxx
 * iso-8859-1 (ESC , A)         00000000 00000000 00000000 1xxxxxxx
 * 94 charset (ESC ( F)         0fffffff 00000000 00000000 0xxxxxxx
 * 94 charset (ESC ( M F)       0fffffff 1mmmmmmm 00000000 0xxxxxxx
 * 96 charset (ESC , F)         0fffffff 00000000 00000000 1xxxxxxx
 * 96 charset (ESC , M F)       0fffffff 1mmmmmmm 00000000 1xxxxxxx
 * 94x94 charset (ESC $ ( F)    0fffffff 00000000 0xxxxxxx 0xxxxxxx
 * 96x96 charset (ESC $ , F)    0fffffff 00000000 0xxxxxxx 1xxxxxxx
 * 94x94 charset (ESC & V ESC $ ( F)
 *                              0fffffff 1vvvvvvv 0xxxxxxx 0xxxxxxx
 * 94x94x94 charset (ESC $ ( F) 0fffffff 0xxxxxxx 0xxxxxxx 0xxxxxxx
 * 96x96x96 charset (ESC $ , F) 0fffffff 0xxxxxxx 0xxxxxxx 1xxxxxxx
 * reserved for UCS4 co-existence (UCS4 is 31bit encoding thanks to mohta bit)
 *                              1xxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
 */

but cstowc() does not honor this.

Comments (2)

  1. Log in to comment