JulienPalard/is_utf8 — pull request #2 by hmgle (2014-04-02 13:18:27+00:00)
Title: fix multibyte split at end of buffer

As a valid utf-8 sequence only has 6 forms: 1 byte, 2 bytes, ..., 6 bytes, it can avoid the truncation of a valid utf-8 sequence if the BUFSIZE is set to 4140(4140 is divisible by 2, 3, 4, 5 and 6). :-)