Re: Filenames in Ada
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 20:16:11 +0100
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@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.
- References:
- Filenames in Ada
- From: Martin Krischik
- Re: Filenames in Ada
- From: Martin Dowie
- Filenames in Ada
- Prev by Date: Re: Filenames in Ada
- Next by Date: Re: Help installing GCC/GNAT 4.0.2
- Previous by thread: Re: Filenames in Ada
- Next by thread: Re: Filenames in Ada
- Index(es):
Relevant Pages
|