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/nightly.sh
          +++ new/usr/src/tools/scripts/nightly.sh
↓ open down ↓ 729 lines elided ↑ open up ↑
 730  730  fi
 731  731  
 732  732  # check if user is running nightly as root
 733  733  # ISUSER is set non-zero if an ordinary user runs nightly, or is zero
 734  734  # when root invokes nightly.
 735  735  /usr/bin/id | grep '^uid=0(' >/dev/null 2>&1
 736  736  ISUSER=$?;      export ISUSER
 737  737  
 738  738  #
 739  739  # force locale to C
      740 +LANG=C;         export LANG
      741 +LC_ALL=C;       export LC_ALL
 740  742  LC_COLLATE=C;   export LC_COLLATE
 741  743  LC_CTYPE=C;     export LC_CTYPE
 742  744  LC_MESSAGES=C;  export LC_MESSAGES
 743  745  LC_MONETARY=C;  export LC_MONETARY
 744  746  LC_NUMERIC=C;   export LC_NUMERIC
 745  747  LC_TIME=C;      export LC_TIME
 746  748  
 747  749  # clear environment variables we know to be bad for the build
 748  750  unset LD_OPTIONS
 749  751  unset LD_AUDIT          LD_AUDIT_32             LD_AUDIT_64
↓ open down ↓ 1501 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX