From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a9a7b6e1937d4bda,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Yet another problem with Ada.Directories Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH Date: Mon, 26 Nov 2007 15:10:37 +0100 Message-ID: NNTP-Posting-Date: 26 Nov 2007 15:03:16 CET NNTP-Posting-Host: 841bd379.newsspool1.arcor-online.net X-Trace: DXC=6YUKHB@1\a1gP]QSEBQ^d4ic==]BZ:af>4Fo<]lROoR1Fl8W>\BH3Y2`L16\j6cFc5DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2\5\YFPRLPE< X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18629 Date: 2007-11-26T15:03:16+01:00 List-Id: 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