From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p6BJ61WO007422 for ; Mon, 11 Jul 2011 21:06:01 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQCAMdIG07RVdQ2kGdsb2JhbAA9AQMSmCuObAgUAQEBAQkJDQcUBCGpNIJRjCyCTYQ+O4hoAgMGhjQEjWKEcowxPINc X-IronPort-AV: E=Sophos;i="4.65,517,1304287200"; d="ml'?scan'208";a="112967179" Received: from mail-vw0-f54.google.com ([209.85.212.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 11 Jul 2011 21:05:55 +0200 Received: by vws18 with SMTP id 18so5583911vws.27 for ; Mon, 11 Jul 2011 12:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=ei/UckyB2JoqZd5b3t4uzitCBl1Wu35YshEbx35cdRI=; b=mTg6RcpKcjICEYLVH4jZqbLrp548jh0wu4o2hei9lDzwYg0DJf0pYhrMwIXVFpQmst VNEQWUOfuINZn7VZzbjkTq7T/nFscKC2GslOhgaPPcyvFTBRyZDhHDs9WkeJGTTDU8cK JGo1qUwLZyV4lzfSS8DMMUy5UlApkTj7Ge+Cc= MIME-Version: 1.0 Received: by 10.220.109.132 with SMTP id j4mr1674039vcp.36.1310411154747; Mon, 11 Jul 2011 12:05:54 -0700 (PDT) Received: by 10.220.182.10 with HTTP; Mon, 11 Jul 2011 12:05:54 -0700 (PDT) Date: Mon, 11 Jul 2011 21:05:54 +0200 Message-ID: From: Petter Urkedal To: caml-list@inria.fr Content-Type: multipart/mixed; boundary=0016367fa13c6372bd04a7cfdff3 Subject: [Caml-list] Quotation issue with camlp4 printer --0016367fa13c6372bd04a7cfdff3 Content-Type: text/plain; charset=ISO-8859-1 The attached program prints out let x = """;; when compiled with ocamlc and camlp4 version 3.12.0. As you can see, the string literal lacks an escape character. I haven't tried version 3.12.1, but I didn't find anything about it in the release notes. (To reproduce: ocamlc.opt -c -I +camlp4 -pp camlp4orf -o quotation_bug.cmo quotation_bug.ml ocamlc.opt dynlink.cma -I +camlp4 camlp4lib.cma quotation_bug.cmo -o quotation_bug.byte ./quotation_bug.byte ) Petter --0016367fa13c6372bd04a7cfdff3 Content-Type: application/octet-stream; name="quotation_bug.ml" Content-Disposition: attachment; filename="quotation_bug.ml" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gpzsnkhj0 b3BlbiBDYW1scDQuUHJlQ2FzdApvcGVuIFByaW50ZgoKbGV0IF9sb2MgPSBM b2MuZ2hvc3QKCmxldCAoKSA9CiAgICBsZXQgY29kZSA9IDw6c3RyX2l0ZW08 IHZhbHVlIHggPSAiXCIiID4+IGluCiAgICBQcmludGVycy5PQ2FtbC5wcmlu dF9pbXBsZW0gY29kZTsKICAgIHByaW50X3N0cmluZyAiXG4iCg== --0016367fa13c6372bd04a7cfdff3--