[Mono-bugs] [Bug 447874] Mac FilePath separator as "\"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 16 13:19:25 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=447874

User rhowell at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=447874#c3





--- Comment #3 from Rusty Howell <rhowell at novell.com>  2008-12-16 11:19:25 MST ---
This is a graffiti bug. 

Using several tests, we've concluded that Mono is doing everything properly on
OSX with regard to File and Dir separator chars.


using System;
using System.IO;

class M
{
        public static void Main()
        {
                Console.WriteLine("Path.AltDirectorySeparatorChar={0}",
Path.AltDirectorySeparatorChar); 
                Console.WriteLine("Path.DirectorySeparatorChar={0}",
Path.DirectorySeparatorChar);
                Console.WriteLine("Path.PathSeparator={0}",
Path.PathSeparator);
                Console.WriteLine("Path.VolumeSeparatorChar={0}",
Path.VolumeSeparatorChar);

                Console.Write("Path.InvalidPathChars=");
                foreach (char c in Path.InvalidPathChars)
                        Console.Write(c);
                Console.WriteLine();

                Console.WriteLine(Path.Combine("/home","mono"));

        }
}


This test case yields the following output:

Path.AltDirectorySeparatorChar=/
Path.DirectorySeparatorChar=/
Path.PathSeparator=:
Path.VolumeSeparatorChar=/
Path.InvalidPathChars=
/home/mono


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list