From owner-freebsd-current Tue Jun 18 4:25:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from dignus.com (sdsl-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by hub.freebsd.org (Postfix) with ESMTP id 9099F37B408 for ; Tue, 18 Jun 2002 04:25:36 -0700 (PDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.11.6/8.11.3) with ESMTP id g5IBJ8h85293; Tue, 18 Jun 2002 07:19:08 -0400 (EDT) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id g5IBJX954922; Tue, 18 Jun 2002 07:19:33 -0400 (EDT) (envelope-from rivers) Date: Tue, 18 Jun 2002 07:19:33 -0400 (EDT) From: Thomas David Rivers Message-Id: <200206181119.g5IBJX954922@lakes.dignus.com> To: mb@imp.ch, tlambert2@mindspring.com Subject: Re: PATCH: wchar_t is already defined in libstd++ Cc: current@FreeBSD.ORG, rivers@dignus.com, wollman@lcs.mit.edu In-Reply-To: <3D0F0B6E.3258EE82@mindspring.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Martin Blapp wrote: > > This looks ok to me. And like this we would only have to change one > > file, Garrett is right. > > That's the first thing I said: "Garrett's right". > > David O'Brian had the point that there was a tools dependency that > this imposes that maybe ought not to be there. Since wchar_t is a > reserved keyword in C++ according to the standard, I think that the > synchronization of the size of the object when it's typedef'ed > matching the size of the object manifest in C++, is FreeBSD's > problem (hence my earlier comment about being screwed based on the > wchar_t size). It's annoying, but it's something that the OS > pretty much has to eat. The only workaround might be to size the > type with config code in C++ to generate the header from a template > (I don't like that). > > Personally, I vote for u_int16_t... Unicode 16 bit, vs. ISO-10646 > code page zero (other code pages aren't defined at all anyway, and > it matches Windows, in case you want to use an ELF library from a > Windows box, if you can figure out how). I noticed before that you mentioned you didn't want the wchar_t to be int-sized (i.e. 32 bits.) I was just wondering why. If we "shrink" the size at this point, would that have some impact on existing programs. (Currently, the typedef for `wchar_t' works down to an `int', if I'm not mistaken.) - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message