summaryrefslogtreecommitdiffstats
path: root/rfc2047.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-13 15:26:52 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-13 15:26:52 +0000
commit2fe89e82d26131cabbe9c9676608d1b72d3c1af0 (patch)
treed77d43b0c2ff8f33f4d512621f78d3c455f1d4a4 /rfc2047.c
parent439510c9447bf27162f7fc02687c155b0103c502 (diff)
This patch adds on-demand loading of character set tables,
changes the default location of $SHAREDIR, and fixes some compilation problems occuring on machines without PGP installed.
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rfc2047.c b/rfc2047.c
index a302afb2..3bfaafb7 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -245,8 +245,8 @@ static int rfc2047_decode_word (char *d, const char *s, size_t len)
char *pp = p;
char *pd = d;
int enc = 0, filter = 0, count = 0, c1, c2, c3, c4;
- char *charset;
-
+ char *charset = NULL;
+
while ((pp = strtok (pp, "?")) != NULL)
{
count++;
@@ -326,7 +326,7 @@ static int rfc2047_decode_word (char *d, const char *s, size_t len)
}
if (filter)
{
- if (mutt_display_string(d, mutt_get_charset(charset), mutt_get_charset(Charset)) == -1)
+ if (mutt_display_string(d, mutt_get_translation(charset, Charset)) == -1)
{
pd = d;
while (*pd)