I have a rhel4.4 system. the locale is set to Shift-JIS
I am trying to read a file which has some japanese content and display it in
a ncurses window. I can view the file properly using vi and cat also
displays it fine. Foll are the steps that i follow:
1. setlocale () //set to shift-jis
2. initscr()
3. fopen() //open file
4. fgets() //read into buffer from file
5. printw() //display the contents of the buffer
This program is displaying garbage. Is this the correct way to go about this
or am I missing something?
--
View this message in context:
http://www.nabble.com/ncurses-shift-jis-tp14839361p14839361.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.