[Mono-bugs] [Bug 586240] New: Directory.CreateDirectory() creates a directory with wrong name when there are whitespaces on Windows
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 8 07:56:34 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=586240
http://bugzilla.novell.com/show_bug.cgi?id=586240#c0
Summary: Directory.CreateDirectory() creates a directory with
wrong name when there are whitespaces on Windows
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: aenomoto at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
On Windows, Directory.CreateDirectory() fails to create the expected directory
by the argument. It somehow breaks at its first whitespace character. For
example, CreateDirectory("my documents") results in "my" directory.
//---- repro ----
using System;
using System.IO;
public class Test
{
public static void Main (string [] args)
{
foreach (var path in args) {
if (!Directory.Exists (path))
Directory.CreateDirectory (path);
}
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list