[BusyBox] busybox sh and German characters

Vladimir N. Oleynik dzo at simtreas.ru
Mon Mar 26 15:52:39 UTC 2001


Ralph.

> The scharfes-s (like a beta), umlaut and a few other characters on the german keyboard do
> not display at all, but all other characters are in their correct places.  Ie. y and z are
> in the correct place, the characters above the number keys (such as double quotes "$" etc)
> are also correct.  

Problem in display or input?

busybox $ cat non-latin.txt
[non-latin-text]
busybox $ echo non-latin-chars_not_inputed...

If you have last problem, requires:
1) Put to /etc/profile

export LC_CTYPE=de_DE.(i not know true)

2) Patch to sh.c 

a) in start lines after commants:
+#include <locale.h>

b) in function builtin_export():

#ifndef BB_FEATURE_SH_SIMPLE_PROMPT
        if (strncmp(v, "PS1=", 4)==0)
                PS1 = getenv("PS1");
        else if (strncmp(v, "PS2=", 4)==0)
                PS2 = getenv("PS2");
#endif
+ 	if(strncmp(v, "LC_ALL=", 7)==0)
+		setlocale(LC_ALL, getenv("LC_ALL");
+	if(strncmp(v, "LC_CTYPE=", 7)==0)
+		setlocale(LC_CTYPE, getenv("LC_CTYPE");


What you using libc? If you use uclibc, requires: get fresh version and
reconfigure
with locale support. 
I author locale in this library, please put you bug reports for me, if this not
work.


--w
vodz





More information about the busybox mailing list