Subject: lib/25877: setlocale() doesn't accept language_territory locales
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jl+netbsd@lists.wasmer.ca>
List: netbsd-bugs
Date: 06/08/2004 17:54:46
>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 UTC 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: