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 EAA24314; Wed, 25 Aug 2004 04:06:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA28349 for ; Wed, 25 Aug 2004 04:06:30 +0200 (MET DST) Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i7P26TKJ019528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 25 Aug 2004 04:06:30 +0200 Received: from manawatu-mail-centre.mit.edu (MANAWATU-MAIL-CENTRE.MIT.EDU [18.7.7.71]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id i7P26SEX007370 for ; Tue, 24 Aug 2004 22:06:29 -0400 (EDT) Received: from department-of-alchemy.mit.edu (DEPARTMENT-OF-ALCHEMY.MIT.EDU [18.7.16.69]) (authenticated bits=56) (User authenticated as jfc@ATHENA.MIT.EDU) by manawatu-mail-centre.mit.edu (8.12.4/8.12.4) with ESMTP id i7P26SJV019004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 24 Aug 2004 22:06:28 -0400 (EDT) Received: (from jfc@localhost) by department-of-alchemy.mit.edu (8.12.9) id i7P26SR0002390; Tue, 24 Aug 2004 22:06:28 -0400 (EDT) Message-Id: <200408250206.i7P26SR0002390@department-of-alchemy.mit.edu> To: caml-list@inria.fr Subject: Re: [Caml-list] .mdb access in OCaml In-Reply-To: Your message of "Thu, 05 Aug 2004 17:45:03 EDT." <200408052145.i75Lj3I3019675@w20-575-49.mit.edu> Date: Tue, 24 Aug 2004 22:06:28 -0400 From: John Carr X-Miltered: at concorde with ID 412BF425.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mdb:99 jfc:01 mdb:99 releasable:01 foo:01 memo:01 newlines:01 dumped:01 sanity:01 ocaml:01 ocaml:01 exists:01 checking:01 parser:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Since the exchange quoted below I have written an OCaml tool to read .mdb files. (The mdbtools maintainer says he has fixed the mdb-export crash too.) It is not in a releasable state yet, but anybody who is interested an an incomplete package can contact me directly. > > > There is a C package, "mdbtools", that will provide a starting point > > > if nothing exists in ocaml. > > > > I tend to do Unix.open_process_in "mdb-export foo.mdb bar" and hope that there > > are no memo fields with embedded newlines, which would require a slightly more > > elaborate parser then input_line. > > mdb-export core dumped the first time I ran it on the file. Proximate > cause is writing past the end of an array but the real problem is lack > of sanity checking input data. I guess I'll have to do it the hard way. ------------------- 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