|
From: | Pádraig Brady |
Subject: | Re: [PATCH] mbrlen, mbrtowc: fix bug with empty input |
Date: | Fri, 16 May 2014 23:20:19 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
General question. To me, mbrtowc returning 0 for empty input is not surprising. Also POSIX says for mbr{len,towc} that they shall return 0 "If the next n or fewer bytes complete the character that corresponds to the null wide character" What am I missing? Pádraig. p.s. there is a small "(size_t) 2" typo in a comment in the patch.
[Prev in Thread] | Current Thread | [Next in Thread] |