]> diplodocus.org Git - nmh/blob - sbr/check_charset.h
Improve fmttest output
[nmh] / sbr / check_charset.h
1 /* check_charset.h -- routines for character sets
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
6
7 /*
8 * Returns the MIME character set indicated by the current locale setting.
9 * Should be used by routines that want to convert to/from the local
10 * character set, or if you want to check to see if you can display content
11 * in the local character set.
12 */
13 char *get_charset(void);
14
15 /*
16 * Check to see if we can display a given character set natively.
17 * Arguments include:
18 *
19 * str - Name of character set to check against
20 * len - Length of "str"
21 *
22 * Returns 1 if the specified character set can be displayed natively,
23 * 0 otherwise.
24 */
25 int check_charset(char *, int);
26
27 /*
28 * Output the local character set name, but make sure it is suitable for
29 * 8-bit characters.
30 */
31 char *write_charset_8bit(void);