Print this page
 4680 nightly and bldenv need to set LC_ALL if they want to fully override the locale


 720         esac
 721 done
 722 
 723 # correct argument count after options
 724 shift `expr $OPTIND - 1`
 725 
 726 # test that the path to the environment-setting file was given
 727 if [ $# -ne 1 ]; then
 728         echo "$USAGE"
 729         exit 1
 730 fi
 731 
 732 # check if user is running nightly as root
 733 # ISUSER is set non-zero if an ordinary user runs nightly, or is zero
 734 # when root invokes nightly.
 735 /usr/bin/id | grep '^uid=0(' >/dev/null 2>&1
 736 ISUSER=$?;      export ISUSER
 737 
 738 #
 739 # force locale to C


 740 LC_COLLATE=C;   export LC_COLLATE
 741 LC_CTYPE=C;     export LC_CTYPE
 742 LC_MESSAGES=C;  export LC_MESSAGES
 743 LC_MONETARY=C;  export LC_MONETARY
 744 LC_NUMERIC=C;   export LC_NUMERIC
 745 LC_TIME=C;      export LC_TIME
 746 
 747 # clear environment variables we know to be bad for the build
 748 unset LD_OPTIONS
 749 unset LD_AUDIT          LD_AUDIT_32             LD_AUDIT_64
 750 unset LD_BIND_NOW       LD_BIND_NOW_32          LD_BIND_NOW_64
 751 unset LD_BREADTH        LD_BREADTH_32           LD_BREADTH_64
 752 unset LD_CONFIG         LD_CONFIG_32            LD_CONFIG_64
 753 unset LD_DEBUG          LD_DEBUG_32             LD_DEBUG_64
 754 unset LD_DEMANGLE       LD_DEMANGLE_32          LD_DEMANGLE_64
 755 unset LD_FLAGS          LD_FLAGS_32             LD_FLAGS_64
 756 unset LD_LIBRARY_PATH   LD_LIBRARY_PATH_32      LD_LIBRARY_PATH_64
 757 unset LD_LOADFLTR       LD_LOADFLTR_32          LD_LOADFLTR_64
 758 unset LD_NOAUDIT        LD_NOAUDIT_32           LD_NOAUDIT_64
 759 unset LD_NOAUXFLTR      LD_NOAUXFLTR_32         LD_NOAUXFLTR_64




 720         esac
 721 done
 722 
 723 # correct argument count after options
 724 shift `expr $OPTIND - 1`
 725 
 726 # test that the path to the environment-setting file was given
 727 if [ $# -ne 1 ]; then
 728         echo "$USAGE"
 729         exit 1
 730 fi
 731 
 732 # check if user is running nightly as root
 733 # ISUSER is set non-zero if an ordinary user runs nightly, or is zero
 734 # when root invokes nightly.
 735 /usr/bin/id | grep '^uid=0(' >/dev/null 2>&1
 736 ISUSER=$?;      export ISUSER
 737 
 738 #
 739 # force locale to C
 740 LANG=C;         export LANG
 741 LC_ALL=C;       export LC_ALL
 742 LC_COLLATE=C;   export LC_COLLATE
 743 LC_CTYPE=C;     export LC_CTYPE
 744 LC_MESSAGES=C;  export LC_MESSAGES
 745 LC_MONETARY=C;  export LC_MONETARY
 746 LC_NUMERIC=C;   export LC_NUMERIC
 747 LC_TIME=C;      export LC_TIME
 748 
 749 # clear environment variables we know to be bad for the build
 750 unset LD_OPTIONS
 751 unset LD_AUDIT          LD_AUDIT_32             LD_AUDIT_64
 752 unset LD_BIND_NOW       LD_BIND_NOW_32          LD_BIND_NOW_64
 753 unset LD_BREADTH        LD_BREADTH_32           LD_BREADTH_64
 754 unset LD_CONFIG         LD_CONFIG_32            LD_CONFIG_64
 755 unset LD_DEBUG          LD_DEBUG_32             LD_DEBUG_64
 756 unset LD_DEMANGLE       LD_DEMANGLE_32          LD_DEMANGLE_64
 757 unset LD_FLAGS          LD_FLAGS_32             LD_FLAGS_64
 758 unset LD_LIBRARY_PATH   LD_LIBRARY_PATH_32      LD_LIBRARY_PATH_64
 759 unset LD_LOADFLTR       LD_LOADFLTR_32          LD_LOADFLTR_64
 760 unset LD_NOAUDIT        LD_NOAUDIT_32           LD_NOAUDIT_64
 761 unset LD_NOAUXFLTR      LD_NOAUXFLTR_32         LD_NOAUXFLTR_64