Writing unicode ncurses applications for busybox

Lavrentiy Ivanov ookami at mail.ru
Tue Nov 18 11:02:46 UTC 2014


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 set LANG, and it needs to be set in the controlling 
> terminal, e.g.
>
> export LANG=en_US.UTF-8
>
>
> Cheers
>
> Rich
>
>
>
> On 18/11/14 09:47, 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 desktop.
>> I enabled all UNCIODE_ config options I found
>>
>> I enabled terminal: export TERM="linux2.2"
>>
>> I copied terminfo into my busybox system (kernel 3.2)
>> When I run my application, only ascii is printed. Unicode chars are 
>> absent: no garbage or whatever.
>>
>> How it can be workarounded if it is possible. Application is 
>> dynamically linked and all libraries were transferred too
>>
>>
>> _______________________________________________
>> busybox mailing list
>> busybox at busybox.net
>> http://lists.busybox.net/mailman/listinfo/busybox
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20141118/2700a63b/attachment-0001.html>


More information about the busybox mailing list