summaryrefslogtreecommitdiffstats
path: root/lib/Locale/Po4a/Common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Locale/Po4a/Common.pm')
-rw-r--r--lib/Locale/Po4a/Common.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Locale/Po4a/Common.pm b/lib/Locale/Po4a/Common.pm
index 1b09adc..9a9f069 100644
--- a/lib/Locale/Po4a/Common.pm
+++ b/lib/Locale/Po4a/Common.pm
@@ -224,7 +224,9 @@ BEGIN {
if ( eval { require Locale::gettext } ) {
import Locale::gettext;
require POSIX;
- POSIX::setlocale( &POSIX::LC_MESSAGES, '' );
+
+ # This cannot be done on Windows
+ POSIX::setlocale( &POSIX::LC_MESSAGES, '' ) unless $^O eq 'MSWin32';
} else {
eval '
sub bindtextdomain($$) { }