[Mono-dev] System.IO.Path: inconsistent paths from Windows clients

Kornél Pál kornelpal at gmail.com
Mon Jun 26 11:31:05 EDT 2006


Hi,

I tried this with trunk from SVN and got the same result on MS.NET and Mono. 
Mono 1.1.15 should be OK as well.

I think you are using a very old version.

Kornél

----- Original Message ----- 
From: "subscription.sapi" <subscription.sapi at apsystems.it>
To: <mono-devel-list at lists.ximian.com>
Sent: Monday, June 26, 2006 5:16 PM
Subject: [Mono-dev] System.IO.Path: inconsistent paths from Windows clients


I've different behavior in ms.net framework and mono framework when I
use methods in "System.IO.Path" class.

Test Case Description:

Microsoft .net framework:
Input path: D:\R&D\doc\jd\StandardJD.doc
Output path:
Path.GetFileName                               StandardJD.doc
Path.GetDirectoryName                       D:\R&D\doc\jd
Path.GetFileNameWithoutExtension      StandardJD
Path.GetPathRoot                              D:\

MONO:
Input path: D:\R&D\doc\jd\StandardJD.doc
Output path:
Path.GetFileName
D:\R&D\doc\jd\StandardJD.doc
Path.GetDirectoryName
Path.GetFileNameWithoutExtension      D:\R&D\doc\jd\StandardJD
Path.GetPathRoot

Thank you.




More information about the Mono-devel-list mailing list