Bug 192287 - Problem with line-drawing characters using UTF-8
Summary: Problem with line-drawing characters using UTF-8
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: iptraf
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-18 19:38 UTC by Thomas Müller
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: iptraf-3.0.0-2.fc5
Clone Of:
Environment:
Last Closed: 2006-08-21 07:00:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch for Makefile to link against ncursesw (1.57 KB, patch)
2006-05-18 19:38 UTC, Thomas Müller
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.