[Top][All Lists]

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

Re: printing ASCII chars 0x80 ... 0x9f

From: Thomas Dickey
Subject: Re: printing ASCII chars 0x80 ... 0x9f
Date: Thu, 30 Nov 2006 21:03:51 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Nov 30, 2006 at 10:11:13AM +0100, address@hidden wrote:
> Hello, 
> I'm porting a very old program that uses a special font with special symbols.
> I'm using an bitmap font (bdf and pcf) that includes all the required symbols 
> (0x80 to 0xff). 
> When testing the font with a simple C program ( printf("%c",0x80); ) 
> everything works fine. 
> But when using ncurses' addch(0x80) I get problems with the so called 
> non-printable chars 0x80 to 0x9f (0xa0 ... 0xff works!!). They appear as <80> 
> <81> ... et cetera.
> (The program worked fine with an older release of ncurses. Unfortunatley, I 
> don't know which release.)
> I tried setlocale(LC_ALL,""), but without success. 
> How is it possible to print the chars 0x80 to 0x9f with the current relaese 
> of ncurses?

There are at least two cases for using 0x80-0x9f.  One would be addressed
by setting up locale.  You might be using the other, that I ran into
after 5.5 for lynx:

        + add use_legacy_coding() function to support lynx's font-switching

That's in the rollup patch, etc., from my ftp area.

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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