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

Compatibility of Filename on Windows #88

Open
yakobowski opened this issue Feb 6, 2019 · 3 comments
Open

Compatibility of Filename on Windows #88

yakobowski opened this issue Feb 6, 2019 · 3 comments
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.

Comments

@yakobowski
Copy link

I noticed that the Filename component of Core has been (mostly) migrated into Core_kernel. However, while trying to use it under Windows, I noticed that it is actually not portable at all. In particular, forward slashes are expected everywhere. Fixing this requires actually pretty deep changes. Are you aware of this issue?

@yminsky
Copy link

yminsky commented Feb 6, 2019

Indeed. That module in its current state would perhaps be better named Posix_filename. We'd be happy to consider PRs on fixing this to make it more portable, if people would be interested in contributing. We don't have a lot of in-house expertise on using OCaml on Windows, so we're not well placed to get the semantics of filenames just right.

@yminsky
Copy link

yminsky commented Feb 6, 2019

And, it's worth saying, a comment explaining the posix-specific nature of the module would be in order. That's certainly something we can do.

@yakobowski
Copy link
Author

I'm unfortunately not an expert either... I noticed that Daniel has done a lot of work related to filenames in Fpath (https://github.com/dbuenzli/fpath), this may be the way to go to get something portable.

In the meantime, a comment regarding portability would be great indeed 😄

@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.
Projects
None yet
Development

No branches or pull requests

3 participants