This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
*ctl: ensure the ARG parameter's UTF-8 flag is reset
authorTony Cook <tony@develop-help.com>
Tue, 17 Nov 2020 03:07:32 +0000 (14:07 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 24 Nov 2020 02:35:21 +0000 (13:35 +1100)
commit18b3ff2673bbc5f9b37c6d9b6c912f882537ddc2
tree5e2170865e06ed9b8fc616e9456e333a1dcf9b33
parent617613e2415f6e65538efd1001089b567bdff5ad
*ctl: ensure the ARG parameter's UTF-8 flag is reset

If the SV supplied as ARG had the SVf_UTF8 flag on it would be left
on, which would effectively corrupt the returned buffer.

Only tested with shmctl(), since the other *ctl() functions only have
more complex structures with indeterminate types that would require
more effort to test.
doio.c
t/io/sem.t