From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: [ranting] Take Command Plugin, Win32Ada and Ada.Directories
Date: Thu, 15 Nov 2007 10:08:17 +0100
Date: 2007-11-15T10:01:14+01:00 [thread overview]
Message-ID: <1g63wx1m2rf3a.1bopw7zyeeyy6.dlg@40tude.net> (raw)
In-Reply-To: 1220629.5SNnNGaTIf@linux1.krischik.com
On Wed, 14 Nov 2007 19:38:32 +0100, Martin Krischik wrote:
> Dmitry A. Kazakov wrote:
>
>>> Not just Ada.Directories - any package where a file name is needed.
>>> And not just Win32 - any platform which supports UTF-8 file names.
>>
>> Sure.
>>
>> One formal problem is that Character is specified as Latin-1.
>
> Sure - but then there is allways the BOM [1] 16#EFBBBF# would mark the
> string UTF-8. But I guess it would be an enormous effort to support two
> file name string types - one Latin-1 and another UTF-8 - and to find out
> which one you got you need the check the first 3 characters.
I would just drop Latin-1 and return back to 7-bit ASCII, requiring that
all Strings passed to or received from outside were UTF-8. For legacy
programs Latin-1 versions of Ada.Text_IO and Ada.Directories could be
provided as Ada.Latin_1.Text_IO etc.
(There is an issue with literals like '�'. I would make them all
Wide_Character only and provide built-in conversions from Wide to String.
Clearly all string types are convertible subtypes of some Universal_String
with unlimited-length characters.)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2007-11-15 9:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 19:53 [ranting] Take Command Plugin, Win32Ada and Ada.Directories Martin Krischik
2007-11-13 8:57 ` Dmitry A. Kazakov
2007-11-13 9:52 ` Martin Krischik
2007-11-13 21:08 ` Pascal Obry
2007-11-14 8:33 ` Dmitry A. Kazakov
2007-11-14 8:56 ` Martin Krischik
2007-11-14 9:31 ` Georg Bauhaus
2007-11-14 11:19 ` Vadim Godunko
2007-11-14 14:22 ` Dmitry A. Kazakov
2007-11-14 20:15 ` Martin Krischik
2007-11-15 8:37 ` Dmitry A. Kazakov
2007-11-14 13:15 ` [ranting] " Martin Krischik
2007-11-14 13:31 ` Georg Bauhaus
2007-11-14 14:36 ` Dmitry A. Kazakov
2007-11-14 15:13 ` Georg Bauhaus
2007-11-14 15:35 ` Dmitry A. Kazakov
2007-11-14 16:22 ` Georg Bauhaus
2007-11-14 19:32 ` Martin Krischik
2007-11-15 8:54 ` Dmitry A. Kazakov
2007-11-16 6:54 ` Randy Brukardt
2007-11-14 19:23 ` Martin Krischik
2007-11-14 20:05 ` Georg Bauhaus
2007-11-14 19:21 ` Martin Krischik
2007-11-14 9:36 ` Dmitry A. Kazakov
2007-11-14 18:38 ` Martin Krischik
2007-11-15 1:51 ` John W. Kennedy
2007-11-15 9:08 ` Dmitry A. Kazakov [this message]
2007-11-14 8:49 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox