develooper Front page | perl.perl5.porters | Postings from October 2018

[perl #133610] [RFC] feature sysio_bytes

Thread Next
Tony Cook
October 23, 2018 00:14
[perl #133610] [RFC] feature sysio_bytes
Message ID:
# New Ticket Created by  Tony Cook 
# Please include the string:  [perl #133610]
# in the subject line of all future correspondence about this issue. 
# <URL: >

In [perl #125760] I suggested obsoleting sysread and syswrite on :utf8
handles, and after some discussion on #p5p, also deprecated send and
recv on :utf8 handles.

With 5c0551aafb45d343b720500fd9560ffedd9607fa the deprecation was
carried through and these operators now croak when used on a :utf8

So how can we get to a saner behaviour for these operators without
silently changing the behaviour of existing code?

The attached patches add a new feature that prevents these operators
from croaking when used on a :utf8 handle, but also makes them work in
bytes, rather then the sketchy way they did before.

This feature is currently not part of any version feature bundles, but
this could change.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About