*_retValue = mCharset.ToNewUnicode();
*_retValue = ToNewUnicode(mCharset);
nsUNIXCharset::GetDefaultCharsetForLocale(const PRUnichar* localeName, PRUnichar** _retValue){  nsAutoString localeNameAsString(localeName);  //   // if this locale is the user's locale then use the charset   // we already determined at initialization  //   if (mLocale.Equals(localeNameAsString) ||     // support the 4.x behavior     (mLocale.EqualsIgnoreCase("en_US") && localeNameAsString.EqualsIgnoreCase("C"))) {    *_retValue = mCharset.ToNewUnicode();    return NS_OK;  }#if HAVE_NL_LANGINFO  //  // This locale appears to be a different locale from the user's locale.   // To do this we would need to lock the global resource we are currently   // using or use a library that provides multi locale support.   // ICU is a possible example of a multi locale library.  //     http://oss.software.ibm.com/icu/  //   NS_ASSERTION(0, "GetDefaultCharsetForLocale: need to add multi locale support");  // until we add multi locale support: use the the charset of the user's locale  *_retValue = mCharset.ToNewUnicode();  return NS_ERROR_USING_FALLBACK_LOCALE;#endif  //  // convert from locale to charset  // using the deprecated locale to charset mapping   //  nsAutoString localeStr(localeName);  nsString charset;  nsresult res = ConvertLocaleToCharsetUsingDeprecatedConfig(localeStr, charset);  if (NS_SUCCEEDED(res)) {    *_retValue = charset.ToNewUnicode();    return res; // succeeded  }  NS_ASSERTION(0, "unable to convert locale to charset using deprecated config");  charset.Assign(NS_LITERAL_STRING("ISO-8859-1"));  *_retValue=charset.ToNewUnicode();  return NS_ERROR_USING_FALLBACK_LOCALE;}