X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=charset%2Fcharset.h;h=bc5ae3ac6708a7b51ad1b377c229adab8b5a3243;hb=cc66c86e7311c97db09da989c340ba3108c9e14f;hp=7dd038bba9219d9cf5812e30bc05258cd2d71f18;hpb=0ea7e350080f1563e99197f42bb37f7508e7b99b;p=PuTTY.git diff --git a/charset/charset.h b/charset/charset.h index 7dd038bb..bc5ae3ac 100644 --- a/charset/charset.h +++ b/charset/charset.h @@ -32,6 +32,8 @@ typedef enum { CS_ISO8859_16, CS_CP437, CS_CP850, + CS_CP852, + CS_CP866, CS_CP1250, CS_CP1251, CS_CP1252, @@ -97,7 +99,8 @@ typedef struct { * U+FFFD (REPLACEMENT CHARACTER). */ -int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen, +int charset_to_unicode(const char **input, int *inlen, + wchar_t *output, int outlen, int charset, charset_state *state, const wchar_t *errstr, int errlen); @@ -120,7 +123,8 @@ int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen, * output charset). */ -int charset_from_unicode(wchar_t **input, int *inlen, char *output, int outlen, +int charset_from_unicode(const wchar_t **input, int *inlen, + char *output, int outlen, int charset, charset_state *state, const char *errstr, int errlen); @@ -136,6 +140,14 @@ 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. */