["patch"] don't output negative amount of characters in lib/sh/unicode.c

2013-11-13 Thread bla blamail
introduced with http://git.savannah.gnu.org/cgit/bash.git/commit/lib/sh/unicode.c?id=495aee44 builtin echo -e through ansictr(), and u32cconv() may end up calling wctomb(). however this function may return -1 when it can not be converted into a multibyte sequence. This value is then returrned to i

Re: ["patch"] don't output negative amount of characters in lib/sh/unicode.c

2013-11-13 Thread bla blamail
my bad, should have noticed that git head was in 4.2 and not the testing branch. cheers.

Re: ["patch"] don't output negative amount of characters in lib/sh/unicode.c

2013-11-13 Thread Chet Ramey
On 11/13/13 4:03 PM, bla blamail wrote: > introduced with > http://git.savannah.gnu.org/cgit/bash.git/commit/lib/sh/unicode.c?id=495aee44 > > builtin echo -e > through ansictr(), and u32cconv() may end up calling wctomb(). however > this function may return -1 when it can not be converted into a >