From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,421baaa91aa096a7 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Date: Sat, 12 Jul 2008 07:27:07 -0400 From: "Peter C. Chapin" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Wide_[Wide_]Character References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4878950d$0$25515$4d3efbfe@news.sover.net> Organization: SoVerNet (sover.net) NNTP-Posting-Host: 7b2a4bab.news.sover.net X-Trace: DXC=B]X9_BmAHnJ<G0KMK6_LM2JZB_CgHL^C]dd;@lHcmJj^iUc;c3]cB X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:1128 Date: 2008-07-12T07:27:07-04:00 List-Id: Dale Stanbrough wrote: > I can't see any implication that would cause me to think > Wide_Wide_Character is definitely UCS-4 (and not UTF-16). Well, section 3.5.2 (Character Types) in the Ada 2005 reference manual says: "The predefined type Wide_Wide_Character is a character type whose values correspond to the 2147483648 code positions of the ISO/IEC 10646:2003 character set. Each of the graphic_characters has a corresponding character_literal in Wide_Wide_Character. The first 65536 values of Wide_Wide_Character have the same character_literal or language-defined name as defined for Wide_Character." I understand that this doesn't speak to the issue of encoding, but perhaps that is intended to be left unspecified. In any event it seems fairly clear that you should be able to store any of 2147483648 values in a single Wide_Wide_Character variable. Doesn't that mean Wide_Wide_Character needs to be (at least) 32 bits? Peter