[Mono-devel-list] Handling GetFullPath on Linux

Jeroen Frijters jeroen at sumatra.nl
Mon Nov 22 03:21:47 EST 2004


Ben Maurer wrote:
> Right now, there are two bugs about how Path.GetFullPath mangles paths
> that are treated differently in Windows and Linux:
> 
> http://bugzilla.ximian.com/show_bug.cgi?id=53173
> http://bugzilla.ximian.com/show_bug.cgi?id=68566
> 
> I think that the best way to go about fixing this is to check what
> platform we are and change our parsing rules accordingly.
> 
> However, this may break the expectations of some users (especially
> 68566). (for example, the user might expect a\b\c to get 
> transformed to a/b/c on Linux, ie, they use it to change the path
> components)

This doesn't make sense. DirectorySeparatorChar and
AltDirectorySeparatorChar should both be '/' on Linux. Applications that
hardcode a backslash are lame.

> I am not sure what to do about this. Which is more important, allowing
> UNIX escapes, or keeping compat?

Surely allowing UNIX escapes is more important?

Regards,
Jeroen



More information about the Mono-devel-list mailing list