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 D77C67FCF0 for ; Thu, 2 Apr 2015 17:22:50 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of sebastien-ocaml@chimrod.com) identity=pra; client-ip=212.27.42.1; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="sebastien-ocaml@chimrod.com"; x-conformance=sidf_compatible Received-SPF: PermError (mail2-smtp-roc.national.inria.fr: cannot correctly interpret sender authenticity information from domain of sebastien-ocaml@chimrod.com) identity=mailfrom; client-ip=212.27.42.1; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="sebastien-ocaml@chimrod.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp1-g21.free.fr) identity=helo; client-ip=212.27.42.1; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="postmaster@smtp1-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DlAAByXh1VnAEqG9RcgmaEZYEtyFtMAQEBAQEBEgEBAQEBBg0JCRQuhEhqSQIEdogoA6YJj1GYOyCQP4JSgUUFkliJL4YSjRmBc4IfgzABAQE X-IPAS-Result: A0DlAAByXh1VnAEqG9RcgmaEZYEtyFtMAQEBAQEBEgEBAQEBBg0JCRQuhEhqSQIEdogoA6YJj1GYOyCQP4JSgUUFkliJL4YSjRmBc4IfgzABAQE X-IronPort-AV: E=Sophos;i="5.11,511,1422918000"; d="mll'?scan'208";a="131314718" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 02 Apr 2015 17:22:42 +0200 Received: from goku.chimrod.com (unknown [88.172.128.238]) by smtp1-g21.free.fr (Postfix) with ESMTP id D64F494000A for ; Thu, 2 Apr 2015 17:21:07 +0200 (CEST) Received: from goku.chimrod.com (localhost [127.0.0.1]) by goku.chimrod.com (Postfix) with ESMTP id 393E51F740 for ; Thu, 2 Apr 2015 17:22:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on goku.chimrod.com X-Spam-Level: Received: from mail.chimrod.com (goku [IPv6:2a01:e35:8ac8:ee0:7271:bcff:feb1:adf4]) by goku.chimrod.com (Postfix) with ESMTPA for ; Thu, 2 Apr 2015 17:22:41 +0200 (CEST) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_2c5158b50b946ae81feabd39a4dd3412" Date: Thu, 02 Apr 2015 17:22:41 +0200 From: =?UTF-8?Q?S=C3=A9bastien_Dailly?= To: caml-list@inria.fr Message-ID: X-Sender: sebastien-ocaml@chimrod.com User-Agent: Roundcube Webmail/0.9.5 Subject: [Caml-list] Strange result with Lexing --=_2c5158b50b946ae81feabd39a4dd3412 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed Hello, I've found a strange result when calling Lexing.lexeme_start and Lexing.lexeme_end on DOS format file (with \r\n instead of \n). The value returned by the two functions is wrong when the file is in DOS format (the result does not change when I convert the file in UNIX format, but this is what I expect). I there something I misunderstood in the documentation ? (I've compiled ocaml with opam on cygwin). Regards, -- Sébastien Dailly --=_2c5158b50b946ae81feabd39a4dd3412 Content-Transfer-Encoding: base64 Content-Type: text/plain; name=lexer.mll Content-Disposition: attachment; filename=lexer.mll; size=509 ewogIG9wZW4gTGV4aW5nCiAgb3BlbiBQYXJzZXIKCiAgZXhjZXB0aW9uIFN5 bnRheEVycm9yIG9mIHN0cmluZyAqIGxleGJ1ZgogIAogIGxldCBkZWJ1ZyBs ZXhidWYgPQogICAgbGV0IG9wZW4gTGV4aW5nIGluCiAgICAgIFByaW50Zi5w cmludGYgImxleGVtZV9zdGFydCAlZFxubGV4ZW1lX2VuZCAlZFxuIiAKICAg ICAgICAoTGV4aW5nLmxleGVtZV9zdGFydCBsZXhidWYpCiAgICAgICAgKExl eGluZy5sZXhlbWVfZW5kIGxleGJ1ZikKfQoKCmxldCB3aGl0ZSA9IFsnICcg J1x0J10KbGV0IG5ld2xpbmUgPSAiXG5cciIgfCAnXG4nIHwgJ1xyJwoKCnJ1 bGUgcmVhZCA9IHBhcnNlCiAgfCB3aGl0ZSsgICB7IHJlYWQgbGV4YnVmIH0K CiAgfCAib2JqIiAgIHsgZGVidWcgbGV4YnVmOyBPQkogfQoKICB8IG5ld2xp bmUgeyAgcmVhZCBsZXhidWYgfQogIHwgZW9mICAgICB7IEVPRiB9CiAgfCBf ICAgICAgIHsgcmFpc2UgKFN5bnRheEVycm9yICgiVW5leHBlY3RlZCBjaGFy IiwgbGV4YnVmKSkgfQo= --=_2c5158b50b946ae81feabd39a4dd3412--