Re: forked process exiting before output read

On 01/02/2008, Jeffrey Ratcliffe <jeffrey ratcliffe gmail com> wrote:
Here's a demo trying to send/recv a utf8 character. It crashes with:

Apologies for the noise. The solution is

binmode $reader, ':utf8';
binmode $writer, ':utf8';

AFTER the socketpair call. I had previously tried putting binmode
immediately after creating the filehandle.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]