Changeset 497

Show
Ignore:
Timestamp:
04/17/07 13:14:11 (2 years ago)
Author:
Gregor
Message:

hcf/path.d: altsep doesn't work on OS X for whatever reason. See ticket #35

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/hcf/path.d

    r341 r497  
    103103    char[] ret; 
    104104     
    105     // replace any altsep with sep 
    106     if (altsep.length) { 
    107         ret = replace(origpath, altsep, sep); 
     105    version (Windows) { 
     106        // replace any altsep with sep 
     107        if (altsep.length) { 
     108            ret = replace(origpath, altsep, sep); 
     109        } else { 
     110            ret = origpath.dup; 
     111        } 
    108112    } else { 
    109113        ret = origpath.dup;