This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/174] LOCPATH environment variable is undocumented


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]