Again, german umlauts in ash command line prompt

Denis Vlasenko vda.linux at googlemail.com
Sat Feb 2 17:05:36 UTC 2008


On Monday 14 January 2008 14:30, Paul Fox wrote:
> alexander wrote:
>  > 
>  > Thanks. Could you please also have a look at vi.c? It has the same
>  > problem. I already opened up a topic on this but got no reply so far...
> 
> sure.  give me a day or two.

This is not a simple problem. The short-term fix is to allow
all chars with codes >= 32. However, in UTF-8 non-ASCII chars
(German umlauts etc) are actually multi-byte sequences,
and they cannot be checked for validity by looking at single
character's code.

for now, ENABLE_FEATURE_VI_8BIT in vi allows any chars with codes >= 32
(except for 0x9b which is a control char for VT-100 terminals (STUPID!!!)).
Umlauts should work in vi, if they are single chars, not UTF-8 sequences.
--
vda



More information about the busybox mailing list