Re: cat in locale ru_RU.utf8 or this is the bash issue?
From:
Dmitry V. Levin
Subject:
Re: cat in locale ru_RU.utf8 or this is the bash issue?
Date:
Wed, 12 Jan 2005 00:44:23 +0300
Hi,
On Tue, Jan 11, 2005 at 11:29:40PM +0300, Peter Volkov Alexandrovich wrote:
> I've changed my locale to ru_RU.utf8 and now I have some problem is with cat
> utilty. When I do:
> $ cat
> words in russian<enter>
>
> I should get the same string again. But if I misstyped and then edited my
> words in russian language with backspace then next line differs from the
> previous. So if I type:
>
> абг<backspace>в
>
> the first line will be:
>
> абв
>
> but the second
>
> аб???
>
> As you can see 3-d character changed. It is not `в`.
This is terminal issue, not related to coreutils at all.
Have a look at this transcript:
$ cat |od -a
абв
0000000 P 0 P 1 P 2 nl
0000007
$ cat |od -a
абг<backspace>в
0000000 P 0 P 1 P P 2 nl
0000010
$ cat |od -a
абг<backspace><backspace>в
0000000 P 0 P 1 P 2 nl
0000007
When you hit backspace, your terminal driver erases only last byte of the
two-byte symbol 'в'.
--
ldv