Darin Fisher wrote:
Use |AUTF8String| instead of |string|. URL strings are best represented as UTF-8. This is important since xpconnect needs to know what to do if it encounters a byte with the 8-th bit set.
ok... however, http://msdn.microsoft.com/workshop/misc/shortcuts/reference/iuniformresourcelocator_geturl.asp sems to leave it pretty unspecified what charset the string is in.
perhaps that API always returns ASCII, or perhaps it returns a string in the platform charset. at any rate, you should probably escape the result to be sure. see NS_EscapeURL. you probably want to use the esc_Minimal flag... perhaps with others too.
ResolveShortcut might be confusing here since the Win32 nsLocalFile implemenation already thinks of files that end with .lnk as shortcuts. Is there maybe a better name for files that end with .url? If not, then maybe we need to at least choose a more distinct name here to avoid confusion in our code.
hm, maybe ResolveURLShortcut? ResolveURLFile?
ReadURLFile? Kind of like "readlink" under UNIX ;-)
darin _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib