[Mono-devel-list] class library issues
Gonzalo Paniagua Javier
gonzalo at ximian.com
Sun Apr 27 12:36:05 EDT 2003
El dom, 27 de 04 de 2003 a las 16:12, Ian MacLean escribió:
> I've come across a couple of class library issues in the latest cvs. The
> SetAttributes method of the File class throws an unhandled exception :
> Win32 IO returned ERROR_INVALID_FUNCTION
>
> string somefile = @"/home/ianm/dev/test/csharp/somefile.cs";
> File.SetAttributes( somefile, FileAttributes.Normal );
>
> and the constructor for the Uri class no longer accepts a raw file path.
> If I prepend file:// to the path it works otherwise I get :
>
> Unhandled Exception: System.UriFormatException: Invalid URI: The
> hostname could not be parsed at URI.Parse
>
> //somefile = @"file://" + somefile;
> Uri newURI = new Uri( somefile );
>
> This is new since 0.23. .Net accepts a raw file path also. What does the
> spec say on this ?
doh! This is a bug. Our class handles correctly file names such as
"C:\\TEMP" but not "/tmp".
Report it using bugzilla, please. I'll take care of it soon (if no one
fixes it before ;-).
>
> Is it better to post these kinds of issues here or should i just add
> them to the Ximian bug database ?
The best place is bugzilla.
-Gonzalo
More information about the Mono-devel-list
mailing list