[Issue 17488] New: Platform-inconsistent behavior from getTempDir()
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jun 10 10:53:34 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17488
Issue ID: 17488
Summary: Platform-inconsistent behavior from getTempDir()
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: dlang at ryanjframe.com
On Windows, std.file's getTempDir() ends with a path separator, but on POSIX it
does not.
Consistent behaviour would allow cross-platform code to e.g., (if we add the
slash to POSIX) simply do "getTempDir() ~ myname.tmp", rather than require
checking for the platform.
I can do the PR if I know the desired behaviour (add the slash to POSIX or
remove it from Windows).
--
More information about the Digitalmars-d-bugs
mailing list