char* locale = setlocale(LC_CTYPE, NULL);
char* locale = setlocale(LC_CTYPE, "");
nsUNIXCharset::nsUNIXCharset(){  NS_INIT_REFCNT();  PR_AtomicIncrement(&g_InstanceCount);  char* locale = setlocale(LC_CTYPE, NULL);  if(locale)   {      nsAutoString propertyURL("resource:/res/unixcharset.properties");        nsURLProperties *info = new nsURLProperties( propertyURL );      if( info )      {          nsAutoString platformLocaleKey("locale." OSTYPE ".");          platformLocaleKey.Append(locale);          nsresult res = info->Get(platformLocaleKey, mCharset);          if(NS_FAILED(res)) {              nsAutoString localeKey("locale.all.");              localeKey.Append(locale);              res = info->Get(localeKey, mCharset);              if(NS_SUCCEEDED(res))  {                  delete info;                  return; // succeeded              }          }          delete info;      }    }   mCharset = "ISO-8859-1";   return; // failed}