setting a default LANG option for unicode, ash shell - patch

Richard Moore rich at richud.com
Thu Jun 12 09:36:27 UTC 2014


Hi,

I am just posting this in case it helps someone else out.

I had trouble creating a small live boot system to run an ncurses 
program requiring unicode support, running straight from rcS.
Without the LANG env set it didn't display any unicode. Exporting LANG 
in rcS didnt have an effect.
I had partial success starting it via a new shell from rcS and exporting 
it the variable but ultimately if the program was exited and then 
restarted, the env was gone.

This little patch sets a default utf8 LANG option for the ash shell so 
you don't need to try and export it, it will just work from the get go. 
Hope it is of some use to someone.


Cheers


Rich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-shell_ash.c.patch
Type: text/x-patch
Size: 336 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140612/46a39df1/attachment-0001.bin>


More information about the busybox mailing list