mutt stable branch with some hacks
1#ifndef _MBYTE_H
2# define _MBYTE_H
3
4# ifdef HAVE_WC_FUNCS
5# ifdef HAVE_WCHAR_H
6# include <wchar.h>
7# endif
8# ifdef HAVE_WCTYPE_H
9# include <wctype.h>
10# endif
11# endif
12
13# ifndef HAVE_WC_FUNCS
14#ifdef towupper
15# undef towupper
16#endif
17#ifdef towlower
18# undef towlower
19#endif
20#ifdef iswprint
21# undef iswprint
22#endif
23#ifdef iswspace
24# undef iswspace
25#endif
26#ifdef iswalnum
27# undef iswalnum
28#endif
29#ifdef iswalpha
30# undef iswalpha
31#endif
32#ifdef iswupper
33# undef iswupper
34#endif
35size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps);
36size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
37int iswprint (wint_t wc);
38int iswspace (wint_t wc);
39int iswalnum (wint_t wc);
40int iswalpha (wint_t wc);
41int iswupper (wint_t wc);
42wint_t towupper (wint_t wc);
43wint_t towlower (wint_t wc);
44int wcwidth (wchar_t wc);
45# endif /* !HAVE_WC_FUNCS */
46
47
48void mutt_set_charset (char *charset);
49extern int Charset_is_utf8;
50size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps);
51wchar_t replacement_char (void);
52int is_display_corrupting_utf8 (wchar_t wc);
53
54#endif /* _MBYTE_H */