C.S. wrote:
There is a property "nativeLeafName" (readonly) on the nsIFile interface( cf. XULPlanet). I try to access this property in my JS code, I suppose it maps to the GetNativeLeafName method.
If you look at the nsIFile interface, you will see that the nativeLeafName attribute is [noscript]. From script you should always use the leafName property, which handles unicode character conversion.
--BDS
ok, on the mozilla.org doc, this is indicated, but not on the xulplanet doc. Sorry for this, I should have looked more closely.
So, given this, I can tell you that nsIMimeService.GetTypeFromFile fails, but I have no clue why it fails.
I now use GetTypeFromURI, which is ok, so consider the problem is solved for me. Still, should we report a bug about GetTypeFromFile ?
CS
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
