nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Only outputting "valid" characters

2014-07-12 08:40:23
   If s is not a null pointer, mbtowc() shall either return 0 (if s
   points to the null byte), or return the number of bytes that
   constitute the converted character (if the next n or fewer bytes
   form a valid character), or return -1 and may set errno to indicate
   the error (if they do not form a valid character).

It goes on to mention EILSEQ.  Does that cover your case?

It ... might?  I always find a rather large gap between theory and reality
when it comes to those wide character POSIX functions.  I think I'll have
to write some tests.

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>