[Mono-devel-list] class library issues

yoros at wanadoo.es yoros at wanadoo.es
Sun Apr 27 13:04:39 EDT 2003


On Sun, Apr 27, 2003 at 06:36:05PM +0200, Gonzalo Paniagua Javier wrote:
> 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.

I fixed a bug in Xml. There was an error using BaseUri of XmlNode. Now I
add "file://" to the string passed to the Uri constructor. If Uri can
accept plain paths, please contact me and I will revert the modification
in XmlNode and fix Uri.

Thank you,

    Pedro

-- 
Pedro Martínez Juliá
\  yoros at terra.es
)|    yoros at wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC



More information about the Mono-devel-list mailing list