X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9a4486bdcf2846b43a6cd32697359871663ae27b..d87d258a8f5d8fc9c43e73cc59ff4258b3755485:/charset/charset.h diff --git a/charset/charset.h b/charset/charset.h index 1a2152dc..5f83eddb 100644 --- a/charset/charset.h +++ b/charset/charset.h @@ -32,6 +32,7 @@ typedef enum { CS_ISO8859_16, CS_CP437, CS_CP850, + CS_CP866, CS_CP1250, CS_CP1251, CS_CP1252, @@ -136,4 +137,18 @@ int charset_from_xenc(const char *name); const char *charset_to_mimeenc(int charset); int charset_from_mimeenc(const char *name); +/* + * Convert our own encoding names to and from our charset + * identifiers. + */ +const char *charset_to_localenc(int charset); +int charset_from_localenc(const char *name); +int charset_localenc_nth(int n); + +/* + * Convert Mac OS script/region/font to our charset identifiers. + */ +int charset_from_macenc(int script, int region, int sysvers, + const char *fontname); + #endif /* charset_charset_h */