Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 46309
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: michael [...] coders-haven.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.91
Fixed in: (no value)



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.
Update: I was able to get a more detailed error message which I attached to this mail. ("Unzulässiger Zugriff auf einen Speicherbereich" IMHO is the german equivalent of "Access violation")
DIE: Can't load 'C:/strawberry/perl/lib/auto/Encode/Byte/Byte.dll' for module Encode::Byte: load_file:Unzulässiger Zugriff auf einen Speicherbereich at C:/strawberry/perl/lib/XSLoader.pm line 70, <$fh> line 1. at C:/strawberry/perl/lib/Encode/Byte.pm line 8 DIE: Can't load 'C:/strawberry/perl/lib/auto/Encode/Byte/Byte.dll' for module Encode::Byte: load_file:Unzulässiger Zugriff auf einen Speicherbereich at C:/strawberry/perl/lib/XSLoader.pm line 70, <$fh> line 1. at C:/strawberry/perl/lib/Encode/Byte.pm line 8 Compilation failed in require at C:/strawberry/perl/lib/Encode.pm line 118, <$fh> line 1. DIE: Attempt to reload Encode/Byte.pm aborted. Compilation failed in require at C:/strawberry/perl/lib/Encode.pm line 118, <$fh> line 1. DIE: Unknown encoding: cp1252 at C:/strawberry/perl/lib/Encode/Guess.pm line 119, <$fh> line 1. Unknown encoding: cp1252 at C:/strawberry/perl/lib/Encode/Guess.pm line 119, <$fh> line 1. Perl exited with active threads: 1 running and unjoined 0 finished and unjoined 0 running and detached
On Sat Jun 27 03:03:56 2009, moc@coders-haven.net wrote: Your test case works for me (I am upgrading Encode and Encode::Guess to retry with the latest version). Regards, Mattia