X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/9547a2acebe7707dca4b4ebea17dcc8c2071359d..dbd2a0be87198275be4a3bf46ad64681e2688d86:/terminal.c diff --git a/terminal.c b/terminal.c index c7d05c50..749b1203 100644 --- a/terminal.c +++ b/terminal.c @@ -1274,7 +1274,7 @@ void term_out(Terminal *term) else if(term->sco_acs && (c!='\033' && c!='\012' && c!='\015' && c!='\b')) { - if (term->sco_acs == 2) c ^= 0x80; + if (term->sco_acs == 2) c |= 0x80; c |= ATTR_SCOACS; } else { switch (term->cset_attr[term->cset]) { @@ -1542,7 +1542,6 @@ void term_out(Terminal *term) term->logctx) logtraffic(term->logctx, (unsigned char) c, LGTYP_ASCII); { - extern int wcwidth(wchar_t ucs); int width = 0; if (DIRECT_CHAR(c)) width = 1; @@ -2104,7 +2103,7 @@ void term_out(Terminal *term) compatibility(SCOANSI); if (term->cfg->no_remote_charset) break; term->sco_acs = 1; break; - case 12: /* SCO acs on flipped */ + case 12: /* SCO acs on, |0x80 */ compatibility(SCOANSI); if (term->cfg->no_remote_charset) break; term->sco_acs = 2; break;