Again, german umlauts in ash command line prompt

Ralf Friedl Ralf.Friedl at online.de
Thu Jan 10 11:23:17 UTC 2008


Alexander Griesser wrote:
> I'm still stuggling with getting the german umlauts (ä,ö,ü, a.s.o)
> working on my thinclient installation.
> The really strange thing is, that it doesn't seem to be a keyboard
> layout problem at all.
>
> When I'm at the ash command prompt, I can _NOT_ type ö, ä, ü and what
> is really strange, I cannot type the § character.
>
> In the following output I tried to enter these characters in the first
> line (you can't see them, because they didn't get accepted).
> In the second line, I used the `read` builtin to fill a variable with
> input and that worked perfectly.
>
> I can reproduce this every time and on all my systems (even with a
> freshly compiled busybox on my desktop system), so I'm sure it has
> nothing todo with keyboard layout settings, language settings, etc.
>
> ~/busybox/busybox-1.9.0 $ ll"!$"$"$
> ~/busybox/busybox-1.9.0 $ read TEST
> äöü"!§$
> ~/busybox/busybox-1.9.0 $
>
> Can anyone reproduce this too?
>   
Yes. I also have strace output:

read(0, "\303", 1)                      = 1
read(0, "\244", 1)                      = 1
read(0, "\303", 1)                      = 1
read(0, "\266", 1)                      = 1
read(0, "\303", 1)                      = 1
read(0, "\274", 1)                      = 1
read(0, "\344", 1)                      = 1
read(0, "\366", 1)                      = 1
read(0, "\374", 1)                      = 1
read(0, "t", 1)                         = 1
write(1, "t", 1t)                        = 1
read(0, "e", 1)                         = 1
write(1, "e", 1e)                        = 1
read(0, "s", 1)                         = 1
write(1, "s", 1s)                        = 1
read(0, "t", 1)                         = 1
write(1, "t", 1t)                        = 1

It seems that the characters are simply ignored, at least there is no 
echo for these characters.
I tried both UTF-8 and ISO encoding.

The "read" builtin doesn't use the line editor, therefor all characters 
are displayed correctly and also assigned to the input variable.

Regards
Ralf Friedl



More information about the busybox mailing list