comp.lang.ada
 help / color / mirror / Atom feed
From: "Y.Tomino" <demoonlit@panathenaia.halfmoon.jp>
Subject: Ada.Directories and multibyte-filename
Date: Fri, 14 Jul 2006 02:38:36 +0900
Date: 2006-07-14T02:38:36+09:00	[thread overview]
Message-ID: <e960ej$4ei$1@news521.nifty.com> (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



             reply	other threads:[~2006-07-13 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 17:38 Y.Tomino [this message]
2006-07-14 12:05 ` Ada.Directories and multibyte-filename Björn Persson
2006-08-10  8:39   ` demoonlit
2006-07-14 16:37 ` Georg Bauhaus
replies disabled

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