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

Re: Perl 5.20.0 Blockers, 2014-03-24

Thread Previous | Thread Next
Craig A. Berry
March 25, 2014 12:45
Re: Perl 5.20.0 Blockers, 2014-03-24
Message ID:
On Tue, Mar 25, 2014 at 12:14 AM, Eric Brine <> wrote:
> On Mon, Mar 24, 2014 at 12:08 PM, Zefram <> wrote:
>> Ricardo Signes wrote:
>> >3.  "Make perlbug Unicode-aware" broke perlbug on Win32
>> >
>> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About