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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6a101516e416e1a8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-10 01:49:22 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail Sender: briot@lyon.act-europe.fr Newsgroups: comp.lang.ada Subject: Re: Help: What's happening here? References: From: Emmanuel Briot Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.105 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 10 Sep 2001 08:49:22 GMT NNTP-Posting-Host: 213.228.58.160 X-Complaints-To: abuse@proxad.net X-Trace: nnrp1.proxad.net 1000111762 213.228.58.160 (Mon, 10 Sep 2001 10:49:22 CEST) NNTP-Posting-Date: Mon, 10 Sep 2001 10:49:22 CEST Organization: Guest of ProXad - France Xref: archiver1.google.com comp.lang.ada:12977 Date: 2001-09-10T08:49:22+00:00 List-Id: "chris.danx" writes: > The package body looks like this (playing with XML/Ada) > > with unicode.ces; > with unicode.ces.basic_8bit; > > package body preferences.conversions.unicode is > > package basic_8bt renames unicode.ces.basic_8bit; <<<<<<< > > -- takes a latin1 string and converts it to a > -- unicode encoded (utf16) string; > -- > function to_unicode_string (str : in string) > return utf16_string is > begin > return str; -- temp! Must fix > end to_unicode_string; The unicode package that GNAT see on the <<<<< line is the package Preferences.Conversions.Unicode, not the one from XML/Ada. You have to use something like package basic_8bt renames standard.unicode.ces.basic_8bit; if you want to access XML/Ada. Emmanuel