VT100 line drawing characters should only happen between 0x5F and
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Oct 2002 22:59:14 +0000 (22:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
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 :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@2108 cda61777-01e9-0310-a592-d414129be87e

unix/uxucs.c

index 164d889..b0b825c 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;
     }
 }