CS_ISO8859_16,
CS_CP437,
CS_CP850,
+ CS_CP852,
+ CS_CP866,
CS_CP1250,
CS_CP1251,
CS_CP1252,
* 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);
* 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);
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,