New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BBC - undefined symbol: utf8n_to_uvuni #196
Comments
we tried the replacement long time ago, and found that it's new functionality was not sufficient. it is also documented there. |
As far as I can tell this is easy to fix, what isn't clear to me is what behavior you would want. It seems like only difference between |
Look at my code which is there since 5.32: Try to workaround 5.32 utf8n_to_uvuni deprecation. The correct replacement looks like utf8n_to_uvchr now. /* Since perl 5.14 we can disallow illegal unicode above U+10FFFF.
Before we could only warn with warnings 'utf8'.
We accept only valid unicode, unless we are in the relaxed mode.
perl 5.32 deprecated utf8n_to_uvuni accepting illegal unicode, so relaxed does not
allow such illegal unicode anymore, rather throws a warning in the 'utf8' category.
Still looking for a way to get the old correct behavior. */
#if PERL_VERSION > 36
UV c = utf8n_to_uvchr (s, len, clen,
UTF8_CHECK_ONLY | (relaxed ? 0 : UTF8_DISALLOW_SUPER));
#elif PERL_VERSION > 12
UV c = utf8n_to_uvuni (s, len, clen,
UTF8_CHECK_ONLY | (relaxed ? 0 : UTF8_DISALLOW_SUPER));
#elif PERL_VERSION >= 8
UV c = utf8n_to_uvuni (s, len, clen, UTF8_CHECK_ONLY);
#endif Encode is in a worse situation than me, he wrote everything by himself to be independent on this mess. |
This seems to work, but is against the p5p recommendations. Fixes GH #196
This seems to work, but is against the p5p recommendations. Fixes GH #196
BTW: JSON::XS needs the same workaround now. He has no bugtracker. |
Fixed with 4.30 |
We have a blead-breaks-CPAN report due to a long-deprecated function that has now been removed.
Perl/perl5#19842
The documentation on the now-deleted function suggests an alternative to use:
The text was updated successfully, but these errors were encountered: