comp.lang.ada
 help / color / mirror / Atom feed
From: Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>
Subject: Re: Ada and UNICODE?
Date: 1998/05/20
Date: 1998-05-20T00:00:00+00:00	[thread overview]
Message-ID: <35622857.77912B4@cl.cam.ac.uk> (raw)
In-Reply-To: dewar.895283044@merv


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: <http://www.cl.cam.ac.uk/~mgk25/>




  parent reply	other threads:[~1998-05-20  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-15  0:00 Ada and UNICODE? William A Whitaker
1998-05-15  0:00 ` Robert Dewar
1998-05-18  0:00   ` Joel VanLaven
1998-05-19  0:00     ` Robert Dewar
1998-05-19  0:00       ` Ronald Cole
1998-05-19  0:00         ` Robert Dewar
1998-05-24  0:00           ` Ronald Cole
1998-05-25  0:00             ` Robert Dewar
1998-05-20  0:00         ` Markus Kuhn
1998-05-20  0:00           ` Larry Kilgallen
1998-05-20  0:00   ` Markus Kuhn [this message]
1998-05-20  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox