summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-06-08 18:36:13 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-06-08 18:36:13 +0000
commitefcc33d442b9510295277204025d661c6e804fda (patch)
tree2598e1d30ee606841fddab22ae9c86ff6e454572 /init.c
parent339a10de61a79439154d60643efc738192a9ff90 (diff)
Fix up the value returned by nl_langinfo(CODESET).
Diffstat (limited to 'init.c')
-rw-r--r--init.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/init.c b/init.c
index 7f0bef29..83a30911 100644
--- a/init.c
+++ b/init.c
@@ -50,10 +50,6 @@
#include <errno.h>
#include <sys/wait.h>
-#ifdef HAVE_LANGINFO_CODESET
-#include <langinfo.h>
-#endif
-
void toggle_quadoption (int opt)
{
int n = opt/4;
@@ -1814,7 +1810,7 @@ void mutt_init (int skip_sys_rc, LIST *commands)
}
#ifdef HAVE_LANGINFO_CODESET
- Charset = safe_strdup (nl_langinfo (CODESET));
+ mutt_set_langinfo_charset ();
#else
Charset = safe_strdup ("iso-8859-1");
#endif