From slaven.rezic@berlin.de  Tue Aug 20 12:57:53 2002
Return-Path: <slaven.rezic@berlin.de>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E605737B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Aug 2002 12:57:53 -0700 (PDT)
Received: from mailoutvl21.berlin.de (mail.berlin.de [195.243.105.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CB7B343E6A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Aug 2002 12:57:52 -0700 (PDT)
	(envelope-from slaven.rezic@berlin.de)
Received: from herceg.de ([213.6.11.203]) by mailoutvl21.berlin.de
          (InterMail vK.4.03.05.00 201-232-132 license c0e4b842f1eddc5308d584e55543c802)
          with ESMTP id <20020820200049.RWDT27460.mailoutvl21@herceg.de>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Tue, 20 Aug 2002 22:00:49 +0200
Received: (from eserte@localhost)
	by vran.herceg.de (8.12.4/8.12.4/Submit) id g7KJXoIt003636;
	Tue, 20 Aug 2002 21:33:50 +0200 (CEST)
	(envelope-from eserte)
Message-Id: <200208201933.g7KJXoIt003636@vran.herceg.de>
Date: Tue, 20 Aug 2002 21:33:50 +0200 (CEST)
From: Slaven Rezic <eserte@vran.herceg.de>
Reply-To: Slaven Rezic <slaven.rezic@berlin.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: LANG is not documented in setlocale(3)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41824
>Category:       docs
>Synopsis:       [patch] LANG is not documented in setlocale(3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    murray
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 20 13:00:03 PDT 2002
>Closed-Date:    
>Last-Modified:  Sun Dec 14 23:10:01 UTC 2008
>Originator:     Slaven Rezic
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
www.rezic.de
>Environment:
System: FreeBSD vran.herceg.de 4.6-STABLE FreeBSD 4.6-STABLE #15: Sat Jul 27 09:32:28 CEST 2002 root@vran.herceg.de:/usr/local/src/FreeBSD-4/src/sys/compile/VRAN i386


	
>Description:
	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).

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->murray 
Responsible-Changed-By: murray 
Responsible-Changed-When: Sun May 4 06:34:59 PDT 2003 
Responsible-Changed-Why:  
I will take a look at this one. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=41824 

From: Conall O'Brien <conall=freebsd@maths.tcd.ie>
To: bug-followup@FreeBSD.org, slaven.rezic@berlin.de
Cc:  
Subject: docs/41824 : LANG is not documented in setlocale(3)
Date: Sat, 10 Jun 2006 02:49:37 +0100

 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 @@
  The
  .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:
  .Pp
  .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
  function.
 +.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.
  .El
  .Pp
  Only three locales are defined by default,
 
 -- 
 
 Regards,
 
 Conall O'Brien
 
 Systems and Network Administrator
 School Of Mathematics
 University Of Dublin, Trinity College

From: "Murray Stokely" <murray.stokely@gmail.com>
To: bug-followup@freebsd.org, slaven.rezic@berlin.de
Cc:  
Subject: Re: docs/41824: [patch] LANG is not documented in setlocale(3)
Date: Sun, 14 Dec 2008 15:06:27 -0800

 There is also an EXAMPLES section in the NetBSD man page we may want to borrow :
 
 http://people.freebsd.org/~murray/patches/setlocale.3.diff
 
           - Murray
>Unformatted:
