* locale requires more than one byte, there are going to be BIG problems.
* */
- if (MB_CUR_MAX > 1 && ! PL_in_utf8_CTYPE_locale
+ const int mb_cur_max = MB_CUR_MAX;
+
+ if (mb_cur_max > 1 && ! PL_in_utf8_CTYPE_locale
/* Some platforms return MB_CUR_MAX > 1 for even the "C" locale.
* Just assume that the implementation for them (plus for POSIX) is
&& ! isNAME_C_OR_POSIX(newctype))
{
DEBUG_L(PerlIO_printf(Perl_debug_log,
- "Unsupported, MB_CUR_MAX=%d\n", (int) MB_CUR_MAX));
+ "Unsupported, MB_CUR_MAX=%d\n", mb_cur_max));
Perl_ck_warner_d(aTHX_ packWARN(WARN_LOCALE),
"Locale '%s' is unsupported, and may crash the"