D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2790 - std.path.join with version(Windows)
Summary: std.path.join with version(Windows)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-04-03 09:19 UTC by Haruki Shigemori
Modified: 2015-06-09 01:18 UTC (History)
1 user (show)

See Also:


Attachments
fix std.path.join (2.87 KB, patch)
2009-04-03 09:20 UTC, Haruki Shigemori
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Haruki Shigemori 2009-04-03 09:19:06 UTC
import std.stdio, std.path;
void main()
{
  version(Windows){
    writefln(join("d","dmd","src")); // d\dmd (d\dmd\src by rights)
  }
  version(Posix){
    writefln(join("d","dmd","src")); // d/dmd/src
  }
}
Comment 1 Haruki Shigemori 2009-04-03 09:20:08 UTC
Created attachment 311 [details]
fix std.path.join
Comment 2 Haruki Shigemori 2009-09-03 11:35:51 UTC
This is very easily bug.
I want to fix it next update.
Comment 3 Andrei Alexandrescu 2009-09-03 12:50:11 UTC
Sorry, I missed this one. The fix is now in svn and will be in the next release.