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 XAA15753; Thu, 5 Aug 2004 23:45:07 +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 XAA15741 for ; Thu, 5 Aug 2004 23:45:06 +0200 (MET DST) Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i75Lj4RM000591 for ; Thu, 5 Aug 2004 23:45:05 +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 i75Lj4pR019595 for ; Thu, 5 Aug 2004 17:45:04 -0400 (EDT) Received: from w20-575-49.mit.edu (W20-575-49.MIT.EDU [18.187.0.68]) (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 i75Lj3oM025424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 5 Aug 2004 17:45:04 -0400 (EDT) Received: (from jfc@localhost) by w20-575-49.mit.edu (8.12.9) id i75Lj3I3019675; Thu, 5 Aug 2004 17:45:03 -0400 (EDT) Message-Id: <200408052145.i75Lj3I3019675@w20-575-49.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 09:01:54 +0200." <4111DB62.7030302@bik-gmbh.de> Date: Thu, 05 Aug 2004 17:45:03 -0400 From: John Carr X-Miltered: at concorde with ID 4112AA61.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 foo:01 mdb:99 memo:01 newlines:01 dumped:01 sanity:01 ocaml:01 ocaml:01 exists:01 checking:01 parser:02 unix:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > John Carr wrote: > > 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