diff options
author | Simon Tatham <anakin@pobox.com> | 2001-05-10 12:34:20 +0400 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2001-05-10 12:34:20 +0400 |
commit | 26f1085038d7cd9a63808a33ec6feb695b68734a (patch) | |
tree | 19ec785841a765f94967b2b4aa3521f486280e5a /ldisc.c | |
parent | e001f1533e0e8b900e69924af9509d8733d94259 (diff) |
RDB's Unicode patch. Fonts are now used in Unicode mode where
possible and we have a single unified means of trying to display any
Unicode code point. Instead of the various ad-hoc translation modes
we had before, we now have a single `codepage' option which allows
us to treat the incoming (and outgoing) text as any given character
set, and locally we map that to Unicode and back.
[originally from svn r1110]
Diffstat (limited to 'ldisc.c')
-rw-r--r-- | ldisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ static int term_buflen = 0, term_bufsiz = 0, term_quotenext = 0; static int plen(unsigned char c) { - if ((c >= 32 && c <= 126) || (c >= 160)) + if ((c >= 32 && c <= 126) || (c >= 160 && !utf)) return 1; else if (c < 128) return 2; /* ^x for some x */ @@ -38,7 +38,7 @@ static int plen(unsigned char c) static void pwrite(unsigned char c) { - if ((c >= 32 && c <= 126) || (c >= 160)) { + if ((c >= 32 && c <= 126) || (c >= 160 && !utf)) { c_write(&c, 1); } else if (c < 128) { char cc[2]; |