[PATCH] fix UTF-8 issues in read() builtin

2010-09-07 Thread Alexey Zinovyev
Hello, I think there is a bug in read() builtin. $ cat test echo 'ρ'|while read i; do echo $i; done $ dash test $ bash test ρ Same with some japanese symbols. Looks like dash strips 0x81 byte. diff --git a/src/miscbltin.c b/src/miscbltin.c index 5ab1648..f8c5655 100644 --- a/src/miscbltin.c

Re: [PATCH] fix UTF-8 issues in read() builtin

2010-09-07 Thread Jilles Tjoelker
On Wed, Sep 08, 2010 at 01:26:15AM +0400, Alexey Zinovyev wrote: Hello, I think there is a bug in read() builtin. $ cat test echo 'ρ'|while read i; do echo $i; done $ dash test $ bash test ρ Same with some japanese symbols. Looks like dash strips 0x81 byte. 0x81 == CTLESC, the escape