From 06b04b23cdff2f038e4f341a1247c51b5261f332 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 Jan 2007 13:49:50 +0100 Subject: build-sys: fix ifdef ENABLE_WIDECHAR usage There has been unexpected mix of HAVE_WIDECHAR and ENABLE_WIDECHAR macros. The ENABLE_WIDECHAR is old version and has to be replaced everywhere otherwise we will see bugs with multibyte stuff. Signed-off-by: Karel Zak --- text-utils/more.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'text-utils/more.c') diff --git a/text-utils/more.c b/text-utils/more.c index 72f2832a7..982edbece 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -739,7 +739,7 @@ int get_line(register FILE *f, int *length) int column; static int colflg; -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR int i; wchar_t wc; int wc_width; @@ -762,7 +762,7 @@ int get_line(register FILE *f, int *length) c = Getc (f); } while (p < &Line[LINSIZ - 1]) { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (fold_opt && use_mbc_buffer_flag && MB_CUR_MAX > 1) { use_mbc_buffer_flag = 0; state_bak = state; @@ -880,7 +880,7 @@ process_mbc: *length = p - Line; return (column); } else { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (fold_opt && MB_CUR_MAX > 1) { memset (mbc, '\0', MB_LEN_MAX); mbc_pos = 0; @@ -1808,7 +1808,7 @@ void ttyin (unsigned char buf[], register int nmax, char pchar) { } else if (((cc_t) c == otty.c_cc[VERASE]) && !slash) { if (sp > buf) { -#ifdef ENABLE_WIDECHAR +#ifdef HAVE_WIDECHAR if (MB_CUR_MAX > 1) { wchar_t wc; -- cgit v1.2.3-55-g7522