diff options
author | Dwayne Grant McConnell <decimal@us.ibm.com> | 2012-02-17 22:19:38 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-02-17 22:19:38 +0000 |
commit | 3f4081cd59f0a69b74d5361de57a8225b26363e2 (patch) | |
tree | 8024a1b3c3c399e1929e693a4252e37cb903389f /manual/locale.texi | |
parent | d1b10e78e439dd8e1707cc90cce5960013ad1b90 (diff) | |
download | glibc-3f4081cd59f0a69b74d5361de57a8225b26363e2.tar.gz glibc-3f4081cd59f0a69b74d5361de57a8225b26363e2.tar.xz glibc-3f4081cd59f0a69b74d5361de57a8225b26363e2.zip |
Document LOCPATH.
Diffstat (limited to 'manual/locale.texi')
-rw-r--r-- | manual/locale.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manual/locale.texi b/manual/locale.texi index d1a50cb0f4..23ad8bcdb3 100644 --- a/manual/locale.texi +++ b/manual/locale.texi @@ -279,6 +279,16 @@ If you specify an invalid locale name, @code{setlocale} returns a null pointer and leaves the current locale unchanged. @end deftypefun +The path used for finding locale data can be set using the +@code{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 +@file{/usr} or @file{/}. For the former the complete path is: + +@smallexample +/usr/lib/locale +@end smallexample + Here is an example showing how you might use @code{setlocale} to temporarily switch to a new locale. |