|
From: | 이학성 |
Subject: | japanese broken in ncurses 5.7 |
Date: | Mon, 6 Sep 2010 14:08:45 +0900 |
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 ) 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 -termianl : xterm -locale LANG=ja_JP.shiftjis LC_CTYPE="ja_JP.shiftjis" LC_NUMERIC="ja_JP.shiftjis" LC_TIME="ja_JP.shiftjis" LC_COLLATE="ja_JP.shiftjis" LC_MONETARY="ja_JP.shiftjis" LC_MESSAGES="ja_JP.shiftjis" LC_PAPER="ja_JP.shiftjis" LC_NAME="ja_JP.shiftjis" LC_ADDRESS="ja_JP.shiftjis" LC_TELEPHONE="ja_JP.shiftjis" LC_MEASUREMENT="ja_JP.shiftjis" LC_IDENTIFICATION="ja_JP.shiftjis" LC_ALL= I'll be wating for your answer.. thanks.. |
[Prev in Thread] | Current Thread | [Next in Thread] |