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:
@@ -386,7 +386,12 @@ nsFileIO::GetName(nsACString &aName)
|
||||
if (mFile == nsnull)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
return mFile->GetPath(aName);
|
||||
nsAutoString path;
|
||||
nsresult rv = mFile->GetPath(path);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
aName = NS_ConvertUCS2toUTF8(path);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user