From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Yet another problem with Ada.Directories
Date: Mon, 26 Nov 2007 15:10:37 +0100
Date: 2007-11-26T15:03:16+01:00 [thread overview]
Message-ID: <tifgjrvt4uik$.sf4ffwrghzp3.dlg@40tude.net> (raw)
Some operating systems have case-insensitive file names. The problem is
that Ada.Directories does not define file name/path comparisons. Comparing
names as strings is necessarily OS-dependent.
(Actually making Simple_Name, Base_Name, Full_Name the same string type
does not look much in Ada way (TM). I would make all them new-String with
comparison overridden.)
------------------------
P.S. In the current GNAT implementation for Windows there is a trick to
compare names properly. That is to pass all file names through
Get_Directory / Simple_Name -> Compose before doing String comparison. That
would make them lower-case.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next reply other threads:[~2007-11-26 14:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 14:10 Dmitry A. Kazakov [this message]
2007-11-27 2:07 ` Yet another problem with Ada.Directories Randy Brukardt
2007-11-27 7:11 ` Larry Kilgallen
2007-12-20 10:37 ` I. Levashew
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox