]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
VT100 line drawing characters should only happen between 0x5F and
authorSimon Tatham <anakin@pobox.com>
Mon, 21 Oct 2002 22:59:14 +0000 (22:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 Oct 2002 22:59:14 +0000 (22:59 +0000)
0x7E, not everywhere else. Silly me thought nobody would bother to
depend on this :-)

[originally from svn r2108]

unix/uxucs.c

index 164d8890855a974d9d3331e6ed86041218e41b4f..b0b825c300308bf89222a8b42e4fdf259093fb00 100644 (file)
@@ -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;
     }
 }