August 30, 2008 [Issue 2322] New: Wrong behavior of std.path.dirname() in Windows | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2322 Summary: Wrong behavior of std.path.dirname() in Windows Product: D Version: 2.018 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: snake.scaly@gmail.com Windows version of dirname() sometimes gives incorrect results: dirname(r"\foo") -> "." The "\foo" path is relative to the root of the current drive. The correct dirname for "\foo" is "\" which is the root of the current drive. dirname(r"c:\foo") -> "c:" Windows maintains separate working directories for each drive. "c:" refers to a working directory for drive "C". The correct dirname for "c:\foo" is "c:\" which is the root of drive "C". -- |
August 30, 2008 [Issue 2322] Wrong behavior of std.path.dirname() in Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2322 bartosz@relisoft.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bartosz@relisoft.com 2008-08-30 14:35 ------- Fixed in revision 842. Added the two cases to unittest. -- |
Copyright © 1999-2021 by the D Language Foundation