[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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).
From: Rhys Weatherley [mailto:address@hidden
Sent: 01 December 2002 07:07
To: Dawkins, David
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.