bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBundle -initWithPath: warning


From: Alex Perez
Subject: Re: NSBundle -initWithPath: warning
Date: Thu, 31 Mar 2005 11:30:00 -0800
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Richard Frith-Macdonald wrote:
On 2005-03-31 09:25:17 +0100 David Ayers <d.ayers@inode.at> wrote:

Richard Frith-Macdonald wrote:
[snip]


No ... but I can easily see what the problem is ... '//Local/Library' looks like a windows UNC path where 'Local' is the host and 'Library' is the share and the actual file is unspecified ... ie it would be a relative path on windows.


Are you sure this is the behavior we want?
The UNC path seems like an absolute path to me, comparable to '/'


No ... I'm not sure ... I'm not a windows user.
I have been treating a UNC path of the form '//host/share' like a drive-relative path of the form 'C:' and assuming that it should be considered 'relative' because it specifies a dvice but not as particular location on the device.
This is completely incorrect behavior. Under Windows, UNC paths are ONLY in the form of \\server\ShareName and NEVER //server/ShareName. UNC paths *are* absolute paths, and need to be treated as such.

I'm pretty convinced that 'C:' or 'C:file' are relative paths and 'C:/' and 'C:/file' are absolute. However, it may be that '//host/share' should be treated as equivalent to '//host/share/' ... and both should be treated like '/' on unix.
Do you know exactly how UNC paths behave?  Is //host/share the same
thing as //host/share/ ?

No, but \\host\share *is* the same thing as \\host\share\ ;-)

Alex Perez





reply via email to

[Prev in Thread] Current Thread [Next in Thread]