This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/174] LOCPATH environment variable is undocumented
- From: "decimal at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Feb 2006 20:02:14 -0000
- Subject: [Bug manual/174] LOCPATH environment variable is undocumented
- References: <20040519083839.174.pere@hungry.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From decimal at us dot ibm dot com 2006-02-21 20:02 -------
This variable is used by setlocale() and newlocale(). Looks like only
setlocale() is documented in the glibc manual. setlocale() is documented in the
"How Programs Set the Locale" section.
We could say "The path used for finding locale data can be set using the
LOCPATH environment variable. The default path for finding
locale data is system specific. It is computed from the value given
as the prefix while configuring the C library. This value normally is
/usr or /. For the former the complete path is: /usr/lib/locale"
That text is similar to what I have seen elsewhere in the manual. I'll attach a
patch to that effect.
The default value comes from _nl_default_locale_path which comes from LOCALEDIR
which is set in locale/Makefile from localedir which comes from
libc_cv_localedir which is set to ${exec_prefix}/lib/locale on linux where
exec_prefix = /usr/lib/locale by default.
--
What |Removed |Added
----------------------------------------------------------------------------
Flag| |examined+
http://sourceware.org/bugzilla/show_bug.cgi?id=174
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.