Issue #13515 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.2: WONTFIX, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED

ruby_2_3 r59240 merged revision(s) 59102.

----------------------------------------
Bug #13515: Pathname#join doesn't add separator on UNC paths
https://bugs.ruby-lang.org/issues/13515#change-65601

* Author: p0deje (Alex Rodionov)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
* Backport: 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED
----------------------------------------
When using `Pathname#join` on Windows, I have no problems when working with normal paths:

`irb(main):008:0> Pathname.new('C:/selenium').join('common')
=> #<Pathname:C:/selenium/common>`

However, when doing the same thing on UNC shares, the path is malformed:

`irb(main):009:0> Pathname.new('//vboxsrv/selenium').join('common')
=> #<Pathname://vboxsrv/seleniumcommon>`

As you can see, there is no separator prepending `common`.

I'm not sure how can I provide a reproducible test script, but let me know if there is anything else I can do to help with issue.





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>