List Info

Thread: new monodocer generics support uses invalid paths on win32




new monodocer generics support uses invalid paths on win32
user name
2006-10-18 16:39:49
Hi all,

On Win32, the < and > characters are invalid in file
and directory 
names.  Unfortunately, this means that monodocer attemps to
look at and 
use invalid file names on windows.  In DoUpdateAssembly,
when it 
assembles a filename using GetTypeFileName(), it can create
names that 
have < and > in them, and when it takes that filename
and goes to create 
a System.IO.FileInfo, an ArgumentException is thrown due to
the invalid 
path characters.

For now I'm using a hacked copy of monodocer that catches
that 
exception, and ignores the type.  I'm not sure what the
"correct" fix 
for this is.

Here's an example assembly that causes it to try and use
< and >:

using System;
using System.Collections;
using System.Collections.Generic;

namespace Bar {
	public class Foo : IEnumerable<int>
	{
		public IEnumerator<int> GetEnumerator()
		{
			for(int i=0; i<42; i++)
			{
				yield return i;
			}
		}

		IEnumerator IEnumerable.GetEnumerator()
		{
			return GetEnumerator();
		}
	}
}
_______________________________________________
Mono-docs-list maillist  -  Mono-docs-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-docs-list
new monodocer generics support uses invalid paths on win32
user name
2006-10-19 12:14:50
On Wed, 2006-10-18 at 12:39 -0400, Nathan Walp wrote:
> On Win32, the < and > characters are invalid in
file and directory 
> names.  Unfortunately, this means that monodocer
attemps to look at and 
> use invalid file names on windows.  In
DoUpdateAssembly, when it 
> assembles a filename using GetTypeFileName(), it can
create names that 
> have < and > in them, and when it takes that
filename and goes to create 
> a System.IO.FileInfo, an ArgumentException is thrown
due to the invalid 
> path characters.

This should now be fixed in svn-HEAD.

 - Jon


_______________________________________________
Mono-docs-list maillist  -  Mono-docs-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-docs-list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )