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