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

Make sv_utf8_downgrade() and sv_utf8_decode() non-unstable #16822

Closed
p5pRT opened this issue Jan 21, 2019 · 6 comments
Closed

Make sv_utf8_downgrade() and sv_utf8_decode() non-unstable #16822

p5pRT opened this issue Jan 21, 2019 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 21, 2019

Migrated from rt.perl.org#133788 (status was 'resolved')

Searchable as RT133788$

@p5pRT
Copy link
Author

p5pRT commented Jan 21, 2019

From @pali

Hello, these two functions are currently marked as unstable with M in
embed.fnc function so they may change​:

Apmdb |STRLEN |sv_utf8_upgrade|NN SV *sv
Amd |STRLEN |sv_utf8_upgrade_nomg|NN SV *sv
ApdM |bool |sv_utf8_downgrade|NN SV *const sv|const bool fail_ok
Apd |void |sv_utf8_encode |NN SV *const sv
ApdM |bool |sv_utf8_decode |NN SV *const sv

These functions are available since Perl 5.6.0 (just upgrade* since
5.7.2) and used by more XS modules on CPAN. AFAIK their API or behavior
was not changed so I suggest to remove M and make them "stable".

Or is there any specific reason why upgrade and encode is without M and
downgrade and decode with M?

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2019

From @tonycoz

On Mon, 21 Jan 2019 11​:30​:41 -0800, pali@​cpan.org wrote​:

Hello, these two functions are currently marked as unstable with M in
embed.fnc function so they may change​:

Apmdb |STRLEN |sv_utf8_upgrade|NN SV *sv
Amd |STRLEN |sv_utf8_upgrade_nomg|NN SV *sv
ApdM |bool |sv_utf8_downgrade|NN SV *const sv|const bool fail_ok
Apd |void |sv_utf8_encode |NN SV *const sv
ApdM |bool |sv_utf8_decode |NN SV *const sv

These functions are available since Perl 5.6.0 (just upgrade* since
5.7.2) and used by more XS modules on CPAN. AFAIK their API or behavior
was not changed so I suggest to remove M and make them "stable".

Or is there any specific reason why upgrade and encode is without M and
downgrade and decode with M?

Done in 43c6a1a.

Tony

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2019

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2019

@tonycoz - Status changed from 'open' to 'pending release'

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

From @khwilliamson

Thank you for filing this report. You have helped make Perl better.

With the release today of Perl 5.30.0, this and 160 other issues have been
resolved.

Perl 5.30.0 may be downloaded via​:
https://metacpan.org/release/XSAWYERX/perl-5.30.0

If you find that the problem persists, feel free to reopen this ticket.

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

@khwilliamson - Status changed from 'pending release' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant