AW: [Mono-list] Platform comparison
Jochen Wezel
jwezel@compumaster.de
Fri, 12 Mar 2004 14:32:46 +0100
I think, we shouldn't look at the shell32.dll but on the behaviour in =
System.IO.
Regards
Jochen=20
-----Urspr=FCngliche Nachricht-----
Von: mono-list-admin@lists.ximian.com =
[mailto:mono-list-admin@lists.ximian.com] Im Auftrag von Gustavo Ramos
Gesendet: Donnerstag, 11. M=E4rz 2004 23:13
An: Jonathan Gilbert
Cc: MonoList
Betreff: RE: [Mono-list] Platform comparison
Hello Jonathan,
> Like I said, Explorer does not support *renaming* a file so that it=20
> begins with a dot :-) It is a bug in the SHRenameFile function. I=20
> debugged it a
Right, this is an *Explorer* bug. You can rename succesfully a "dot =
file" from the command prompt, from some save dialog boxes, and other =
apis that don't depend on the shell32.dll function SHRenameFile.
However, to stay compatible, Mono should reproduce the ms implementation =
on this. I'm sure there are applications out there applying workarounds =
in its code for fixing the issue, and it will need Mono to be consistent =
to work properly.
I think we need some test cases that try fileName =3D "a\\b"; fileName =
=3D "a" + "\\" + "b"; fn =3D Path.Combine(a, b); fn =3D a + =
Path.DirectorySeparatorChar...
fn =3D String.Concat("a", "\\"...
...
to ensure Mono behaves as the ms implementation.
Regards,
Gustavo
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com =
http://lists.ximian.com/mailman/listinfo/mono-list