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

Re: [perl #133431] Potential bug in IO::Socket

Thread Previous | Thread Next
Tony Cook
August 14, 2018 00:29
Re: [perl #133431] Potential bug in IO::Socket
Message ID:
On Mon, Aug 13, 2018 at 12:27:46PM +0300, Βλάσης Χατζησταύρου wrote:
> Ah, thanks Tony that was helpful.
> So I understand that from 5.30 onward we should NOT set :utf8 on the handle
> and let the receiving end deal with the stream ie decode it as UTF-8?


Note that your code is already potentially broken with the :utf8 (or
even :encoding(UTF-8)) layer, since recv() and sysread() don't
validate the UTF-8 they read.


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