wxLocale not working with PerlApp

80 views Asked by At

When I run my wxperl app from the command line it works great but after using the PerlApp from: http://www.activestate.com/perl-dev-kit to create an executable I'm seeing the following debug alert (shown below)

wxWidgets Debug Alert

I've tried adding Locale for myFrame like so but I'm still missing something

use Wx::Locale qw(:default); 

Any thoughts?

Thanks, -Paul

1

There are 1 answers

0
Paul On

Here is what I was missing:

use Wx::Locale qw(:default);
Wx::Locale->new( &Wx::wxLANGUAGE_DEFAULT );

use POSIX qw( setlocale LC_ALL );
setlocale(LC_ALL, 'C');

Setting the locale to LC_ALL, 'C' resolved my issue.

-Paul