--- luit-1.0.1/iso2022.c.alt-fix-ls 2007-04-03 10:42:44 +0400 +++ luit-1.0.1/iso2022.c 2007-04-03 11:12:20 +0400 @@ -631,8 +631,10 @@ copyOut(Iso2022Ptr is, int fd, unsigned } else if(*s == CSI && CHARSET_REGULAR(GR(is))) { buffer(is, *s++); is->parserState = P_CSI; - } else if((*s == SS2 || *s == SS3 || *s == LS0 || *s == LS1) && - CHARSET_REGULAR(GR(is))) { + } else if(((*s == SS2 || *s == SS3) && + CHARSET_REGULAR(GR(is))) || + ((*s == LS0 || *s == LS1) && + CHARSET_REGULAR(GL(is)))) { buffer(is, *s++); terminate(is, fd); is->parserState = P_NORMAL;