Bug 41824 - [patch] LANG is not documented in setlocale(3)
Summary: [patch] LANG is not documented in setlocale(3)
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Keywords: patch
Depends on:
Reported: 2002-08-20 21:00 UTC by Slaven Rezic
Modified: 2018-08-05 06:42 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Slaven Rezic 2002-08-20 21:00:03 UTC
	The LANG environment variable is not described in the
	setlocale(3) manpage. It would also be helpful to describe the
	priority of the environment variables (AFAIK: LC_ALL, then
	LC_*, then LANG).
Comment 1 Murray Stokely freebsd_committer 2003-05-04 14:34:59 UTC
Responsible Changed
From-To: freebsd-doc->murray

I will take a look at this one.
Comment 2 conall=freebsd 2006-06-10 02:49:37 UTC
A patch to describe the LANG variable and note that
documented order (LC_ALL, LC_*, LANG) is the priority order (or so I'm
led to believe from the initial log of this PR)

--- setlocale.3.orig    Sat Jun 10 02:37:30 2006
+++ setlocale.3 Sat Jun 10 02:48:42 2006
@@ -60,7 +60,8 @@
 .Fn setlocale
 function recognizes several categories of routines.
-These are the categories and the sets of routines they select:
+In decending order of evaluation priority, the categories and the sets 
+of routines they select:
 .Bl -tag -width LC_MONETARY
 .It Dv LC_ALL
@@ -103,6 +104,9 @@
 Set a locale for formatting dates and times using the
 .Fn strftime
+.It Dv LANG
+Sets the generic locale category for native language, local customs and 
+coded character set in the absence of any configured LC_* variables.
 Only three locales are defined by default,



Conall O'Brien

Systems and Network Administrator
School Of Mathematics
University Of Dublin, Trinity College
Comment 3 murray.stokely 2008-12-14 23:06:27 UTC
There is also an EXAMPLES section in the NetBSD man page we may want to borrow :


          - Murray
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:19 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped