[Mono-bugs] [Bug 433886] New: csharp: does not work on Windows, illegal path chars in " <interactive>"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 9 10:00:47 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=433886
Summary: csharp: does not work on Windows, illegal path chars in
"<interactive>"
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
CC: miguel at novell.com
Found By: ---
Running csharp on Windows reports the exception below. The tool doesn't exit
at that point but can't be used as any subsequent typing and newline just
report the same exception. This is as built and run within cygwin.
With a little debugging, the problematic path is "<interactive>". That's
because Path.GetInvalidFileNameChars() etc on Windows include both < and >.
Replacing that string with "_interactive_" seems to solve the problem and the
tool can be used, but then no prompts are printed...
[[
cygwin$ csharp
System.ArgumentException: Illegal characters in path.
at System.IO.Path.IsPathRooted (System.String path) [0x00078] in
D:\cygwin\usr\src\mono\mcs\class\corlib\System.IO\Path.cs:496
at System.IO.Path.InsecureGetFullPath (System.String path) [0x000dd] in
D:\cygwin\usr\src\mono\mcs\class\corlib\System.IO\Path.cs:353
at System.IO.Path.GetFullPath (System.String path) [0x00000] in
D:\cygwin\usr\src\mono\mcs\class\corlib\System.IO\Path.cs:287
at Mono.CSharp.Location.AddFile (System.String name) [0x00020] in
D:\cygwin\usr\src\mono\mcs\mcs\location.cs:219
at Mono.CSharp.Evaluator.Reset () [0x0001f] in
D:\cygwin\usr\src\mono\mcs\mcs\eval.cs:102
at Mono.CSharp.Evaluator.ParseString (Boolean silent, System.String input,
System.Boolean& partial_input) [0x00003] in
D:\cygwin\usr\src\mono\mcs\mcs\eval.cs:487
at Mono.CSharp.Evaluator.Compile (System.String input,
Mono.CSharp.CompiledMethod& compiled) [0x00031] in
D:\cygwin\usr\src\mono\mcs\mcs\eval.cs:193
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00006] in
D:\cygwin\usr\src\mono\mcs\mcs\eval.cs:281
at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in
D:\cygwin\usr\src\mono\mcs\tools\csharp\repl.cs:194
]]
--
Configure bugmail: https://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