locale.7: Document LC_MEASUREMENT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-07 14:10:27 +01:00
parent ebb553379b
commit 7c57cb8027
1 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,5 @@
.\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
.\" and Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
@ -124,6 +125,16 @@ functions also obey the environment variable
if the category is set to a valid locale other than
.BR """C""" .
.TP
.BR LC_MEASUREMENT " (GNU extension, since glibc 2.2)"
Change the settings relating to the measurement system in the locale
(i.e., metric versus US customary units).
Applications can use
.BR nl_langinfo (3)
to retrieve the nonstandard
.B _NL_MEASUREMENT_MEASUREMENT
element, which returns a pointer to a character
that has the value 1 (metric) or 2 (US customary units).
.TP
.BR LC_NAME " (GNU extension, since glibc 2.2)"
Change settings that describe the formats used to address persons.
Applications that need this information can use
@ -182,9 +193,6 @@ example, most of Europe uses a 24-hour clock versus the
.TP
.B LC_ALL
All of the above.
.\" FIXME glibc 2.2 added new nonstandard locale categories:
.\" LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME.
.\" These need to be documented.
.PP
If the second argument to
.BR setlocale (3)