in reply to Re^4: erroneous warning involving locale and input encoding: perl bug?
in thread erroneous warning involving locale and input encoding: perl bug?
The fault can be reduced to the following:
which gives an assert failure on bleadperl. The locale-variant of the TRIE code in the regex engine appears to be treating the 'no more chars' special value of nextchr (-10) as a real large utf8 character:use experimental 'smartmatch'; use POSIX 'locale_h'; use locale ':ctype'; setlocale(LC_CTYPE, 'en_US'); $_ = "x"; utf8::upgrade($_); /x(y|z)?/;
By all means perlbug it&& UTF8_IS_ABOVE_LATIN1(nextchr)
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: erroneous warning involving locale and input encoding: perl bug?
by raygun (Scribe) on Apr 18, 2017 at 21:44 UTC | |
Re^6: erroneous warning involving locale and input encoding: perl bug?
by raygun (Scribe) on Apr 22, 2017 at 00:43 UTC |
In Section
Seekers of Perl Wisdom