From owner-freebsd-current Tue Jun 18 3:29:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 1FA3237B411 for ; Tue, 18 Jun 2002 03:29:51 -0700 (PDT) Received: from pool0040.cvx21-bradley.dialup.earthlink.net ([209.179.192.40] helo=mindspring.com) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17KGF2-0003jZ-00; Tue, 18 Jun 2002 03:29:40 -0700 Message-ID: <3D0F0B6E.3258EE82@mindspring.com> Date: Tue, 18 Jun 2002 03:29:02 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Martin Blapp Cc: Garrett Wollman , Thomas David Rivers , current@FreeBSD.ORG Subject: Re: PATCH: wchar_t is already defined in libstd++ References: <20020618120736.E60170-100000@levais.imp.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message