in reply to setlocale problem

I don't see anything in the Locale::gettext module that would cause it to get the setting from the environmental variable LANG. If you want to override the LANG environmental varible you could try putting:
$ENV{LANG}='';
in your code.