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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,b3d252ea5c7b37a7 X-Google-Attributes: gid103376,public From: sparre@meyer.fys.ku.dk (Jacob Sparre Andersen) Subject: Re: ISO LATIN_1 in Windows 95 ? Date: 1998/10/06 Message-ID: <6vde32$jle$1@news.net.uni-c.dk>#1/1 X-Deja-AN: 398299098 References: <3618A5D5.72C@ddre.dk> X-Complaints-To: usenet@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 907688866 20142 (None) 130.225.102.37 Organization: UNI-C Newsgroups: comp.lang.ada Date: 1998-10-06T00:00:00+00:00 List-Id: 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 -- ----------------------------------------------------------------------------