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

Fix compilation on windows #75

Closed
wants to merge 2 commits into from
Closed

Fix compilation on windows #75

wants to merge 2 commits into from

Conversation

hhugo
Copy link
Contributor

@hhugo hhugo commented Jun 27, 2024

No description provided.

check402.ml Outdated
@@ -1,6 +1,7 @@
let () =
set_binary_mode_out stdout;
Copy link
Owner

@maranget maranget Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hhugo, thanks for submitting this PR. This code triggers the following warning at compilation:

  set_binary_mode_out stdout;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 5 [ignored-partial-application]: this function application is partial,

Could you motivate your change,? I know very little about Windows. Moreover, using text mode for I/O would, in my naive view, be more compatible that binary I/O.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it was a half a change from a previous iteration.
The issue with the script is that in presence of automatic newline translation on windows, the check in handle402.sh fail because there is now a trailing \r.
To fix it, one need to either set binary_mode for stdout or remove the newline (which this PR implement)

@hhugo hhugo mentioned this pull request Jun 27, 2024
4 tasks
maranget added a commit that referenced this pull request Jul 4, 2024
@maranget
Copy link
Owner

maranget commented Jul 4, 2024

PR merged by hand for a clean history, thanks @hhugo.

@maranget maranget closed this Jul 4, 2024
@hhugo hhugo deleted the win branch July 4, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants