ISO8859-2 to CP852 output translation wants to have Win1250 to ISO8859-2
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 10 Oct 2000 12:43:24 +0000 (12:43 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 10 Oct 2000 12:43:24 +0000 (12:43 +0000)
input translation as its counterpart, not CP852 to ISO8859-2. Because the
reason you want this translation is if your _font_ is coded CP852 - in which
case your keymap will not follow suit but will still be in Win1250.

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

xlat.c

diff --git a/xlat.c b/xlat.c
index d72e3bf..57a35f2 100644 (file)
--- a/xlat.c
+++ b/xlat.c
@@ -133,10 +133,8 @@ unsigned char xlat_kbd2tty(unsigned char c)
 {
     if(cfg.xlat_enablekoiwin)
        return win2koi[c];
-    else if (cfg.xlat_88592w1250)
+    else if (cfg.xlat_88592w1250 || cfg.xlat_88592cp852)
         return xlatWIN1250toISO88592[c];
-    else if (cfg.xlat_88592cp852)
-        return xlatCP852toISO88592[c];
     return c;
 }