Commit 896bc8eb authored by Thomas Roessler's avatar Thomas Roessler

More changes to the utf-8 friendly line editor: Implement some

missing functions, include some more header files.
parent 1d2e9727
......@@ -832,6 +832,11 @@ if test "$mutt_cv_wint_t" = no; then
AC_DEFINE(wint_t, int)
fi
AC_CHECK_HEADERS(wctype.h)
AC_CHECK_FUNCS(iswalnum iswalpha iswcntrl iswdigit)
AC_CHECK_FUNCS(iswgraph iswlower iswprint iswpunct iswspace iswupper)
AC_CHECK_FUNCS(iswxdigit towupper towlower)
AC_CACHE_CHECK([for mbstate_t], mutt_cv_mbstate_t,
AC_TRY_COMPILE([
#include <stddef.h>
......
This diff is collapsed.
#ifndef _MBYTE_H
#define _MBYTE_H
# define _MBYTE_H
void mutt_set_charset (char *charset);
extern int Charset_is_utf8;
# include "config.h"
size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps);
# ifdef HAVE_WC_FUNCS
# ifdef HAVE_WCHAR_H
# include <wchar.h>
# endif
# ifdef HAVE_WCTYPE_H
# include <wctype.h>
# endif
# endif
#ifndef HAVE_WC_FUNCS
# ifndef HAVE_WC_FUNCS
size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps);
size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
int iswprint (wint_t wc);
int wcwidth (wchar_t wc);
#endif /* !HAVE_WC_FUNCS */
# endif /* !HAVE_WC_FUNCS */
void mutt_set_charset (char *charset);
extern int Charset_is_utf8;
size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps);
wchar_t replacement_char (void);
#endif /* _MBYTE_H */
......@@ -724,7 +724,7 @@ typedef struct
{
wchar_t *wbuf;
size_t wbuflen;
size_t wbufn;
size_t lastchar;
size_t curpos;
size_t begin;
} ENTER_STATE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment