On Mon, Oct 17, 2011 at 1:49 AM, Brian Fraser <fraserbn@gmail.com> wrote: > The bad-but-quick way to fix this is to replace the PerlIO_fdopen()s in > PerlIO_tmpfile() with PerlIO_openn() calls that pass ":" as the layers > argument. > > That's bad because of this: > <leont> I can think of some situations where it is the wrong thing to do, > mostly because you push layers after open, instead of opening with the > layers. Still, it may be good enough as a stopgap until the real fix arrives. > So I'm thinking that the best solution would be to have a tmpfile() > variation that takes a layers argument, and have the current tmpfile() as a > wrapper around that. Yeah, that'd make sense. LeonThread Previous