From 4f7e317503d5b7ae08b02040429bb6fc0847fc15 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 16 Aug 2005 23:18:06 +0000 Subject: [PATCH] Now that ZLE_UNICODE_SUPPORT is defined by configure, tweaked the multibyte #ifdef logic a little here to honor its setting. --- Src/system.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Src/system.h b/Src/system.h index 0c3215d84..45f6cb6d1 100644 --- a/Src/system.h +++ b/Src/system.h @@ -692,21 +692,17 @@ extern short ospeed; #endif /* - * This is a subset of ZLE_UNICODE_SUPPORT. It is not all that likely - * that only the subset is supported, however it's easy to make the - * \u and \U escape sequences work with just the following. + * The ZLE_UNICODE_SUPPORT configure-define specifies that we want to enable + * complete Unicode conversion between wide characters and multibyte strings. + */ +#if defined ZLE_UNICODE_SUPPORT \ + || (defined HAVE_WCHAR_H && defined HAVE_WCTOMB && defined __STDC_ISO_10646__) +/* + * If ZLE_UNICODE_SUPPORT is not defined, these includes provide a subset of + * Unicode support that makes the \u and \U printf escape sequences work. */ -#if defined(HAVE_WCHAR_H) && defined(HAVE_WCTOMB) && defined (__STDC_ISO_10646__) # include # include - -/* - * More stringent requirements to enable complete Unicode conversion - * between wide characters and multibyte strings. - */ -#if defined(HAVE_MBRTOWC) && defined(HAVE_WCRTOMB) -#define ZLE_UNICODE_SUPPORT 1 -#endif #else # ifdef HAVE_LANGINFO_H # include