Hi Johan, I've run exactly in the same problem, but forgot about it. Here's how I finally made my "UTF8-setup", which is thread safe:
# utf8 support; use utf8; use Encode::Locale; use Encode; use File::Spec; use open qw( :encoding(UTF-8)); binmode(STDOUT, ":utf8"); binmode(STDIN, ":utf8"); Cheers, Markus Am 31.05.2013 20:26, schrieb Johan Vromans: > Mark Dootson <mark.doot...@znix.com> writes: > >> Would it be possible to extract and post an example of code that core >> dumps? I'd like to check if this is a Wx problem that can be fixed. > > Found it! > > #! perl > use threads; > use threads::shared; > use Wx; > #binmode( STDOUT, ':encoding(utf8)' ); > my $worker = threads->create( sub { warn "Hello, World!\n" } ); > > Uncomment the line with binmode and crash! > This happens with CitrusPerl 5.16.3, Wx 2.8 and 2.9. > > It does not crash when the binmode is ':utf8' so the suspect if > Encoding.pm... > > -- Johan >