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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,347f7cbe27451012 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Take Command Plugin, Win32Ada and Ada.Directories Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <3343563.psPA6e9Oqh@linux1.krischik.com> <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> <473A1241.90702@obry.net> <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> <473ab86d$1@news.post.ch> <473ac065$0$16659$9b4e6d93@newsspool3.arcor-online.net> <1195039184.134708.325400@57g2000hsv.googlegroups.com> Date: Wed, 14 Nov 2007 15:22:55 +0100 Message-ID: <1uxehqhjyj9tb$.1kijqqh179oad$.dlg@40tude.net> NNTP-Posting-Date: 14 Nov 2007 15:15:54 CET NNTP-Posting-Host: a7ac58fb.newsspool3.arcor-online.net X-Trace: DXC=5<@0Qi?1eQ]cHPTNZh_e7QMcF=Q^Z^V3X4Fo<]lROoRQ4nDHegD_]RURGAbI?Q;i4VDNcfSJ;bb[UFCTGGVUmh?TLK[5LiR>kgRIWgdmM8KjQT X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18372 Date: 2007-11-14T15:15:54+01:00 List-Id: On Wed, 14 Nov 2007 11:19:44 -0000, Vadim Godunko wrote: > On Nov 14, 12:31 pm, Georg Bauhaus +bauh...@maps.futureapps.de> wrote: >> >> package IConv is >> >> -- the missing link to, e.g. >> --http://www.gnu.org/software/libiconv/ >> >> end IConv; >> > This sees as too complex solution for me. Long time we are using only > Wide_Character and Wide_String in our code and bindings to the > wcstombs(3)/mbstowcs(3) functions pair for conversion between locale > multibyte (char *) strings and wide (wchar_t *) strings. This work > well on most *nix systems, I don't known does or doesn't it work on > Windows. MS Visual C++ has them. In API there is MultiByteToWideChar http://msdn2.microsoft.com/en-us/library/ms776413.aspx, which does not what its name suggests (should be MultiByteToMultiWORD (:-)) The problem is that Windows since NT is UTF-16, rather than UCS-2. So to use Wide_String just makes no any sense. It is not an array of characters anyway. Thus one could use plain String instead. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de