summaryrefslogtreecommitdiff
path: root/ext/Time
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-02 06:17:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-02 06:17:28 +0000
commitdfffa540bcf4c6b6be7ce9fe4c8ed1d45c6989ba (patch)
treedba63d5e676fff92234afd0c8a1a69372e0e94c0 /ext/Time
parentd7358e6a423c6971725140629ee3e60d938c3458 (diff)
downloadperl-dfffa540bcf4c6b6be7ce9fe4c8ed1d45c6989ba.tar.gz
Only show the message if the locale settings look risky.
p4raw-id: //depot/perl@20444
Diffstat (limited to 'ext/Time')
-rw-r--r--ext/Time/HiRes/Makefile.PL9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/Time/HiRes/Makefile.PL b/ext/Time/HiRes/Makefile.PL
index 1226f74a6b..f9b555055c 100644
--- a/ext/Time/HiRes/Makefile.PL
+++ b/ext/Time/HiRes/Makefile.PL
@@ -445,10 +445,17 @@ sub main {
print <<EOM;
Now you may issue '$make'. Do not forget also '$make test'.
-NOTE: if you get an error like this (line number may vary):
+EOM
+ if ($ENV{LC_ALL} =~ /utf-?8/i ||
+ $ENV{LC_CTYPE} =~ /utf-?8/i ||
+ $ENV{LANG} =~ /utf-?8/i) {
+ print <<EOM;
+NOTE: if you get an error like this (the line number may vary):
Makefile:91: *** missing separator
then set the environment variable LC_ALL to "C" and retry.
+
EOM
+ }
}
}