diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-09-11 10:50:37 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-09-11 10:50:37 +0000 |
commit | 7777fb663e7b295731b226baf3df5f9186345763 (patch) | |
tree | 08bda6d710ae50256b671355c8cbb6b00cd63d43 /charset.c | |
parent | 775b6121790dcfbb39174896011e4e39a1bdbacd (diff) |
Fix some more character set glitches.
Diffstat (limited to 'charset.c')
-rw-r--r-- | charset.c | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -38,17 +38,6 @@ # define EILSEQ EINVAL #endif -#ifdef HAVE_LANGINFO_CODESET -# include <langinfo.h> - -/* - * Try to convert nl_langinfo's return value to something we can - * use for MIME's purposes. - * - * Note that the algorithm used here is quite different from the - * one in mutt_canonical_charset. - */ - /* * The following list has been created manually from the data under: * http://www.isi.edu/in-notes/iana/assignments/character-sets @@ -191,6 +180,10 @@ PreferredMIMENames[] = { NULL, NULL } }; +#ifdef HAVE_LANGINFO_CODESET +# include <langinfo.h> + + void mutt_set_langinfo_charset (void) { char buff[LONG_STRING]; |