From: simon Date: Mon, 21 Oct 2002 22:59:14 +0000 (+0000) Subject: VT100 line drawing characters should only happen between 0x5F and X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/ec684ed47df6c42ea15137a7a36e7f0299cf56d5?ds=sidebyside VT100 line drawing characters should only happen between 0x5F and 0x7E, not everywhere else. Silly me thought nobody would bother to depend on this :-) git-svn-id: svn://svn.tartarus.org/sgt/putty@2108 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxucs.c b/unix/uxucs.c index 164d8890..b0b825c3 100644 --- a/unix/uxucs.c +++ b/unix/uxucs.c @@ -131,6 +131,6 @@ void init_ucs(void) for (i = 0; i < 256; i++) { unitab_line[i] = unitab_scoacs[i] = i; - unitab_xterm[i] = (i+1) & 0x1F; + unitab_xterm[i] = (i >= 0x5F && i < 0x7F) ? ((i+1) & 0x1F) : i; } }