Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: read full multibyte string a bit more sooner



On Sat, Sep 12, 2015 at 12:41 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
>> ... if I step across
>> getrestchar() with a debugger, it's failing on any character that
>> is more than two bytes wide (returning only the first two bytes),
>
> getrestchar()  only changed to the extent of passing back extra info.
> Itʼs being called at a different point but as long as the first byte  is
> correct that shouldn't matter. Is that happening with 5.1.1?

Yes, this appears also to happen with 5.1.1, which is why I began to
suspect something external such as my LC_CTYPE value -- but I tried
setting that to a couple of different non-English things and still
have the same problem.  mbrtowc() is always claiming a complete
character after two bytes on that sample input.



Messages sorted by: Reverse Date, Date, Thread, Author