glibc/locale
Carlos O'Donell 314f6deec9 Enable --localedir to set message catalog directory (Bug 14259)
In 1999 the project split "localedir" into "localedir" (path to compiled
locale archives) and "msgcatdir" (path to message catalogs). This
predates the 2002 change in the GNU Coding Standard to document the use
of "localedir" for the path to the message catalogs. It appears that
newlib, gcc, and several other projects also used "msgcatdir" at one
point or another in the past, and so it is in line with historical
precedent that glibc would also use "msgcatdir." However, given that the
GNU Coding Standard uses "localedir", we will switch to that for
consistency as a GNU project. Previous uses of --localdir didn't work
anyway (see bug 14259).

I am committing this patch in the understanding that nobody would object
to fixing #14259 as part of aligning our variable usage to the GNU
Coding Standard.

Given that previous "localedir" uses were converted to "complocaledir"
by [1], we can now convert "msgcatdir" to "localedir" and complete the
transition. With an addition to config.make.in we also fix bug 14259 and
allow users to specify the locale dependent data directory with
"--localedir" at configure time. There is still no way to control at
configure time the location of the *compiled* locale directory.

Tested on x86_64 with no regressions.

Tested using "--localedir" to specify alternate locale dependent data
directory and verified with "make install DESTDIR=/tmp/glibc".

[1] 90fe682d30
2016-02-24 20:06:04 -05:00
..
bits Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
programs Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C_name.c
C-address.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-name.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-time.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
C-translit.h Regenerate locale/C-translit.h. 2015-12-09 22:24:26 -05:00
C-translit.h.in Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
categories.def Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gen-translit.pl Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
global-locale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
hashval.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
indigits.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iso-639.def Correcting language code for Bhili and Tulu locales (bug 17475) 2015-07-15 16:06:18 +05:30
iso-3166.def Fix typos in 3166.def. 2013-10-04 18:51:42 -04:00
iso-4217.def Revert incorrect removal of the XDR currency from locale/iso-4217.def 2014-05-03 23:45:15 -06:00
langinfo.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
loadarchive.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
loadlocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
locale.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
localeinfo.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
localename.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Makefile Enable --localedir to set message catalog directory (Bug 14259) 2016-02-24 20:06:04 -05:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
setlocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strlen-hash.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
SYS_libc.c
tst-C-locale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-duplocale.c Add missing test files. 2009-11-17 16:23:57 -08:00
tst-locname.c Add missing test files. 2009-11-17 16:23:57 -08:00
uselocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Versions
weight.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
weightwc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
xlocale.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
xlocale.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00