Skip to content
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

Fix string encoding issues #40

Merged
merged 9 commits into from
Feb 24, 2021
Merged

Fix string encoding issues #40

merged 9 commits into from
Feb 24, 2021

Conversation

johannessen
Copy link
Collaborator

Fixes #38, fixes #39.

As a result of resolving #38, REST::Neo4p’s rt_91640.t passes when run over Bolt; see majensen/rest-neo4p#29 (comment).

Both of the issues resolved by this PR only occur in what I believe to be somewhat rare situations. IMHO releasing this to CPAN is not urgent at all.

Not too sure about this one ... while bytes_to_utf8 is "experimental" according to perlapi, it isn't labelled as such in perlguts, which actually recommends using it for our exact scenario. bytes_to_utf8 was introduced in Perl 5.7.0, so it's been around like forever and it seems unlikely that it would suddenly vanish. And avoiding bytes_to_utf8 in the way this change does uses up more (temp) memory.

In spite of all that, using "experimental" functions seems like a bad idea to me.

newSVpvn_flags is available from Perl 5.10.1.
@johannessen johannessen self-assigned this Feb 24, 2021
@johannessen johannessen merged commit 6e8e9a0 into master Feb 24, 2021
@johannessen johannessen deleted the fix-strings branch February 24, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant