delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/03/11:27:53

Date: Sat, 03 Feb 2001 18:26:56 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
Message-Id: <9791-Sat03Feb2001182656+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp-workers AT delorie DOT com
In-reply-to: <002101c08df0$81e7e660$2a4a893e@oemcomputer>
(djgpp AT argentum DOT freeserve DOT co DOT uk)
Subject: Re: stdint.h
References: <002101c08df0$81e7e660$2a4a893e AT oemcomputer>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
> Date: Sat, 3 Feb 2001 14:49:25 -0000
> 
> > +#define WCHAR_MAX 32767
> 
> WCHAR_MAX should be 65535, since wchar_t is defined as an unsigned short
> in sys/djtypes.h

You are right.  Thanks for catching this.

> (and it will need to hold values higher than 32767 if it is ever to
> be used for Unicode).

64K isn't enough for Unicode anyway, only for the BMP.

We made wchar_t be 16-bit for compatibility with RSXNTDJ libraries and
headers.  As long as RSXNTDJ is relevant, we cannot change that.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019