fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf git-svn-id: svn://10.0.0.236/trunk@121010 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -858,9 +858,7 @@ nsNativeComponentLoader::AutoRegisterComponent(PRInt32 when,
|
||||
nsCOMPtr<nsIFile> dllSpec;
|
||||
if (NS_SUCCEEDED(dll->GetDllSpec(getter_AddRefs(dllSpec))) && dllSpec)
|
||||
{
|
||||
nsCAutoString dllLeafName;
|
||||
dllSpec->GetLeafName(dllLeafName); // XXX
|
||||
fileName.Assign(NS_ConvertUTF8toUCS2(dllLeafName));
|
||||
dllSpec->GetLeafName(fileName);
|
||||
}
|
||||
|
||||
// this string can't come from a string bundle, because we
|
||||
|
||||
Reference in New Issue
Block a user