Subject: | Wx breaks Encode(::Guess) |
(Strawberry-)Perl 5.10, Alien::wxWidgets 0.43, Wx 0.91, Windows XP SP3
When executing the following script:
use Wx;
my $content = "<Contents of a ASCII file read with binmode>";
require Encode::Guess;
my $guess = Encode::Guess::guess_encoding( $content, qw(cp1252) );
It will die with the following error: "Unknown encoding: cp1252 at C:/
Strawberry/perl/lib/Encode/Guess.pm line 119, <$fh> line 1."
If you omit the "use Wx;" it works just as expected, which is why I
assume that it is a Wx bug. I'm almost certain it worked with 0.89, but
don't know wether it still worked in 0.90 as this version did not build
on Windows.