[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ncurses shift-jis
From: |
technoxicated |
Subject: |
ncurses shift-jis |
Date: |
Tue, 15 Jan 2008 05:02:49 -0800 (PST) |
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.
- ncurses shift-jis,
technoxicated <=