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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,85e8c53792269cfd X-Google-Attributes: gid103376,public From: Markus Kuhn Subject: Re: Ada and UNICODE? Date: 1998/05/20 Message-ID: <35622857.77912B4@cl.cam.ac.uk>#1/1 X-Deja-AN: 354795703 Content-Transfer-Encoding: 7bit References: <355CA32B.7B77@erols.com> Content-Type: text/plain; charset=us-ascii Organization: Cambridge University, Computer Laboratory Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-05-20T00:00:00+00:00 List-Id: Robert Dewar wrote: > GNAT supports all the coding methods that are commonly used in Japan > and China, including EUC and Shift-JIS. But in a way that violates the Ada95 standard: The GNAT conversion routines only work if the Wide_Character encoding used in the Ada program is also JIS/EUC. The Ada95 standard however requires that the Wide_Character encoding is the ISO 10646 BMP. Strictly speeking, the library would have to include the huge Unicode<->JIS conversion tables on ftp.unicode.org in order to provide a conforming implementation. UTF-8 instead of EUC and Shift-JIS is clearly the right encoding to use here. Markus -- Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK email: mkuhn at acm.org, home page: