comp.lang.ada
 help / color / mirror / Atom feed
* Ada.Directories and multibyte-filename
@ 2006-07-13 17:38 Y.Tomino
  2006-07-14 12:05 ` Björn Persson
  2006-07-14 16:37 ` Georg Bauhaus
  0 siblings, 2 replies; 4+ messages in thread
From: Y.Tomino @ 2006-07-13 17:38 UTC (permalink / raw)


Searching directory with Ada.Directories, it raises Name_Error for
normal multibyte-filename.

Test:
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Directories; use Ada.Directories;
procedure Test is
   Search : Search_Type;
   File : Directory_Entry_Type;
begin
   Start_Search(Search, ".", "*");
   while More_Entries(Search) loop
      Get_Next_Entry(Search, File);
      Ada.Text_IO.Put_Line(Simple_Name(File));
   end loop;
   End_Search(Search);
end Test;

Compile and run it on the directory containing file named with
multibyte-characters.

raised ADA.IO_EXCEPTIONS.NAME_ERROR : a-direct.adb:122

It is not possible to use Ada.Directories in the regions having
multibyte-characters...

-- 
YT



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-10  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 17:38 Ada.Directories and multibyte-filename Y.Tomino
2006-07-14 12:05 ` Björn Persson
2006-08-10  8:39   ` demoonlit
2006-07-14 16:37 ` Georg Bauhaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox