Red Hat Bugzilla – Bug 192287
Problem with line-drawing characters using UTF-8
Last modified: 2007-11-30 17:11:33 EST
Description of problem:
When using putty to log into my linux pc I'm not getting correct line-drawings
in iptraf when using an utf8-charset.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. log in using putty
2. set locale/charset to UTF-8
3. set correct translation/charset in putty
4. export TERM=xterm
5. start iptraf
line-drawing characters show as lqqqqqqqqqk...
While this actually may be a misbehavior of putty, it is quite easy to fix by
One just needs to link iptraf against ncursesw instead of ncurses. (see attached
As I understand, ncursesw behaves exactly like ncurses, but has improved support
for wide characters. Fedore Core uses UTF-8 by default, so it would suit and it
shouldn't break anything.
The advantage is, that one can give ncursesw a hint on how to use line-drawing
characters by setting an environment variable.
Created attachment 129481 [details]
Patch for Makefile to link against ncursesw
this patch works for you? I tested it and it won't work. It's possibly problem
of putty. I had the same problem with mc.
I just tested the patch using a clean installation of FC5 and putty.
After applying the patch, setting putty to UTF-8 and setting the environment
variable (export NCURSES_NO_UTF8_ACS=1), I get lines, boxes etc as expected.
Sorry, I forgot to mention the actual name of the variable I was talking about
in my initial report.
I just noticed that mc works perfectly out of the box, without the need for a
special environment variable. Unfortunately I didn't have time to take a close
look at the source.