Chandler Carruth wrote:
> On Sat, Oct 22, 2011 at 3:08 AM, NAKAMURA Takumi <[email protected]
> <mailto:[email protected]>> wrote:
>
>     I don't understand what you would like to do here, though, it must be
>     bogus to check pwd[0] eq '/' on win32 hosts.
>
>
> Your fix (is_absolute) is the correct fix.

Checking against the GCC source, there's an #ifdef for VMS || _WIN32 && 
!__CYGWIN__ around the implementation of getpwd(), and in that case it 
returns whatever getcwd() returned with no validity checking at all. 
Note that this ignores %PWD%.

That said, I'm happy to put the is_absolute test in there, it makes sense.

Nick
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to