Bug 104305
Convert the cmdline Profile name from platform charset to Unicode instead of calling AssignWithConversion() /r=ccarlen, /sr=brendan git-svn-id: svn://10.0.0.236/trunk@106992 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -114,9 +114,8 @@ nsProfileAccess::~nsProfileAccess()
|
||||
}
|
||||
|
||||
// A wrapper function to call the interface to get a platform file charset.
|
||||
static
|
||||
nsresult
|
||||
GetPlatformCharset(nsAutoString& aCharset)
|
||||
GetPlatformCharset(nsString& aCharset)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
@@ -132,9 +131,8 @@ GetPlatformCharset(nsAutoString& aCharset)
|
||||
}
|
||||
|
||||
// Apply a charset conversion from the given charset to Unicode for input C string.
|
||||
static
|
||||
nsresult
|
||||
ConvertStringToUnicode(nsAutoString& aCharset, const char* inString, nsAutoString& outString)
|
||||
ConvertStringToUnicode(nsString& aCharset, const char* inString, nsAWritableString& outString)
|
||||
{
|
||||
nsresult rv;
|
||||
// convert result to unicode
|
||||
|
||||
Reference in New Issue
Block a user