develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #133788] Make sv_utf8_downgrade() and sv_utf8_decode()non-unstable

Thread Previous
From:
perlbug-followup
Date:
January 21, 2019 19:30
Subject:
[perl #133788] Make sv_utf8_downgrade() and sv_utf8_decode()non-unstable
Message ID:
rt-4.0.24-6200-1548099041-1100.133788-75-0@perl.org
# New Ticket Created by   
# Please include the string:  [perl #133788]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133788 >


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?


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About