sbr/atooi.h \
sbr/base64.h \
sbr/brkstring.h \
+ sbr/check_charset.h \
sbr/context_del.h \
sbr/context_find.h \
sbr/context_foil.h \
struct msgs_array;
-/*
- * Check to see if we can display a given character set natively.
- * Arguments include:
- *
- * str - Name of character set to check against
- * len - Length of "str"
- *
- * Returns 1 if the specified character set can be displayed natively,
- * 0 otherwise.
- */
-
-int check_charset (char *, int);
int client(char *, char *, char *, int, int);
void closefds(int);
char *concat (const char *, ...) ENDNULL;
char **getarguments (char *, int, char **, int);
-/*
- * Returns the MIME character set indicated by the current locale setting.
- * Should be used by routines that want to convert to/from the local
- * character set, or if you want to check to see if you can display content
- * in the local character set.
- */
-char *get_charset(void);
-
m_getfld_state_t m_getfld_state_init(FILE *iob);
void m_getfld_state_reset (m_getfld_state_t *);
void m_getfld_state_destroy (m_getfld_state_t *);
int uprf (const char *, const char *) PURE;
int vfgets (FILE *, char **);
-/*
- * Output the local character set name, but make sure it is suitable for
- * 8-bit characters.
- */
-char *write_charset_8bit (void);
-
-
/*
* prototypes for some routines in uip
*/
*/
#include "h/mh.h"
+#include "check_charset.h"
#include <string.h>
#include <langinfo.h>
--- /dev/null
+/* check_charset.h -- routines for character sets
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+/*
+ * Returns the MIME character set indicated by the current locale setting.
+ * Should be used by routines that want to convert to/from the local
+ * character set, or if you want to check to see if you can display content
+ * in the local character set.
+ */
+char *get_charset(void);
+
+/*
+ * Check to see if we can display a given character set natively.
+ * Arguments include:
+ *
+ * str - Name of character set to check against
+ * len - Length of "str"
+ *
+ * Returns 1 if the specified character set can be displayed natively,
+ * 0 otherwise.
+ */
+int check_charset(char *, int);
+
+/*
+ * Output the local character set name, but make sure it is suitable for
+ * 8-bit characters.
+ */
+char *write_charset_8bit(void);
*/
#include "h/mh.h"
+#include "check_charset.h"
#include "error.h"
#include "h/mhparse.h"
#include "h/addrsbr.h"
*/
#include "h/mh.h"
+#include "check_charset.h"
#include "h/utils.h"
#ifdef HAVE_ICONV
# include <iconv.h>
*/
#include "h/mh.h"
+#include "sbr/check_charset.h"
#include "sbr/getcpy.h"
#include "sbr/m_convert.h"
#include "sbr/getfolder.h"
*/
#include "h/mh.h"
+#include "sbr/check_charset.h"
#include "sbr/getcpy.h"
#include "sbr/brkstring.h"
#include "sbr/ambigsw.h"
*/
#include "h/mh.h"
+#include "sbr/check_charset.h"
#include "sbr/getcpy.h"
#include "sbr/context_find.h"
#include "sbr/pidstatus.h"
*/
#include "h/mh.h"
+#include "sbr/check_charset.h"
#include "sbr/getcpy.h"
#include "sbr/context_find.h"
#include "sbr/pidstatus.h"
*/
#include "h/mh.h"
+#include "sbr/check_charset.h"
#include "sbr/m_draft.h"
#include "sbr/m_convert.h"
#include "sbr/getfolder.h"