|Summary:||Problem with line-drawing characters using UTF-8|
|Product:||[Fedora] Fedora||Reporter:||Thomas Müller <thomas>|
|Component:||iptraf||Assignee:||Marcela Mašláňová <mmaslano>|
|Status:||CLOSED CURRENTRELEASE||QA Contact:|
|Fixed In Version:||iptraf-3.0.0-2.fc5||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2006-08-21 07:00:20 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
Description Thomas Müller 2006-05-18 19:38:24 UTC
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): 3.0.0-1.3.FC5 How reproducible: always 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 Actual results: line-drawing characters show as lqqqqqqqqqk... Expected results: lines :) Proposed fix: While this actually may be a misbehavior of putty, it is quite easy to fix by patching iptraf. One just needs to link iptraf against ncursesw instead of ncurses. (see attached patch) 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.
Comment 1 Thomas Müller 2006-05-18 19:38:24 UTC
Created attachment 129481 [details] Patch for Makefile to link against ncursesw
Comment 2 Marcela Mašláňová 2006-08-01 13:16:14 UTC
Hello, 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.
Comment 3 Thomas Müller 2006-08-02 12:13:28 UTC
Hi, 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.