From: David Brown Date: Sat, 24 Dec 2005 16:40:12 GMT Subject: Re: Possibility of a MinGW version? Message-ID: <20051224164011.GA6737@old.davidb.org> In-Reply-To: <43AD21D7.5060306@op5.se> On Sat, Dec 24, 2005 at 11:24:23AM +0100, Andreas Ericsson wrote: > Sven Verdoolaege wrote: > >On Sat, Dec 24, 2005 at 11:09:39AM +0100, Andreas Ericsson wrote: > > > >>The worst trouble you're likely to run into is all the hardcoded paths. > >>They are everywhere and ofcourse use the / for path entity separation. > > > > > >AFAIR, '/' is a valid path separator on Windows. > >It's just command.com (does that still exist?) that insisted on '\\' > >separators. > > Are you sure? I've seen lots of porting patches that transliterate those > to '\\'. Perhaps those who wrote those patches just took for granted > that it was needed, the same as I did. AFAIK all of the Win32 APIs accept either forward or backward slash as a separator. It has been this way since when they added directories to DOS. What doesn't always accept forward slashes are commandline utilities that are using '/' as an option separator. Most of them these days will accept the '/', at least in many circumstances. Dave