This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi sv_setpvn: Note UTF-8 flag not affected
authorKarl Williamson <khw@cpan.org>
Thu, 16 Jan 2020 20:38:18 +0000 (13:38 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 19 Jan 2020 05:07:04 +0000 (22:07 -0700)
sv.c

diff --git a/sv.c b/sv.c
index a5a3b4a..f464065 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -4944,6 +4944,9 @@ The C<len> parameter indicates the number of
 bytes to be copied.  If the C<ptr> argument is NULL the SV will become
 undefined.  Does not handle 'set' magic.  See C<L</sv_setpvn_mg>>.
 
+The UTF-8 flag is not changed by this function.  A terminating NUL byte is
+guaranteed.
+
 =cut
 */