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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,43ab55a75a8b5d1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!s13g2000cwa.googlegroups.com!not-for-mail From: demoonlit@panathenaia.halfmoon.jp Newsgroups: comp.lang.ada Subject: Re: System.WCh_Cnv Date: 13 Jul 2006 10:24:29 -0700 Organization: http://groups.google.com Message-ID: <1152811469.003475.301520@s13g2000cwa.googlegroups.com> References: <3082414.k9Jeq3hKxq@linux1.krischik.com> NNTP-Posting-Host: 219.97.138.194 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1152811474 24744 127.0.0.1 (13 Jul 2006 17:24:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 13 Jul 2006 17:24:34 +0000 (UTC) In-Reply-To: <3082414.k9Jeq3hKxq@linux1.krischik.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000cwa.googlegroups.com; posting-host=219.97.138.194; posting-account=9W2rvw0AAACyvigQCWLBrKWN2EwyZyMn Xref: g2news2.google.com comp.lang.ada:5663 Date: 2006-07-13T10:24:29-07:00 List-Id: 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