[UTF-8] Aspell and UTF-8/Unicode

Kevin Atkinson kevina@gnu.org
Sun, 15 Feb 2004 20:20:43 -0500 (EST)


On Sun, 15 Feb 2004, Elias Martenson wrote:

> You asked about curses with wide characters.
> 
> Allow me to explain the necessary steps. If you have any questions don't
> hesitate to ask.
> 
> First of all, at least on my FC1 box, there are two ncurses
> installations. One in <ncurses/ncurses.h> and one in
> <ncursesw/ncurses.h> you must make sure you include the latter, or the
> unicode stuff will not work at all. I have absolutely no idea why this
> version is not the default.
> 
> You have to remember to link with -lncursesw instead of -lncurses.
> 
> Also don't forget to issue the call to setlocale(LC_ALL,"") in the
> beginning of the program. Although I suppose you already do. :-)
> 
> Next, you have to decide wether you want the application to work with
> and print wide strings (wchar_t *) or UTF-8 strings (char *). It's a
> matter of taste really. Both methods work and has their respective
> drawbacks and advantages.

So does the curses library use LC_CTYPE to determine what encoding the 
incoming string is?

Is it more portable to use wchar_t?  Or do most curses libraries that 
support the wchar_t support strings in UTF-8?

--- 
http://kevin.atkinson.dhs.org