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

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

Thread Previous | Thread Next
August 17, 2018 02:37
Re: [perl #133431] Potential bug in IO::Socket
Message ID:
On 14/8/2018 03:29, Tony Cook via RT wrote:
> 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?
> Correct.
> 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.
> Tony

Thank you Tony.

I suspected as much after your previous message (ie the code being 
already broken when using :utf8) so it's good to see this confirmed by 
you, too. I "inherited" this code from a previous developer and I'm 
trying to port it to a newer system.

Is there anything I need to do on my end to have this case closed?

Best regards & many thanks,

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