in reply to Re^2: libintl.a for Strawberry Perl
in thread libintl.a for Strawberry Perl

... it doesn't work, as it (roughly) assumes the system POSIX::setlocale(LC_MESSAGES,"") will return the locale to use, which is not the case for Windows

The documentation for Locale::gettext indicates that it, too, relies on POSIX::setlocale(LC_MESSAGES,""). (See the SYNOPSIS.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: libintl.a for Strawberry Perl
by fdesar (Beadle) on Jan 25, 2019 at 10:08 UTC
    You’re right. I finally rewrote for my own usage a gettex_basic module in Pure Perl that does only the very basic of gettext (ignoring plural forms and codesets) which test if we are on Win32 get the locale by a special way (from registry). And it finally fits my need : I use Locale:gettext if LC_MESSAGES is defined and otherwwise, if Win32, get the system value through the registry and convert it to a POSIX compliant language code...