■_ GNU grep grep.git - grep これ。 「port mb_next_wc to RHEL 6.5 x86-64」とあって、差分が grep.git - grep diff --git a/src/searchutils.c b/src/searchutils.c index 5eb9a12..18dd584 100644 --- a/src/searchutils.c +++ b/src/searchutils.c @@ -285,5 +285,6 @@ mb_next_wc (char const *cur, char const *end) { wchar_t wc; mbstate_t mbs = { 0 }; - return mbrtowc (&wc, cur, end - cur, &mbs) < (size_t) -2 ? wc : WEOF; + r