From 859476f7a9402aeb913ece015a5cdf325f48e724 Mon Sep 17 00:00:00 2001 From: Marko Myllynen Date: Mon, 26 May 2014 10:08:01 +0200 Subject: [PATCH] locale.7: further details of LOCPATH Helpful for three purposes, 1) shows the expected naming scheme, 2) shows where to point LOCPATH to, and 3) gives an idea to the attentive how to use a more generic, location independent directory with location dependent, more specific ones. Signed-off-by: Michael Kerrisk --- man7/locale.7 | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/man7/locale.7 b/man7/locale.7 index fa0f48876..e327e6622 100644 --- a/man7/locale.7 +++ b/man7/locale.7 @@ -28,8 +28,6 @@ .\" .\" Modified Thu Apr 25 00:43:19 2002 by Bruno Haible .\" -.\" see http://sourceware.org/bugzilla/show_bug.cgi?id=174 -.\" Is removed for SUID/SGID programs (see sysdeps/generic/unsecvars.h) .TH LOCALE 7 2014-03-18 "Linux" "Linux Programmer's Manual" .SH NAME locale \- description of multilanguage support @@ -335,8 +333,20 @@ A list of pathnames, separated by colons (\(aq:\(aq), that should be used to find locale data. If this variable is set, only the individual locale data files from .I LOCPATH -and the system default locale data path are used; -any available locale archives are not used. +and the system default locale data path are used; any available locale +archives are not used. The individual locale data files are searched +under subdirectories which depend on the currently used locale. For +example, when +.I en_GB.UTF-8 +is used for a category, the following subdirectories are searched for, +in this order: +.IR en_GB.UTF-8 , +.IR en_GB.utf8 , +.IR en_GB , +.IR en.UTF-8 , +.IR en.utf8 , +and +.IR en . .SH CONFORMING TO POSIX.1-2001. .\"