bug-ncurses
[Top][All Lists]
Advanced

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

ACS/UTF-8 Line Drawing Question


From: Marc Smith
Subject: ACS/UTF-8 Line Drawing Question
Date: Wed, 22 Jun 2016 11:43:29 -0400

Hi,

I have a CDK application and I am experiencing the classic
"Line-drawing characters come out as x's and q's" problem with PuTTY.
I believe I have configured my system correctly for UTF-8 and I am
only using ncurses/CDK with wide-character support (only libncursesw
and libcdkw).

I only experience this problem with PuTTY when in UTF-8 mode...
switching to Latin1 makes the line characters appear correctly. The
TERM is 'xterm' when using PuTTY (default). The default "Use Unicode
line drawing points" option is set in PuTTY.

In other terminal emulators, the line characters appear correctly --
the problem is just with PuTTY and I believe due to the specific
behavior PuTTY has chosen to implement
(http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/utf8-plus-vt100.html)
vs. other terminal emulators supporting VT100 line drawing.

I've tried setting "export NCURSES_NO_UTF8_ACS=1" but this has no effect.

As I understand it, the line drawing characters are being drawn with
ACS, but for PuTTY, they need to come through as UTF-8 characters
(when using UTF-8 mode). It is my understanding that ncurses should
handle this implicitly, so I'm assuming this is a configuration
problem on my end.

address@hidden ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

My ncurses and CDK versions are severely dated: ncurses-5.7, cdk-5.0-20120323

Any help or pointers would be greatly appreciated!


Thanks,

Marc



reply via email to

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