X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..7440fd4419acfc9c784f142fb9dee3e64c9a18c2:/unicode.c diff --git a/unicode.c b/unicode.c index 02427336..1d5e66fe 100644 --- a/unicode.c +++ b/unicode.c @@ -1,7 +1,3 @@ -#ifdef WINDOWS -#include -#endif - #include #include #include @@ -1015,7 +1011,7 @@ int decode_codepage(char *cp_name) * 1254 -> ISO 8859-9 * 1255 -> ISO 8859-8 * 1256 -> ISO 8859-6 - * 1257 -> ISO 8859-4 + * 1257 -> ISO 8859-13 (changed from 8859-4 on advice of a Lithuanian) * * and for anything else, choose direct-to-font. */ @@ -1028,7 +1024,7 @@ int decode_codepage(char *cp_name) case 1254: cp_name = "ISO-8859-9"; break; case 1255: cp_name = "ISO-8859-8"; break; case 1256: cp_name = "ISO-8859-6"; break; - case 1257: cp_name = "ISO-8859-4"; break; + case 1257: cp_name = "ISO-8859-13"; break; /* default: leave it blank, which will select -1, direct->font */ } } @@ -1094,7 +1090,7 @@ int decode_codepage(char *cp_name) return codepage; } -char *cp_name(int codepage) +const char *cp_name(int codepage) { const struct cp_list_item *cpi, *cpno; static char buf[32]; @@ -1134,7 +1130,7 @@ char *cp_name(int codepage) * Return the nth code page in the list, for use in the GUI * configurer. */ -char *cp_enumerate(int index) +const char *cp_enumerate(int index) { if (index < 0 || index >= lenof(cp_list)) return NULL;