X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b0faa571fcf0bdc556bf5fca5a0f81681d2c1d66..8df7a775f6f8b0f81f84eafe28cd0bb8d4c6d1f4:/xlat.c diff --git a/xlat.c b/xlat.c index d72e3bfb..092f5cab 100644 --- a/xlat.c +++ b/xlat.c @@ -1,11 +1,4 @@ #include -#ifndef AUTO_WINSOCK -#ifdef WINSOCK_TWO -#include -#else -#include -#endif -#endif #include #include "putty.h" @@ -133,10 +126,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; } @@ -144,6 +135,8 @@ unsigned char xlat_tty2scr(unsigned char c) { if(cfg.xlat_enablekoiwin) return koi2win[c]; + else if (cfg.xlat_88592w1250) + return xlatISO88592toWIN1250[c]; else if (cfg.xlat_88592cp852) return xlatISO88592toCP852[c]; return c;