summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-25 13:34:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-25 13:34:19 +0000
commit8170cb1295a74f5fb68f22e0be2bbfb4d5b3e568 (patch)
treebc4d5ccde13f44d6f482ecf26fedba511658f0eb /Makefile.SH
parent5db421000d460f32e95c81901a18f1ba589a1ace (diff)
downloadperl-8170cb1295a74f5fb68f22e0be2bbfb4d5b3e568.tar.gz
Allow resetting the locale system for the duration
of the build (Mac OS X default setting LANG=En_US ist kaputt) p4raw-id: //depot/perl@12646
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 65cf9d8f95..c9cbfe60f2 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -230,6 +230,21 @@ INSTALLPREFIXEXP = $prefix
# $installusrbinperl
# $versiononly
+case "${osname}:${osvers}" in
+darwin:*)
+$spitshell >>Makefile <<EOF
+
+# Your locales are broken (osname $osname, osvers $osvers)
+# and to avoid the numerous
+# perl: warning: Setting locale failed.
+# warnings during the build process we reset the locale variables.
+
+LC_ALL=C
+LANG=C
+LANGUAGE=C
+EOF
+ ;;
+esac
## In the following dollars and backticks do not need the extra backslash.
$spitshell >>Makefile <<'!NO!SUBS!'