bug-ncurses
[Top][All Lists]
Advanced

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

Re: Detect unicode support of the terminal


From: Thomas Dickey
Subject: Re: Detect unicode support of the terminal
Date: Fri, 23 Jun 2006 19:30:51 -0400 (EDT)

On Fri, 23 Jun 2006, Sadrul H Chowdhury wrote:

Hi. Is there a way I can find out whether the terminal supports printing
non-ASCII characters properly? I want to print alternate ASCII characters if
the terminal doesn't have unicode support.

no - "you" (the application) have to believe what the user sets for
the locale.  Generally your application should import the locale
settings by calling
        setlocale(LC_ALL, "");

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




reply via email to

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