Skip to content
Branch: master
Find file History
Carlos O'Donell
Carlos O'Donell 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] 90fe682
Latest commit 314f6de Feb 25, 2016
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Depend Update. Jun 17, 2000
Makefile Enable --localedir to set message catalog directory (Bug 14259) Feb 25, 2016
Versions Update. May 1, 2002
bindtextdom.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
dcgettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
dcigettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
dcngettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
dgettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
dngettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
eval-plural.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
explodename.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
finddomain.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
gettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
gettextP.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
gmo.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
hash-string.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
hash-string.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
l10nflist.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
libintl.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
loadinfo.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
loadmsgcat.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
locale.alias Update copyright dates with scripts/update-copyrights. Jan 4, 2016
localealias.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
ngettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
plural-exp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
plural-exp.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
plural.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
plural.y Update copyright dates with scripts/update-copyrights. Jan 4, 2016
po2test.awk Update copyright dates with scripts/update-copyrights. Jan 4, 2016
textdomain.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
translit.po Update. Nov 2, 2000
tst-codeset.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext.sh Make shebang interpreter directives consistent Jan 7, 2016
tst-gettext2.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext2.sh Make shebang interpreter directives consistent Jan 7, 2016
tst-gettext3.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext4-de.po * sysdeps/i386/i686/memcmp.S: Move misplaced END. Apr 28, 2005
tst-gettext4-fr.po * sysdeps/i386/i686/memcmp.S: Move misplaced END. Apr 28, 2005
tst-gettext4.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext4.sh Make shebang interpreter directives consistent Jan 7, 2016
tst-gettext5.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext6.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-gettext6.sh Make shebang interpreter directives consistent Jan 7, 2016
tst-ngettext.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-translit.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-translit.sh Make shebang interpreter directives consistent Jan 7, 2016
tstcodeset.po Update. Apr 10, 2001
tstlang1.po Update. Oct 31, 2000
tstlang2.po Update. Oct 31, 2000
You can’t perform that action at this time.