... + + if (yes == SCWS_NA) + s->mode &= ~SCWS_USE_RULE; +} + void scws_set_multi(scws_t s, int mode) { s->mode &= ~SCWS_MULTI_MASK; @@ -1135,6 +1148,11 @@ ch = txt[off]; if (ch mode & SCWS_USE_RULE)) + { + if (!(pflag & PFLAG_WITH_MB)) { // pure single-byte -> multibyte (2bytes...