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 TAA00262; Sun, 14 Apr 2002 19:58:31 +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 TAA31879 for ; Sun, 14 Apr 2002 19:58:30 +0200 (MET DST) Received: from mg.ihep.su (mg.ihep.su [194.190.161.38]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3EHwRL02997; Sun, 14 Apr 2002 19:58:28 +0200 (MET DST) Received: by mg.ihep.su (Postfix, from userid 65436) id 8D565B5AF9; Sun, 14 Apr 2002 21:58:26 +0400 (MSD) Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by mg.ihep.su (Postfix) with ESMTP id 9EEDBB5AEC; Sun, 14 Apr 2002 21:58:25 +0400 (MSD) Received: from localhost (vsl@localhost) by ontil.ihep.su (8.11.6/8.11.6) with ESMTP id g3EI38P07321; Sun, 14 Apr 2002 22:03:10 +0400 Date: Sun, 14 Apr 2002 22:03:08 +0400 (MSD) From: Vitaly Lugovsky To: Cc: Subject: [Caml-list] Filename.quote - again Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi! I already reported about Filename.quote bug (or feature?) in current ocaml cvs. I can't understand the meaning of the following code: ----------------------- (* $Id: filename.ml,v 1.25 2002/03/12 16:16:56 xleroy Exp $ *) let generic_quote quotequote s = let l = String.length s in let b = Buffer.create (l + 20) in Buffer.add_char b '\''; (* HERE!!! *) for i = 0 to l - 1 do if s.[i] = '\'' then Buffer.add_string b quotequote else Buffer.add_char b s.[i] done; Buffer.add_char b '\''; (* AND HERE!!!! *) Buffer.contents b --------------------------- It makes gcc crazy when you passing linking options with spaces inside (try to compile camltk418 for example). ------------------- 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