X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=charset%2Fcharset.h;h=0a2e9190fac5d564528a8e0c04e66de6a82e0202;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=1a2152dc78be85325ce35f60e634b547bc8243b1;hpb=f8e3eee673a34f494448619e802cc10b7f2d9eec;p=PuTTY.git diff --git a/charset/charset.h b/charset/charset.h index 1a2152dc..0a2e9190 100644 --- a/charset/charset.h +++ b/charset/charset.h @@ -136,4 +136,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 */