glibc/timezone
Joseph Myers 686554bff6 Remove redundant C locale settings.
Various glibc build / install / test code has C locale settings that
are redundant with LC_ALL=C.

LC_ALL takes precedence over LANG, so anywhere that sets LC_ALL=C
(explicitly, or through it being in the default environment for
running tests) does not need to set LANG=C.  LC_ALL=C also takes
precedence over LANGUAGE, since

2001-01-02  Ulrich Drepper  <drepper@redhat.com>

	* intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
	value is ignored if the selected locale is the C locale.
	* intl/tst-gettext.c: Set locale for above change.
	* intl/tst-translit.c: Likewise.

and so settings of LANGUAGE=C are also redundant when LC_ALL=C is
set.  One test also had LC_ALL=C in its -ENV setting, although it's
part of the default environment used for tests.

This patch removes the redundant settings.  It removes a suggestion in
install.texi of setting LANGUAGE=C LC_ALL=C for "make install"; the
Makefile.in target "install" already sets LC_ALL_C so there's no need
for the user to set it (and nor should there be any need for the user
to set it).

If some build machine tool used by "make install" uses a version of
libintl predating that 2001 change, and the user has LANGUAGE set, the
removal of LANGUAGE=C from the Makefile.in "install" rule could in
principle affect the user's installation.  However, I don't think we
need to be concerned about pre-2001 build tools.

Tested x86_64.

	* Makefile (install): Don't set LANGUAGE.
	* Makefile.in (install): Likewise.
	* assert/Makefile (test-assert-ENV): Remove variable.
	(test-assert-perr-ENV): Likewise.
	* elf/Makefile (neededtest4-ENV): Likewise.
	* iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
	[$(cross-compiling) = no]: Don't set LANGUAGE.
	* io/ftwtest-sh (LANG): Remove variable.
	* libio/Makefile (tst-widetext-ENV): Likewise.
	* manual/install.texi (Running make install): Don't refer to
	environment settings for make install.
	* INSTALL: Regenerated.
	* nptl/tst-tls6.sh: Don't set LANG.
	* posix/globtest.sh (LANG): Remove variable.
	* string/Makefile (tester-ENV): Likewise.
	(inl-tester-ENV): Likewise.
	(noinl-tester-ENV): Likewise.
	* sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
	[$(cross-compiling) = no]: Don't set LANGUAGE.
	* timezone/Makefile (build-testdata): Use $(built-program-cmd)
	without explicit environment settings.

localedata/ChangeLog:
	* tst-fmon.sh: Don't set LANGUAGE.
	* tst-locale.sh: Likewise.
2014-06-07 19:58:36 +00:00
..
africa Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
antarctica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
asia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
australasia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
backward Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
checktab.awk Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
etcetera Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
europe Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
factory Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
ialloc.c Update tzcode to 2012i. 2012-11-09 21:20:57 +00:00
iso3166.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
leapseconds Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
Makefile Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
northamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
pacificnew Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
private.h Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
README Use glibc version information in zic and zdump. 2012-11-10 00:31:20 +00:00
scheck.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
simplebackw Update. 1998-02-15 23:23:43 +00:00
solar87 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar88 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar89 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
southamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
systemv Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
test-tz.c 2006-01-10 Roland McGrath <roland@redhat.com> 2006-01-10 20:37:36 +00:00
tst-timezone.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tzfile.h Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
tzselect.ksh tzselect: stop requiring ksh 2014-02-08 06:47:58 -05:00
yearistype Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
zdump.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
zic.c Update timezone code from tzcode 2013i. 2013-12-20 13:10:07 +00:00
zone.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00

The files
	zic.c zdump.c ialloc.c scheck.c tzfile.h
	private.h tzselect.ksh checktab.awk
come from the tzcode package by Arthur David Olson et.al.

The files
	africa antarctica asia australasia europe
	northamerica southamerica pacificnew etcetera factory
	backward systemv solar87 solar88 solar89
	iso3166.tab zone.tab leapseconds yearistype
come from the tzdata package by Arthur David Olson et.al.

Please check the ChangeLog files in the top level directory for the
version of the tzcode and tzdata packages.

These packages may be found at ftp://ftp.iana.org/tz/releases/.  Commentary
should be addressed to tz@iana.org.