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

Correct display of dir separator on Windows #3893

Merged
merged 1 commit into from
Jun 28, 2019
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Jun 27, 2019

Corrected messages which had hard-coded forward slashes in messages (e.g. ~/.opam) either to use Filename.dir_sep (for simple cases like that) or Filename.concat to build the display properly. Messages on Windows should always use backslashes (and certainly not end up displaying a mix).

OpamFilename.create and OpamFilename.Dir.of_string (already) both normalise forward-slash to back-slash on Windows.

Note that while Windows doesn't have a concept of ~ in the normal way, it's not unreasonable to assume it (Vim-for-Windows, for example, automatically displays ~ if you set %HOME%, and I have another shell-related commit which sets %HOME% for opam users)

Corrected messages which had hard-coded forward slashes in messages (e.g.
~/.opam) either to use Filename.dir_sep (for simple cases like that) or
Filename.concat to build the display properly. Messages on Windows should
always use backslashes (and certainly not end up displaying a mix).

OpamFilename.create and OpamFilename.Dir.of_string both normalise
forward-slash to back-slash on Windows.
@AltGr AltGr merged commit ccd478c into ocaml:master Jun 28, 2019
@dra27 dra27 deleted the dir-separator branch June 28, 2019 09:40
@rjbou rjbou added this to the 2.1.0 milestone Jul 5, 2019
@dra27 dra27 mentioned this pull request Jun 13, 2024
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.

3 participants