D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4260 - windows & basename
Summary: windows & basename
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: Shin Fujishiro
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-06-01 14:50 UTC by Ellery Newcomer
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments
solution: pay attention to altsep (385 bytes, patch)
2010-06-01 14:51 UTC, Ellery Newcomer
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Ellery Newcomer 2010-06-01 14:50:06 UTC
the following spits out "home/ellery" and not the expected "ellery"

import std.stdio;
import std.path;
void main(){
    writeln(basename("home/ellery"));
}

dmd 2.046 windows
Comment 1 Ellery Newcomer 2010-06-01 14:51:30 UTC
Created attachment 651 [details]
solution: pay attention to altsep
Comment 2 Shin Fujishiro 2010-06-23 21:14:38 UTC
Fixed in svn r1692.  The fix will be included in release 2.048.
Thank you for the patch!