summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-09-05 19:14:34 +0000
committerache <ache@FreeBSD.org>2000-09-05 19:14:34 +0000
commitf7c8729376e88e20592b943f196811ea292526a7 (patch)
treeab580a82e960dc5f83a9ccdc2bb5ae67cc41b7c9 /lib/libc/nls
parentcff734f9f769463a30d41691346c6f6865b04551 (diff)
downloadFreeBSD-src-f7c8729376e88e20592b943f196811ea292526a7.zip
FreeBSD-src-f7c8729376e88e20592b943f196811ea292526a7.tar.gz
Document %-macros and NLSPATH better.
Diffstat (limited to 'lib/libc/nls')
-rw-r--r--lib/libc/nls/catopen.342
1 files changed, 41 insertions, 1 deletions
diff --git a/lib/libc/nls/catopen.3 b/lib/libc/nls/catopen.3
index 4e1f98a..272fe7e 100644
--- a/lib/libc/nls/catopen.3
+++ b/lib/libc/nls/catopen.3
@@ -55,8 +55,48 @@ specifies the full pathname for the message catalog, otherwise the value
of the environment variable
.Ev NLSPATH
is used with
+the following substitutions:
+.Bl -tag -width XXX
+.It \&%N
+The value of the
.Fa name
-substituted for %N.
+argument.
+.It \&%L
+The value of the
+.Ev LANG
+environment variable or the
+.Dv LC_MESSAGES
+category (see below).
+.It \&%l
+The language element from the
+.Ev LANG
+environment variable or from the
+.Dv LC_MESSAGES
+category.
+.It \&%t
+The territory element from the
+.Ev LANG
+environment variable or from the
+.Dv LC_MESSAGES
+category.
+.It \&%c
+The codeset element from the
+.Ev LANG
+environment variable or from the
+.Dv LC_MESSAGES
+category.
+.It \&%%
+A single % character.
+.El
+.Pp
+An empty string is substituted for undefined values.
+.Pp
+Path names templates defined in
+.Ev NLSPATH
+are separated by colons
+.No ( Sq \&: ) .
+A leading or two adjacent colons
+is equivalent to specifying %N.
.Pp
If the
.Fa oflag
OpenPOWER on IntegriCloud