ingydotnet / io-all-pm

All in One Perl IO
http://search.cpan.org/dist/IO-All/
38 stars 20 forks source link

PerlIO layers must be stored and applied in the given order for each IO::All object #39

Closed wchristian closed 10 years ago

wchristian commented 10 years ago

The result of PerlIO layer application on a file handle is dependent on the previously applied layers. As such it is necessary that all layer change instructions (encoding, binary, binmode, utf8 (maybe more?)) do not flip flags on the io object, but add the relevant instructions to an array, which needs to be applied to a file handle at open time.

This would be the ultimate fix for #36.

frioux commented 10 years ago

fixed by #43