dotgnu-general
[Top][All Lists]
Advanced

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

RE: [DotGNU]Path.[Alt]DirectorySeparatorChar


From: Dawkins, David
Subject: RE: [DotGNU]Path.[Alt]DirectorySeparatorChar
Date: Sun, 1 Dec 2002 01:59:15 -0500

OK, that's how I thought things would work out.  

Now we just need to fix Path.cs up so that AltDirectorySeparatorChar 
is considered in operations like GetFileName etc (when set).

DavidD

-----Original Message-----
From: Rhys Weatherley [mailto:address@hidden
Sent: 01 December 2002 07:07
To: Dawkins, David
Cc: address@hidden
Subject: Re: [DotGNU]Path.[Alt]DirectorySeparatorChar


"Dawkins, David" wrote:

> - ECMA contains a mistake (why have the alternate character the same as
>    the first?)
> 
> - MSDN makes sense (although, I never encountered a Unix system that
>    accepted '\' as a directory separator character, although I'm going
>    to have to go try this now)

Unix doesn't accept '\' as a separator.  But we can make all this
academic by introducing a "normalize path" call to each of the
filesystem-related internalcalls which will turn both '/' and '\'
into the path separator of the underlying system.  Then it won't
matter what the separators are set to at the C# level.

Cheers,

Rhys.


reply via email to

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