From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Filenames in Ada
Date: Thu, 24 Nov 2005 20:16:11 +0100
Date: 2005-11-24T20:16:11+01:00 [thread overview]
Message-ID: <1718304.Lhh4X6kH0F@linux1.krischik.com> (raw)
In-Reply-To: dm2b88$7j5$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com
Martin Dowie wrote:
> Martin Krischik wrote:
>> Hello
>>
>> I was just starting to write a little demo program for Ada.Directories.
>> Aim was the generation of m3u files for music collection. Allways nice to
>> have a demo which actually does something.
>>
>> However, filenames in music collections contain all sort of funny
>> characters (especially the my wife's music - allmost entirely in
>> Cyrillic) - no big deal for modern file systems. But a big deal for Ada
>> as it seams. Not only are all filenames in Ada.Directories of type String
>> - actually all filenames anywhere are just String.
>>
>> How does one deal with modern (utf-8) filenames in Ada?
>>
>> Is there a chance for an add-on package (to late for Ada 2005) or are we
>> snookered until Ada 2015.
>>
>> I also looked at C - they have appropriate functions in <wchar.h> using
>> Wide_Wide_Character for filenames.
>
> Aren't there some conversion routines to turn 16/32-bit UTF to/from
> String in AWS or XML/Ada?
You missed the point. I am speaking of filenames not file data.
You can't pass UTF-8 into CreateFileA - you have to use CreateFileW and that
need UTF-16. Actually - really UTF-16 or is it a simple Wide_Character
string. Windows Gurus?
Martin
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
next prev parent reply other threads:[~2005-11-24 19:16 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 17:36 Filenames in Ada Martin Krischik
2005-11-23 18:09 ` Martin Dowie
2005-11-24 19:16 ` Martin Krischik [this message]
2005-11-23 18:59 ` Dmitry A. Kazakov
2005-11-24 19:13 ` Martin Krischik
2005-11-24 20:49 ` Dmitry A. Kazakov
2005-11-24 21:23 ` Larry Kilgallen
2005-11-25 7:12 ` krischik
2005-11-25 12:25 ` [OT] VMS ODS-5 filesystems, was: " Simon Clubley
2005-11-25 18:01 ` Martin Krischik
2005-11-25 18:27 ` Georg Bauhaus
2005-11-25 19:54 ` Martin Krischik
[not found] ` <gjqeo157udsnbfuq8ak4dosf6nep5fomss@4ax.com>
2005-11-27 9:31 ` [OT] VMS DCL prompt, was: " Martin Krischik
2005-11-30 0:16 ` [OT] Administrator accounts (was: VMS DCL prompt) Björn Persson
2005-11-30 4:23 ` Larry Kilgallen
2005-11-23 22:18 ` Filenames in Ada Randy Brukardt
2005-11-24 3:21 ` Silly question about strings (was: Filenames in Ada) Steve
2005-11-24 4:58 ` Larry Kilgallen
2005-11-24 9:15 ` Martin Dowie
2005-11-24 11:30 ` Silly question about strings Brian May
2005-11-24 13:06 ` Silly question about strings (was: Filenames in Ada) Larry Kilgallen
2005-11-29 3:17 ` Randy Brukardt
2005-11-29 5:53 ` tmoran
2005-11-29 21:48 ` Randy Brukardt
2005-11-30 0:15 ` Björn Persson
2005-11-24 19:05 ` Filenames in Ada Martin Krischik
2005-11-25 6:54 ` Martin Dowie
2005-11-26 1:22 ` Björn Persson
2005-11-27 10:21 ` Martin Krischik
2005-11-30 0:13 ` Björn Persson
2005-12-01 6:59 ` Martin Krischik
2005-12-03 1:07 ` Björn Persson
2005-12-14 6:59 ` Dave Thompson
2005-12-15 20:23 ` Martin Krischik
2005-12-17 0:22 ` program privileges (was: Filenames in Ada) Georg Bauhaus
2005-12-17 16:59 ` Filenames in Ada Simon Wright
2005-12-17 23:18 ` Larry Kilgallen
2005-12-18 13:30 ` privileges in Unix and VMS (was: Filenames in Ada) Björn Persson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox