From: "Török Edwin" <edwin+ml-ocaml@etorok.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Strange result with Lexing
Date: Thu, 02 Apr 2015 18:42:18 +0300 [thread overview]
Message-ID: <551D635A.90506@etorok.net> (raw)
In-Reply-To: <ebb918ce3a944148219a68a2db15aade@chimrod.com>
On 04/02/2015 06:22 PM, Sébastien Dailly wrote:
> 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).
>
Do you use 'open_in' or 'open_in_bin' to read the file?
--Edwin
next prev parent reply other threads:[~2015-04-02 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 15:22 Sébastien Dailly
2015-04-02 15:42 ` Török Edwin [this message]
2015-04-02 15:46 ` hugo
2015-04-03 7:25 ` Sébastien Dailly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551D635A.90506@etorok.net \
--to=edwin+ml-ocaml@etorok.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox