From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id C18FA82098 for ; Mon, 5 Aug 2013 19:34:34 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of r.3@libertysurf.fr) identity=pra; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="r.3@libertysurf.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of r.3@libertysurf.fr) identity=mailfrom; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="r.3@libertysurf.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp4-g21.free.fr) identity=helo; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="postmaster@smtp4-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcBAGHh/1HUGyoElGdsb2JhbABbgkKBSYMQu2WBIRYOAQEBAQcNEhQDJYIbECN0ASUZAlmILZR1jwCRPo9lOxaCUIEnA6xIOoFu X-IPAS-Result: AmcBAGHh/1HUGyoElGdsb2JhbABbgkKBSYMQu2WBIRYOAQEBAQcNEhQDJYIbECN0ASUZAlmILZR1jwCRPo9lOxaCUIEnA6xIOoFu X-IronPort-AV: E=Sophos;i="4.89,819,1367964000"; d="scan'208,217";a="28561037" Received: from smtp4-g21.free.fr ([212.27.42.4]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 Aug 2013 19:34:33 +0200 Received: from zimbra27-e5.priv.proxad.net (unknown [172.20.243.177]) by smtp4-g21.free.fr (Postfix) with ESMTP id 82F0F4C818A for ; Mon, 5 Aug 2013 19:34:30 +0200 (CEST) Date: Mon, 5 Aug 2013 19:34:29 +0200 (CEST) From: r.3@libertysurf.fr To: caml-list@inria.fr Message-ID: <851017912.242111224.1375724069423.JavaMail.root@zimbra27-e5.priv.proxad.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_242111223_1321608519.1375724069422" X-Originating-IP: [172.16.79.17, 143.196.127.2] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Linux)/7.2.0-GA2598) X-Authenticated-User: r.3@libertysurf.fr Subject: [Caml-list] character syntax error '^M' ------=_Part_242111223_1321608519.1375724069422 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Dear list, I got a new error with trunk version of ocaml. I have in a module a code that appears like that in emacs (which is used to convert files from dos to unix) : String.get s (String.length s -1) = '^M' The thing is that '^M' is actually the return character of windows (RET) This works with ocaml 4.00, but now, with trunk version of ocaml, it tells me this is a "syntax error". How shall I do ? what is supposed to be inside the ' ' ? The emacs command "describe-char" gives me this unicode : 0x0D Best regards, William ------=_Part_242111223_1321608519.1375724069422 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Dear list,

I got a new error with trunk version of ocaml.

I have in a module a code that appears like that in emacs (which is used to convert files from dos to unix) :
String.get s (String.length s -1) = '^M'

The thing is that '^M' is actually the return character of windows (RET)

This works with ocaml 4.00, but now, with trunk version of ocaml, it tells me this is a "syntax error". How shall I do ? what is supposed to be inside the ' ' ?
The emacs command "describe-char" gives me this unicode : 0x0D


Best regards,
William
------=_Part_242111223_1321608519.1375724069422--