X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=2999e7e5e9d86e2f7025a64fac207a60af84c1b4;hp=522557ffa37dc86c0b51da07234fc105b5909492;hb=82f35ae0a006c52d0f6e3c5e09fdac5d16cddaf3;hpb=c68aaa3d8d4b5b64be9936675fe1194688debab2;ds=sidebyside diff --git a/init.c b/init.c index 522557f..2999e7e 100644 --- a/init.c +++ b/init.c @@ -1682,12 +1682,12 @@ static int source_rc (const char *rcfile, BUFFER * err) p_clear(&token, 1); while ((linebuf = mutt_read_line(linebuf, &buflen, f, &line)) != NULL) { - conv = ConfigCharset && (*ConfigCharset) && Charset; + conv = ConfigCharset && (*ConfigCharset) && MCharset.charset; if (conv) { currentline = m_strdup(linebuf); if (!currentline) continue; - mutt_convert_string (¤tline, ConfigCharset, Charset, 0); + mutt_convert_string (¤tline, ConfigCharset, MCharset.charset, 0); } else currentline = linebuf; @@ -2253,8 +2253,6 @@ void mutt_init (int skip_sys_rc, string_list_t * commands) if ((p = getenv ("EMAIL")) != NULL) From = rfc822_parse_adrlist (NULL, p); - charset_initialize(); - /* Set standard defaults */ hash_map (ConfigOptions, mutt_set_default, 0); hash_map (ConfigOptions, mutt_restore_default, 0);