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

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

Thread Previous | Thread Next
From:
=?UTF-8?B?zpLOu86sz4POt8+CIM6nzrHPhM62zrfPg8+EzrHPjc+Bzr/PhQ==?=
Date:
August 17, 2018 02:37
Subject:
Re: [perl #133431] Potential bug in IO::Socket
Message ID:
29109_1534233320_5B728AE8_29109_39_1_2f1bf5d7-d51c-dbf9-f0bf-02925264c242@kinetix.gr
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,
Vlasis.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About