Bug 4260 – windows & basename

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-06-01T14:50:00Z
Last change time
2015-06-09T05:15:09Z
Keywords
patch
Assigned to
rsinfu
Creator
ellery-newcomer

Attachments

IDFilenameSummaryContent-TypeSize
651patch1.diffsolution: pay attention to altseptext/plain385

Comments

Comment #0 by ellery-newcomer — 2010-06-01T14:50:06Z
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 by ellery-newcomer — 2010-06-01T14:51:30Z
Created attachment 651 solution: pay attention to altsep
Comment #2 by rsinfu — 2010-06-23T21:14:38Z
Fixed in svn r1692. The fix will be included in release 2.048. Thank you for the patch!