diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-03 22:14:08 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-03 22:14:08 +0000 |
commit | 44fb9c0a41e20ad339e03714b270d00f0180b196 (patch) | |
tree | dc779f37c0506de6d701528cd53a6872dbe3dacf /charset.h | |
parent | 31d8ad1d9d45bf160e4c8b40f6ef5333ff99911e (diff) |
[unstable] Produce some reasonable character set support when
postponing messages.
Additionally, this patch fixes a nasty pointer leak in
load_charset() [noted with electric fence], and a completely
mis-lead attempt to use bsearch(). Apparently, nobody ever tested
the utf8 decoder for quite some time.
Diffstat (limited to 'charset.h')
-rw-r--r-- | charset.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -67,19 +67,16 @@ typedef struct decoder } DECODER; + CHARSET *mutt_get_charset(const char *); CHARSET_MAP *mutt_get_translation(const char *, const char *); - -unsigned char mutt_display_char(unsigned char, CHARSET_MAP *); - +DECODER *mutt_open_decoder (STATE *, BODY *, int); int mutt_display_string(char *, CHARSET_MAP *); int mutt_is_utf8(const char *); - -void mutt_decode_utf8_string(char *, CHARSET *); - -DECODER *mutt_open_decoder (STATE *, BODY *, int); +int mutt_recode_file (const char *, const char *, const char *); +unsigned char mutt_display_char(unsigned char, CHARSET_MAP *); void mutt_close_decoder (DECODER **); - +void mutt_decode_utf8_string(char *, CHARSET *); void mutt_decoder_putc (DECODER *, char); #endif |