Subject: misc/18665: Error in setlocale(3) man page
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/15/2002 00:37:54
>Number:         18665
>Category:       misc
>Synopsis:       Error in setlocale(3) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 15 05:20:01 PDT 2002
>Originator:     Joerg Klemenz
>Release:        NetBSD 1.6
All Virtual Devils
System: NetBSD evo.infnet 1.6 NetBSD 1.6 (EVO) #2: Thu Sep 19 23:15:25 UTC 2002 toor@faith.infnet:/usr/src/sys/arch/i386/compile/EVO i386
Architecture: i386
Machine: i386
The man page of setlocale(3) does not mention LC_MESSAGES as defined
in /usr/include/locale.h

Also the bugs section should mention the known limitations.
man 3 setlocale
*** setlocale.3	Mon Oct 14 21:02:39 2002
--- setlocale.3.fix	Mon Oct 14 21:38:41 2002
*** 107,112 ****
--- 107,117 ----
  Set a locale for formatting dates and times using the
  .Fn strftime
+ Set a locale for user applications, such as newsreaders and mail clients.
+ The applications must provide their own national language support files,
+ usually stored under /usr/pkg/share/locale.
+ Also see the BUGS section.
  Only three locales are defined by default,
*** 353,358 ****
--- 358,370 ----
  .Li "\&""POSIX""
  locales for all but the LC_CTYPE locale.
+ .Pp
+ The current implementation has a hardwired locale of us-english
+ for everything defined in /usr/include/langinfo.h.
+ This affects all application programs that use LC_MESSAGES to
+ display localized output. This programs still display date/time and
+ currency symbols in english and expect a y/n answer to yes/no queries
+ even if the query text itself has been localized.
  In spite of the gnarly currency support in
  .Fn localeconv ,