bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using UTF-8 with Ncurses / Xterm ....


From: Thomas Dickey
Subject: Re: Using UTF-8 with Ncurses / Xterm ....
Date: Fri, 20 Mar 2009 18:49:13 -0400 (EDT)

On Fri, 20 Mar 2009, Ben Duncan wrote:

Ok, went back and checked ...

No ncursesw.h anywhere.

Removed all traces of libncurses and in the ncurses source
did a make distclean.

Then a ../configure --with-shared --prefix=/usr

The "--enable-widec" option gives you ncursesw (did you use that
in installing the library?).

If you install ncursesw after ncurses, it can overwrite the header installed by the ncurses build. Compiles against either library
are supposed to work with the headers installed using --enable-widec.

I compiled your test program with

        gcc -o foo.c -lncursesw



followed my : make ... then a make install ....

Still .. no ncursesw.h ... this is ncurses 5.7 version.

sorry - I had in the back of my mind

        #include <ncursesw/curses.h>

discarded that as not being what you were likely to see, and blundered.



Thanks ...

On Fri, Mar 20, 2009 at 01:28:49PM -0500, Ben Duncan wrote:
> Well I have had no luck so far getting UTF-8 extended characters to display.
>
> Follows is my sample program .. am I doing something wrong here ?
>
> TIA ...
>
>
> #include <locale.h>
>
> #include <ncurses.h>

perhaps this (unless the packager does something special, ncursesw's header
is named "ncursesw.h").  Changing that, I do get a graphic character...


<SNIP>


--
Ben Duncan - Business Network Solutions, Inc. 336 Elton Road Jackson MS, 39212 "Never attribute to malice, that which can be adequately explained by stupidity"
      - Hanlon's Razor



_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]