Return-Path: Delivered-To: apmail-xerces-c-users-archive@www.apache.org Received: (qmail 68383 invoked from network); 23 Jul 2009 13:02:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 13:02:18 -0000 Received: (qmail 81991 invoked by uid 500); 23 Jul 2009 13:03:23 -0000 Delivered-To: apmail-xerces-c-users-archive@xerces.apache.org Received: (qmail 81956 invoked by uid 500); 23 Jul 2009 13:03:23 -0000 Mailing-List: contact c-users-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-users@xerces.apache.org Delivered-To: mailing list c-users@xerces.apache.org Received: (qmail 81946 invoked by uid 99); 23 Jul 2009 13:03:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 13:03:23 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.46.182.52] (HELO relay.ihostexchange.net) (66.46.182.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 13:03:12 +0000 Received: from HUB103.ihostexchange.net (66.46.182.53) by HUB102.ihostexchange.net (66.46.182.52) with Microsoft SMTP Server (TLS) id 8.1.375.2; Thu, 23 Jul 2009 09:02:50 -0400 Received: from VMBX101.ihostexchange.net ([192.168.3.4]) by HUB103.ihostexchange.net ([66.46.182.53]) with mapi; Thu, 23 Jul 2009 09:02:51 -0400 From: John Lilley To: "c-users@xerces.apache.org" Date: Thu, 23 Jul 2009 09:02:49 -0400 Subject: Building Xerces with XMLCH as unsigned short on Windows Thread-Topic: Building Xerces with XMLCH as unsigned short on Windows Thread-Index: AcoLleFfiPsXv+2DRrC0SiddDWMdGg== Message-ID: <782A77DE52224A4293522E9999C6AFB32F71AAE78E@VMBX101.ihostexchange.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_782A77DE52224A4293522E9999C6AFB32F71AAE78EVMBX101ihoste_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_782A77DE52224A4293522E9999C6AFB32F71AAE78EVMBX101ihoste_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is there a way to make Xerces define XMLCh as unsigned short on Windows ins= tead of wchar_t? It may be a minor point, but we have a UTF-16 string type= defined to use unsigned short, so it would also be nice to have Xerces usi= ng unsigned short to avoid casts. Since it can use unsigned short on some = platforms, why not Windows? I'd like to use wchar_t, but we need to be able to overload UTF-32 vs UTF-1= 6 string types and to do that, we need a 32-bit and 16-bit unsigned int typ= e that is the same on all platforms. On a different topic, will Xerces use unsigned short on all platforms for w= hich sizeof(wchar_t) !=3D 2? Thanks john lilley --_000_782A77DE52224A4293522E9999C6AFB32F71AAE78EVMBX101ihoste_--