Closed schwern closed 12 years ago
Just tried this in perl 5.14.2 and it works, no test failures.
I just supplied a better fix to autodie. @pjf is excited, so hopefully we'll see an autodie release soon and I can junk this hack.
oops, I suspect I did something wrong. I saw a pull request, it said it could eb auto-merged.. I thought it was on my fork but it appears to be in the main perl5i... oops.
There's no need for my hack now that autodie is fixed. No worries, I'll revert it.
utf8::all switched from using a wrapper around open to using the open pragma. Unfortunately, autodie loses the open pragma. This fixes most of the problem. The only thing remaining is because autodie does not recognize our open() as CORE::open() it formats the error message a little differently. At this point I'd rather see the problem fixed inside autodie than hack the bug further here.
I'm not entirely sure why its kosher to have a function named open() that calls open() (which is autodie's open). It was necessary to name our function open() so that autodie produced a sensible error message.
In addition:
PS This will fix the current failing tests and get CPAN working again.