The previous commit calculates this and placed the result in a header
file. This now uses the calculated value instead of a hard-coded "4",
which is incorrect on EBCDIC platforms.
* Unicode code point. Since UTF-8 is the only non-single byte
* encoding we handle, we just say any such encoding is UTF-8, and if
* turns out to be wrong, other things will fail */
- is_utf8 = MB_CUR_MAX >= 4;
+ is_utf8 = MB_CUR_MAX >= STRLENs(MAX_UNICODE_UTF8);
DEBUG_L(PerlIO_printf(Perl_debug_log,
"\tMB_CUR_MAX=%d; ?UTF8 locale=%d\n",