Re: [PATCH] kconfig: multibyte character support for lxdialog

From: Sam Ravnborg
Date: Sat Jan 12 2008 - 08:58:52 EST


On Sat, Jan 12, 2008 at 01:01:55PM +0100, EGRY Gabor wrote:
>
> UTF-8 support for lxdialog with wchar. The installed wide ncurses (ncursesw) is optional.

Building this on my 64 bit box with ncursesw support I saw several warnings.
Adding the following to dialog.h decreased the number:
#ifdef USE_WIDE_CURSES
#define _XOPEN_SOURCE_EXTENDED
#endif

But it was not warning free.


In addition in your patch below you assume that
ncurses wide char support and wide char support follows each other.
This assumption makes things overly complicated.

Can we assume we have wide char support everywhere today where
we will support building Linux?
I am mostly concerned about sun, cygwin and MingW here...

If we can assume wide char support everywhere your patch will
become simplerAnd adding wide char support should be a separate step.

I tried to take a look at varous source packages and they do not
need this long list of redefinitions of the ncurses functions.
Do we do something fundamentally different than for example
dialog since this indirection is needed?


Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/