Writing unicode ncurses applications for busybox

2014-11-18 Thread Pugnator
Hi all, I write ncurses based application which utilizes  russian characters. It looks like this: wchar_t *unicode_string = L"Это юникод"; mvwprintw(stdscr,1,5,"%ls", unicode_string);    And it works pretty well on my desktop. I enabled all UNCIODE_ config options I found I enabled terminal:

Re: Writing unicode ncurses applications for busybox

2014-11-18 Thread Lavrentiy Ivanov
I tested with export ru_RU.UTF-8 This was set in init script I created file with russian chars in it and it also displayed as but it seems to be ls-related. I saw uch an issues in mailing list In my case it is not displayed at all On 18.11.2014 13:25, Richard Moore wrote: Hi, You need to

Re: Writing unicode ncurses applications for busybox

2014-11-18 Thread Lavrentiy Ivanov
It didn't do the trick fr some reason.. here is my config: CONFIG_UNICODE_SUPPORT=y # CONFIG_UNICODE_USING_LOCALE is not set # CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set CONFIG_UNICODE_COMBINING_WCHARS=y CONFIG_UNICODE_WIDE_WCHARS=y # CONFIG_UNICODE_BIDI_SUPPORT is not set # CONFIG_UNICODE_NE

Re: Writing unicode ncurses applications for busybox

2014-11-18 Thread Rich Felker
On Tue, Nov 18, 2014 at 12:47:36PM +0300, Pugnator wrote: > Hi all, > I write ncurses based application which utilizes  russian characters. It > looks like this: > > wchar_t *unicode_string = L"Это юникод"; > mvwprintw(stdscr,1,5,"%ls", unicode_string);    > > And it works pretty well on my de

Re: Writing unicode ncurses applications for busybox

2014-11-27 Thread Lavrentiy Ivanov
Thank you a lot for your help. After stracing on different machines, I found the problem - lack of fonts So the correct chain to make busybox support specific language with ncurses: ash.c patch you provided correct terminfo database (linux works fine for me) correct font, for example Lat15-Fixed1