Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-05-10 12:34:20 +0400
committerSimon Tatham <anakin@pobox.com>2001-05-10 12:34:20 +0400
commit26f1085038d7cd9a63808a33ec6feb695b68734a (patch)
tree19ec785841a765f94967b2b4aa3521f486280e5a /ldisc.c
parente001f1533e0e8b900e69924af9509d8733d94259 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldisc.c b/ldisc.c
index b307d4e1..48fbe172 100644
--- a/ldisc.c
+++ b/ldisc.c
@@ -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];