Paul
Paul

Reputation: 11746

wxLocale not working with PerlApp

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

Upvotes: 0

Views: 80

Answers (1)

Paul
Paul

Reputation: 11746

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

Upvotes: 0

Related Questions