On 04/18/2016 07:54 AM, Jim Meyering wrote:
I'm sure you intended this additional change, so
that the if-expression can sometimes be false:

+      if (mbrtowc (&wc, buf, 1, &mbs) >= 0)
-       if (mbrtowc (&wc, buf, 1, &mbs) < (size_t)-2)

Oh yes.  (Blush.)  Or it could be <= 1.


with that, the btowc replacement function still
declares bytes 128..255 to be invalid in the C
locale.


Too bad. I'm afraid someone with access to MirBSD will need to debug it.



Reply via email to