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
--- busybox/shell/ash.c.orig	2014-06-09 10:28:44.655083422 +0100
+++ busybox/shell/ash.c	2014-06-09 10:31:21.719083317 +0100
@@ -13025,6 +13025,7 @@
 			setvar2("HOSTNAME", uts.nodename);
 		}
 #endif
+		setvar("LANG", "en_US.UTF-8" , VEXPORT);
 		p = lookupvar("PWD");
 		if (p) {
 			if (*p != '/' || stat(p, &st1) || stat(".", &st2)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to