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

Re: source encoding

Thread Previous
From:
John Imrie
Date:
October 26, 2017 18:14
Subject:
Re: source encoding
Message ID:
0f512f0c-b454-af95-ab61-6011ee4a406b@virginmedia.com


On 25/10/2017 21:05, Zefram wrote:
> John Imrie wrote:
>> There is another edge case that needs to be discussed, what happens to the
>> DATA file handle. Under these conditions it should, I think, have the
>> :encoding(utf8) layer added to it by default.
> I'm dubious about what it would take to deprecate reliance on the
> current default before changing it.  I also wonder about actual binary
> data sections.  I think we'd have to leave the behaviour unchanged:
> the DATA handle is handed off to the user with no encoding layer.
>
> -zefram
I hadn't considered binary data; I do wander what effect having raw 
binary data in a utf8 encoded file would have when trying to edit the 
file due to invalid utf8 byte sequences.

For now I withdraw my request for changing the default encoding on the 
DATA  file handle to utf8 as that's likely to complicate things further

John

Thread Previous


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