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

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/bldenv.sh
          +++ new/usr/src/tools/scripts/bldenv.sh
↓ open down ↓ 147 lines elided ↑ open up ↑
 148  148  done
 149  149  shift $((OPTIND-1))
 150  150  
 151  151  # test that the path to the environment-setting file was given
 152  152  if (( $# < 1 )) ; then
 153  153          usage
 154  154  fi
 155  155  
 156  156  # force locale to C
 157  157  export \
      158 +        LC_ALL=C \
      159 +        LANG=C \
 158  160          LC_COLLATE=C \
 159  161          LC_CTYPE=C \
 160  162          LC_MESSAGES=C \
 161  163          LC_MONETARY=C \
 162  164          LC_NUMERIC=C \
 163  165          LC_TIME=C
 164  166  
 165  167  # clear environment variables we know to be bad for the build
 166  168  unset \
 167  169          LD_OPTIONS \
↓ open down ↓ 226 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX