summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-15 16:00:57 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-15 16:00:57 +0000
commit9ec2088d5a1da0bd6bbfb5d6dea0844ed7806d59 (patch)
treeaac9629d0c353a794f8552dc342bb331b4b007be /handler.c
parent2c1422e158da7ad24821e1b4396b9dff920ee2bf (diff)
Add charset alias support and fix various errors in the
character set code.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/handler.c b/handler.c
index 86e8f645..417ede45 100644
--- a/handler.c
+++ b/handler.c
@@ -72,7 +72,7 @@ void mutt_decode_xbit (STATE *s, BODY *b, int istext)
if (istext)
{
- UNICODE_MAP *map;
+ CHARSET_MAP *map;
map = mutt_get_translation(mutt_get_parameter("charset", b->parameter), Charset);
@@ -97,7 +97,7 @@ void mutt_decode_xbit (STATE *s, BODY *b, int istext)
}
}
- state_putc(mutt_display_char(c, map), s);
+ state_putc(mutt_display_char((unsigned char) c, map), s);
if(c == '\n')
lbreak = 1;
}
@@ -122,7 +122,7 @@ void mutt_decode_quoted (STATE *s, BODY *b, int istext)
{
long len = b->length;
int ch, lbreak = 1;
- UNICODE_MAP *map = mutt_get_translation(mutt_get_parameter("charset", b->parameter), Charset);
+ CHARSET_MAP *map = mutt_get_translation(mutt_get_parameter("charset", b->parameter), Charset);
while (len > 0)
{
@@ -190,7 +190,7 @@ void mutt_decode_quoted (STATE *s, BODY *b, int istext)
}
if(ch != EOF)
- state_putc(istext ? mutt_display_char(ch, map) : ch, s);
+ state_putc(istext ? mutt_display_char((unsigned char) ch, map) : ch, s);
if(ch == '\n')
lbreak = 1;
@@ -202,7 +202,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
long len = b->length;
char buf[5];
int c1, c2, c3, c4, ch, cr = 0, i;
- UNICODE_MAP *map = mutt_get_translation(mutt_get_parameter("charset", b->parameter), Charset);
+ CHARSET_MAP *map = mutt_get_translation(mutt_get_parameter("charset", b->parameter), Charset);
buf[4] = 0;
@@ -231,7 +231,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
cr = 1;
else
{
- state_putc(istext ? mutt_display_char(ch, map) : ch, s);
+ state_putc(istext ? mutt_display_char((unsigned char) ch, map) : ch, s);
if (ch == '\n' && s->prefix) state_puts (s->prefix, s);
}
@@ -248,7 +248,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
cr = 1;
else
{
- state_putc(istext ? mutt_display_char(ch, map) : ch, s);
+ state_putc(istext ? mutt_display_char((unsigned char)ch, map) : ch, s);
if (ch == '\n' && s->prefix)
state_puts (s->prefix, s);
}
@@ -265,7 +265,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext)
cr = 1;
else
{
- state_putc(istext ? mutt_display_char(ch, map) : ch, s);
+ state_putc(istext ? mutt_display_char((unsigned char) ch, map) : ch, s);
if (ch == '\n' && s->prefix)
state_puts (s->prefix, s);
}