comp.lang.ada
 help / color / mirror / Atom feed
From: sparre@meyer.fys.ku.dk (Jacob Sparre Andersen)
Subject: Re: ISO LATIN_1 in Windows 95 ?
Date: 1998/10/06
Date: 1998-10-06T00:00:00+00:00	[thread overview]
Message-ID: <6vde32$jle$1@news.net.uni-c.dk> (raw)
In-Reply-To: 3618A5D5.72C@ddre.dk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]

Hans Marqvardsen (hm@ddre.dk) wrote:
: Does anyone know how to use ISO Latin_1 under Windows95?

: EG so that Put(Character'val(230)) 
: will in fact print LC_ae_diphtong,
: as defined in Ada.Characters.Latin_1 ?

Doesn't it do that?

: (Under NT, you can use SetConsoleOutputCP(1252) and the 
: font Lucida Console, but neither of these seem available
: in W95)

Ah. So the problem is actually how to get _Windows_95_ to use Latin-1 as
the character encoding in command line windows? I think this question
belongs on "comp.os.ms-windows" or something like that.

You can't have a working Ada compiler on/targeting a system that can't
interpret all of Latin-1 (strictly speaking). The usual solution seems
to be to assume that the character encoding _is_ Latin-1 in such cases.

GNAT has some flags to specify what character encoding is used for the
source files, so you might be able to extract some useful code from the
GNAT sources.

Greetings,

Jacob

PS: I think CP 1252 refers to Unicode BMP - a 16 bit character encoding - so
    it is "reasonable" that Windows 95 can't handle it.

----------------------------------------------------------------------------
--  Jacob Sparre Andersen     --  E-mail: Jacob.Sparre.Andersen@risoe.dk  --
--  National Laboratory Ris�  --  Phone.: (+45) 46 77 51 23               --
--  Systems Analysis          --  Fax...: (+45) 46 77 51 99               --
----------------------------------------------------------------------------




  reply	other threads:[~1998-10-06  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-05  0:00 ISO LATIN_1 in Windows 95 ? Hans Marqvardsen
1998-10-06  0:00 ` Jacob Sparre Andersen [this message]
1998-10-06  0:00   ` dewarr
1998-10-07  0:00     ` Hans Marqvardsen
1998-10-08  0:00       ` Jacob Sparre Andersen
1998-10-12  0:00         ` Georg Bauhaus
1998-10-10  0:00   ` Markus Kuhn
1998-10-06  0:00 ` dewarr
1998-10-07  0:00 ` Jerry van Dijk
replies disabled

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