[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: japanese broken in ncurses 5.7
From: |
Thomas Dickey |
Subject: |
Re: japanese broken in ncurses 5.7 |
Date: |
Mon, 6 Sep 2010 08:34:07 -0400 (EDT) |
On Mon, 6 Sep 2010, ?????? wrote:
I am trying to read a file which have japanese contents and display it by
printw().
but broken character was displayed.
It's displayed well by printf() or cat command.
So I re-installed curses library from version 5.7 to version 5.3.
Then printw() of curses library 5.3 displayed it well.( but 5.4 didn't
display well )
Did you link with ncursesw, or ncurses library?
What should I do on 5.7 in order to display japanese character?
I followed steps as below in my c program.
1.setlocale() // set shiftjis
2.initscr()
3.fopen() //open file
4.fgets() //read into buffer form file
5.printw() //display the contents of the buffer
Following is my current environment.
-emulator : putty
PuTTY has settings for translations (which are you using?)
It would help to have some sample data, to test with.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net