From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA30226; Wed, 6 Aug 2003 16:39:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA20329 for ; Wed, 6 Aug 2003 16:39:06 +0200 (MET DST) Received: from opus.davidb.org (66-75-152-1.san.rr.com [66.75.152.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h76Ed5T09771 for ; Wed, 6 Aug 2003 16:39:05 +0200 (MET DST) Received: from davidb by opus.davidb.org with local (Exim 3.31 #1 (Debian)) id 19kPRO-0007Zy-00; Wed, 06 Aug 2003 07:39:02 -0700 Date: Wed, 6 Aug 2003 07:39:02 -0700 From: David Brown To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Unix.stat sometimes fails on Win32 port Message-ID: <20030806143902.GA29030@davidb.org> References: <20030806100225.GA27730@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030806100225.GA27730@redhat.com> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 lablgtk:01 06,:02 compile:02 unix:02 dave:03 wrote:03 aug:05 wrap:06 basically:06 stat:07 problem:07 dialog:07 fails:07 0100,:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Aug 06, 2003 at 11:02:25AM +0100, Richard Jones wrote: > Demonstration program below. Basically if you compile this and run > > winfiletest d c:\ > winfiletest d c:\temp > winfiletest d c:\temp\ <-- this one fails > winfiletest d c:\temp\. > > This is specifically a problem with lablgtk2 which returns directory > names with a trailing slash from the file selection dialog. Works OK > on the Unix port, but fails under Windows. Unix is being nice to you in stripping off the final slash. Would it be possible to wrap the stat call in something that checks for and removes a trailing slash? Dave Brown ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners