tech-userlevel archive

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

Re: curses vs non-ASCII



On Sat, Nov 14, 2015 at 10:13:57AM -0500, Mouse wrote:
> I'm writing a program with a curses(3) interface, and I'm finding that
> non-ASCII octets in strings are getting completely lost somewhere
> between the addstr()/printw()/etc argument and the display.  (This is
> with 5.2 at the moment, but if someone has answers for other versions,
> I'd be interested in those too.)

Have you called setlocale(3) appropiately? E.g. setlocale(LC_CTYPE, "")
to pick up the setting from the environment.

Joerg


Home | Main Index | Thread Index | Old Index