comp.lang.ada
 help / color / mirror / Atom feed
From: demoonlit@panathenaia.halfmoon.jp
Subject: Re: System.WCh_Cnv
Date: 13 Jul 2006 10:24:29 -0700
Date: 2006-07-13T10:24:29-07:00	[thread overview]
Message-ID: <1152811469.003475.301520@s13g2000cwa.googlegroups.com> (raw)
In-Reply-To: <3082414.k9Jeq3hKxq@linux1.krischik.com>

Martin Krischik wrote:
> Well it's a System.* package and most System packages are for internal
> compiler use.

Thank you, and yes, System.WCh_Cnv is internal used by Wide_Text_IO and
compiler.
Then, text read with Wide_Text_IO be JIS character code...because my
Windows comand prompt used Shift-JIS.
So I'd convert JIS character code to other code set(with iconv,
mbstowcs, etc). Raw JIS character code values are not popular in Japan.
Text data often encoded as Shift-JIS, EUC or UTF-8.
And other Ada packages assume Wide_String as Unicode. I think it's
natural, because C-functions assume wchar_t as Unicode.
If at all possible, I want take Wide_String as Unicode same as
C-runtime functions.
System.WCh_Cnv confound JIS character code with Unicode, it makes
troubles. Wide_Text_IO (and -gnatWs, -gantWe) are useless in fact,
because there is no what uses JIS character code as it is, conversion
is needed after all.
So, I want to know why System.WCh_Cnv takes JIS character code?

-- 
YT




  parent reply	other threads:[~2006-07-13 17:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 14:13 System.WCh_Cnv Y.Tomino
2006-07-12 15:51 ` System.WCh_Cnv Martin Krischik
2006-07-12 18:57   ` System.WCh_Cnv Björn Persson
2006-07-13 17:24   ` demoonlit [this message]
2006-07-13 21:30     ` System.WCh_Cnv Björn Persson
2006-07-14  7:19       ` System.WCh_Cnv Dmitry A. Kazakov
2006-07-14  7:40       ` System.WCh_Cnv Martin Krischik
2006-07-14 12:18         ` System.WCh_Cnv Björn Persson
2006-07-16 11:41           ` System.WCh_Cnv Martin Krischik
2006-07-24 21:00             ` System.WCh_Cnv Björn Persson
2006-07-24 23:35               ` System.WCh_Cnv Randy Brukardt
2006-07-25  0:45                 ` System.WCh_Cnv Marius Amado-Alves
2006-07-14 16:13         ` System.WCh_Cnv Georg Bauhaus
2006-07-12 18:57 ` System.WCh_Cnv Björn Persson
2006-07-13 17:34   ` System.WCh_Cnv demoonlit
     [not found] <8BB3B99E-16DA-4EBF-A2FE-50B079349CA9@amado-alves.info>
2006-07-25  0:45 ` System.WCh_Cnv Marius Amado-Alves
     [not found] <EBEKJMEEPPFAACCBBGNHAELNDIAA.randy@rrsoftware.com>
2006-07-25 10:31 ` System.WCh_Cnv Marius Amado-Alves
2006-07-25 12:21   ` System.WCh_Cnv Dmitry A. Kazakov
2006-07-25 13:03     ` System.WCh_Cnv Marius Amado-Alves
2006-07-25 13:36       ` System.WCh_Cnv Dmitry A. Kazakov
2006-07-25 14:09       ` System.WCh_Cnv Georg Bauhaus
replies disabled

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