Allow resetting the locale system for the duration
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 25 Oct 2001 13:34:19 +0000 (13:34 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 25 Oct 2001 13:34:19 +0000 (13:34 +0000)
of the build (Mac OS X default setting LANG=En_US
ist kaputt)

p4raw-id: //depot/perl@12646

Makefile.SH

index 65cf9d8..c9cbfe6 100644 (file)
@@ -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!'