develooper Front page | perl.perl5.porters | Postings from March 2014

Re: Perl 5.20.0 Blockers, 2014-03-24

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
March 25, 2014 12:45
Subject:
Re: Perl 5.20.0 Blockers, 2014-03-24
Message ID:
CA+vYcVwXisrkJYTNFH5XeVvVsx7tt7uMPbZ7AT_2eY3YnvmC1A@mail.gmail.com
On Tue, Mar 25, 2014 at 12:14 AM, Eric Brine <ikegami@adaelis.com> wrote:
> On Mon, Mar 24, 2014 at 12:08 PM, Zefram <zefram@fysh.org> wrote:
>>
>> Ricardo Signes wrote:
>> >3.  "Make perlbug Unicode-aware" broke perlbug on Win32
>> >    https://rt.perl.org/Ticket/Display.html?id=121277
>>
>> I think there's a bug in the Unicode-awareness patch.
>
>
> And I have a third. It's printing decoded text to a binary handle.
>
> open(REP, '>:raw', $filename) or die "Unable to create report file
> '$filename': $!\n";
>
> open(F, "<:$input_encoding", $file)
>     or die "Unable to read report file from '$file': $!\n";
> while (<F>) {
>     print REP $_
> }

Maybe it's obvious to everyone else, but I'd appreciate it if you
could explain to me what the bug is.  The primary goal was to
construct a mail message with multiple attachments having potentially
multiple encodings, each potentially different from the encoding of
the message text.  The primary testing that I (and FC) did was to send
attachments in various encodings and see how they came out in the wash
after mail transport.  This seems to work, but if there's a better way
to do it I'd be happy to hear about it.

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