From: Emmanuel Briot <briot@act-europe.fr>
Subject: Re: Help: What's happening here?
Date: Mon, 10 Sep 2001 08:49:22 GMT
Date: 2001-09-10T08:49:22+00:00 [thread overview]
Message-ID: <m3lmjnctzu.fsf@lyon.act-europe.fr> (raw)
In-Reply-To: CgRm7.4349$iD.745158@news6-win.server.ntlworld.com
"chris.danx" <chris.danx@ntlworld.com> 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
next prev parent reply other threads:[~2001-09-10 8:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 21:35 Help: What's happening here? chris.danx
2001-09-10 8:49 ` Emmanuel Briot [this message]
2001-09-10 12:16 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox