Re: Filenames in Ada
- From: Martin Dowie <martin.dowie@xxxxxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 06:54:14 +0000 (UTC)
Martin Krischik wrote:
Just a question. I get an NAME_ERROR exception in Ada.Directories.More_Entries. Is that actually correct? Should the exception not be in Ada.Directories.Simple_Name?
Sounds like a bug to me...
Assuming you are using GNAT, there is also note there is a bug in the AdaCore "Compose" function. You should change:
if not Is_Valid_Path_Name (Containing_Directory) then
raise Name_Error;to:
if Containing_Directory /= "" and
not Is_Valid_Path_Name (Containing_Directory) then
raise Name_Error;I've reported this in Bugzilla yonks ago but no changes in GCC yet, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21346
Cheers
-- Martin .
- References:
- Filenames in Ada
- From: Martin Krischik
- Re: Filenames in Ada
- From: Randy Brukardt
- Re: Filenames in Ada
- From: Martin Krischik
- Filenames in Ada
- Prev by Date: Re: autotools and ada
- Next by Date: Re: Filenames in Ada
- Previous by thread: Re: Filenames in Ada
- Next by thread: Re: Filenames in Ada
- Index(es):
Relevant Pages
|