bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: ["patch"] don't output negative amount of characters in lib/sh/unicode.c
Date: Wed, 13 Nov 2013 16:24:27 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

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
> multibyte sequence. This value is then returrned to its callers, and
> interpreted as the amount of bytes consumed. (r += u32cconv(v, r)).

That code has been pretty substantially rewritten since bash-4.2 was
released, and no longer returns the value from wctomb().

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]