NetBSD Problem Report #25877

Received: (qmail 1573 invoked by uid 605); 8 Jun 2004 17:54:48 -0000
Message-Id: <>
Date: Tue,  8 Jun 2004 17:54:46 +0000 (UTC)
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
>Originator:     Jean-Luc Wasmer
>Release:        CVS as of Feb. ??
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:



NetBSD Home
NetBSD PR Database Search

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