1#ident "@(#)rules.env	1.3 20/09/03 "
2###########################################################################
3# Written 2009-2020 by J. Schilling
4###########################################################################
5#
6# Rules for setting the locale environment to the default "C"
7#
8###########################################################################
9# Copyright (c) J. Schilling
10###########################################################################
11# The contents of this file are subject to the terms of the
12# Common Development and Distribution License, Version 1.0 only
13# (the "License").  You may not use this file except in compliance
14# with the License.
15#
16# See the file CDDL.Schily.txt in this distribution for details.
17# A copy of the CDDL is also available via the Internet at
18# http://www.opensource.org/licenses/cddl1.txt
19#
20# When distributing Covered Code, include this CDDL HEADER in each
21# file and include the License file CDDL.Schily.txt from this distribution.
22###########################################################################
23#
24# acgeneral.m4 claims that SCO Unix may have problems with setting LANG=C
25# so we are careful not to set LANG unless it was already set by someone else
26#
27###########################################################################
28
29_LANG=		$(_UNIQ)$(LANG)
30__LANG=		$(_LANG:$(_UNIQ)=NO_LANG)
31___LANG=	$(__LANG:$(_UNIQ)%=LANG)
32
33$(___LANG)=C
34LC_ALL=C
35LC_COLLATE=C
36LC_CTYPE=C
37LC_MESSAGES=C
38LC_MONETARY=C
39LC_NUMERIC=C
40LC_TIME=C
41
42export $(___LANG)
43export LC_ALL
44export LC_COLLATE
45export LC_CTYPE
46export LC_MESSAGES
47export LC_MONETARY
48export LC_NUMERIC
49export LC_TIME
50
51#
52# Clear environment variables that are known to be bad for a compilation
53#
54unexport FIGNORE	# Frequently set by bash users but poison for ksh93
55unexport LD_LIBRARY_PATH
56unexport LD_LIBRARY_PATH_32
57unexport LD_LIBRARY_PATH_64
58