Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_channel_length confusing in text mode #2560

Closed
vicuna opened this issue May 6, 2004 · 1 comment
Closed

in_channel_length confusing in text mode #2560

vicuna opened this issue May 6, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 6, 2004

Original bug ID: 2560
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Eijiro Sumii
Version: 3.07+2
OS: Windows 2000 with MSVC
Submission from: mor371-1.cis.upenn.edu (158.130.12.182)

"in_channel_length" returns the number of characters in a file before the
conversion of "\r\n" to "\n" on Windows. I think this is confusing and leads to
unexpected End_of_file exceptions in contexts like "really_input c s 0
(in_channel_length c)". If this is hard to change, it would be better to warn
in the description of in_channel_length in the manual.

@vicuna
Copy link
Author

vicuna commented Jun 22, 2004

Comment author: administrator

Documentation improved 2004-06-22 XL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant