*_retValue = charset.ToNewUnicode();
*_retValue = ToNewUnicode(charset);
nsMacCharset::GetDefaultCharsetForLocale(const PRUnichar* localeName, PRUnichar** _retValue){	nsCOMPtr<nsIMacLocale>	pMacLocale;	nsString localeAsString(localeName), charset; charset.AssignWithConversion("x-mac-roman");	short script, language, region;		nsresult rv;  pMacLocale = do_CreateInstance(NS_MACLOCALE_CONTRACTID, &rv);	if (NS_FAILED(rv)) { *_retValue = charset.ToNewUnicode(); return rv; }		rv = pMacLocale->GetPlatformLocale(&localeAsString,&script,&language,&region);	if (NS_FAILED(rv)) { *_retValue = charset.ToNewUnicode(); return rv; }		if (!gInfo) { *_retValue = charset.ToNewUnicode(); return NS_ERROR_OUT_OF_MEMORY; }		nsAutoString locale_key; locale_key.AssignWithConversion("region.");	locale_key.AppendInt(region,10);		rv = gInfo->Get(locale_key,charset);	if (NS_FAILED(rv)) {		locale_key.AssignWithConversion("script.");		locale_key.AppendInt(script,10);		rv = gInfo->Get(locale_key,charset);		if (NS_FAILED(rv)) { charset.AssignWithConversion("x-mac-roman");}	}	*_retValue = charset.ToNewUnicode();		return rv;}