Subject: standards/24040: wchar.h doesn't provide WCHAR_MAX/WCHAR_MIN
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@NetBSD.org>
List: netbsd-bugs
Date: 01/11/2004 01:39:56
>Number:         24040
>Category:       standards
>Synopsis:       wchar.h doesn't provide WCHAR_MAX/WCHAR_MIN
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 10 16:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Masao Uebayashi
>Release:        NetBSD 1.6ZG
>Organization:
>Environment:
NetBSD hp1.my.home 1.6ZG NetBSD 1.6ZG (GENERIC) #0: Sun Dec 14 13:21:56 UTC 2003 cyber@tgm.netbsd.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	SUSv3 says
		The <wchar.h> header shall define the following macros:

		WCHAR_MAX
			The maximum value representable by an object of type
			wchar_t.
		WCHAR_MIN
			The minimum value representable by an object of type
			wchar_t.
	but our wchar.h doesn't.

	I know we have them defined in some other place, but don't know the
	path how they should be included...
>How-To-Repeat:
	% for i in WCHAR_MAX WCHAR_MIN; do
		printf "#include <wchar.h>\n$i\n" | cc -E - | grep $i
	done
	WCHAR_MAX
	WCHAR_MIN
>Fix:
	N/A
>Release-Note:
>Audit-Trail:
>Unformatted: