diff options
author | Karl Williamson <khw@cpan.org> | 2017-11-18 16:50:48 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-11-18 19:49:47 -0700 |
commit | be55b2856b90113f440eb7966a4cadedd69ee5e7 (patch) | |
tree | 3b14781a00372399de224483e490c3061357e728 | |
parent | 566efd885319cacbde16a751c5a0754dcc8eca08 (diff) | |
download | perl-be55b2856b90113f440eb7966a4cadedd69ee5e7.tar.gz |
locale.c: Use computed length for U+10FFFF
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.
-rw-r--r-- | locale.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2939,7 +2939,7 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category) * 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", |