1#ident "@(#)rules.oes	1.1 18/04/15 "
2###########################################################################
3# Written 2009-2018 by J. Schilling
4###########################################################################
5#
6# Rules for getting the original locale environment for SunPro Make
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
33OLD_$(___LANG) :sh= echo $LANG
34OLD_LC_ALL :sh= echo $LC_ALL
35OLD_LC_COLLATE :sh= echo $LC_COLLATE
36OLD_LC_CTYPE :sh= echo $LC_CTYPE
37OLD_LC_MESSAGES :sh= echo $LC_MESSAGES
38OLD_LC_MONETARY :sh= echo $LC_MONETARY
39OLD_LC_NUMERIC :sh= echo $LC_NUMERIC
40OLD_LC_TIME :sh= echo $LC_TIME
41
42export OLD_$(___LANG)
43export OLD_LC_ALL
44export OLD_LC_COLLATE
45export OLD_LC_CTYPE
46export OLD_LC_MESSAGES
47export OLD_LC_MONETARY
48export OLD_LC_NUMERIC
49export OLD_LC_TIME
50