On Fri, 19 Dec 2014 00:54:58 +0900 Norihiro Tanaka wrote: > On Thu, 18 Dec 2014 01:40:18 -0800 > Thanks, I understood that you said. You are right. I changed the patch > so that always_character_boundary is not pruned even if WCP != NULL, and > fixed the API document. I fixed a mismatch with the comment. It does not changes the behavior. We expect that skip_remains_mb() is inlined, and "*WCP = WC" is merged into "IF (P < MBP)" in caller. -- + exceeds P. If WCP is non-NULL and the result is greater than p, set + *WCP to the final wide character processed, or if no wide character + is processed, set it to WEOF. Both P and MBP must be no larger than + END. ........ - if (wcp != NULL) + if (wcp != NULL && p < mbp)