NetBSD Problem Report #25877

Received: (qmail 1573 invoked by uid 605); 8 Jun 2004 17:54:48 -0000
Message-Id: <20040608175446.E20AA11152@narn.netbsd.org>
Date: Tue,  8 Jun 2004 17:54:46 +0000 (UTC)
From: jl+netbsd@lists.wasmer.ca
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jl+netbsd@lists.wasmer.ca
To: gnats-bugs@gnats.NetBSD.org
Subject: setlocale() doesn't accept language_territory locales
X-Send-Pr-Version: www-1.0

>Number:         25877
>Category:       lib
>Synopsis:       setlocale() doesn't accept language_territory locales
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 08 17:55:00 +0000 2004
>Closed-Date:    
>Last-Modified:  
>Originator:     Jean-Luc Wasmer
>Release:        CVS as of Feb. ??
>Organization:
>Environment:
1.6ZJ
>Description:
setlocale(LC_CTYPE, "") should not return NULL when the environment variable LANG is set to en_CA (instead of en_CA.ISO8859-1) since ".codeset" is shown between square brackets in the format definition.

from man 3 setlocale:
(...) The format of the locale string is described in nls(7)

from man 7 nls:
(...) The LC_ALL and LANG environment variables also determine the current locale. The values of these environment variables contains a string format as:
      language[_territory][.codeset][@modifier]
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.