Skip to content

Conversation

@DmitryKakurin
Copy link
Contributor

absname was incorrectly converting //host/path to /host/path

Added Windows-only Unit Tests for:

  • Path.absname for UNC path (fixed here)
  • Path.type for UNC path (was already correct, but not tested)

absname was incorrectly converting `//host/path` to `/host/path`

Added Windows-only Unit Tests for:
* Path.absname for UNC path (fixed here)
* Path.type for UNC path (was already correct, but not tested)
@ericmj
Copy link
Member

ericmj commented Jan 5, 2020

This will also accept mixed slashes: /\host/path. If it should be converted to //host/path please add an explicit test for it.

@DmitryKakurin
Copy link
Contributor Author

@ericmj yes, support for mixed slashes is intentional. Added Unit Tests.

@ericmj ericmj merged commit 762989b into elixir-lang:v1.9 Jan 6, 2020
@ericmj
Copy link
Member

ericmj commented Jan 6, 2020

Thank you!

@DmitryKakurin
Copy link
Contributor Author

Thank you @ericmj!
2 questions:

  1. Do I need to do anything for this fix to get into master branch?
  2. Will this fix get into Elixir 1.9.5 release?

@ericmj
Copy link
Member

ericmj commented Jan 6, 2020

It will be backported to master, please make future PRs to the master branch. If we do a 1.9.5 release your fix will be included in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants