Pathname#join doesn't add separator on UNC paths
Pathname#join on Windows, I have no problems when working with normal paths:
However, when doing the same thing on UNC shares, the path is malformed:
As you can see, there is no separator prepending
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.
Updated by nobu (Nobuyoshi Nakada) about 3 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r59102.
pathname.rb: UNC root pathname needs a separator
- ext/pathname/lib/pathname.rb (Pathname#plus): UNC root pathname needs a separator. File.basename returns "/" on UNC root, as well as sole drive letter, even if it does not end with a separator. [ruby-core:80900] [Bug #13515]