This commit is contained in:
bruce%cybersight.com 2000-01-17 21:28:22 +00:00
Родитель 0bfbd10975
Коммит 0e1e840e66
4 изменённых файлов: 12 добавлений и 11 удалений

Просмотреть файл

@ -2176,7 +2176,7 @@ dnl check for LC_MESSAGES
AC_CACHE_CHECK(for LC_MESSAGES,
ac_cv_i18n_lc_messages,
[AC_TRY_COMPILE([#include <locale.h>],
[int catagory = LC_MESSAGES;],
[int category = LC_MESSAGES;],
ac_cv_i18n_lc_messages=yes,
ac_cv_i18n_lc_messages=no)])
if test "$ac_cv_i18n_lc_messages" = yes; then

Просмотреть файл

@ -285,13 +285,13 @@ nsStringBundle::GetLangCountry(nsILocale* aLocale, nsString2& lang, nsString2& c
PRUnichar *lc_name_unichar;
nsString lc_name;
nsString catagory("NSILOCALE_MESSAGES");
nsresult result = aLocale->GetCategory(catagory.GetUnicode(), &lc_name_unichar);
nsString category("NSILOCALE_MESSAGES");
nsresult result = aLocale->GetCategory(category.GetUnicode(), &lc_name_unichar);
lc_name.SetString(lc_name_unichar);
nsAllocator::Free(lc_name_unichar);
NS_ASSERTION(NS_SUCCEEDED(result),"nsStringBundle::GetLangCountry: locale.GetCatagory failed");
NS_ASSERTION(lc_name.Length()>0,"nsStringBundle::GetLangCountry: locale.GetCatagory failed");
NS_ASSERTION(NS_SUCCEEDED(result),"nsStringBundle::GetLangCountry: locale.GetCategory failed");
NS_ASSERTION(lc_name.Length()>0,"nsStringBundle::GetLangCountry: locale.GetCategory failed");
PRInt32 dash = lc_name.FindCharInSet("-");
if (dash > 0) {

Просмотреть файл

@ -87,7 +87,7 @@ get_applocale(void)
nsresult result;
nsILocaleFactory* localeFactory;
nsILocale* locale;
nsString* catagory;
nsString* category;
nsString* value;
PRUnichar *lc_name_unichar;
@ -108,16 +108,16 @@ get_applocale(void)
//
locale->AddRef();
catagory = new nsString("NSILOCALE_MESSAGES");
category = new nsString("NSILOCALE_MESSAGES");
value = new nsString();
result = locale->GetCategory(catagory->GetUnicode(),&lc_name_unichar);
result = locale->GetCategory(category->GetUnicode(),&lc_name_unichar);
value->SetString(lc_name_unichar);
NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_get_locale failed");
NS_ASSERTION(value->Length()>0,"nsLocaleTest: factory_get_locale failed");
locale->Release();
delete catagory;
delete category;
delete value;
localeFactory->Release();

Просмотреть файл

@ -1244,6 +1244,7 @@ nsresult nsHTTPChannel::Redirect(const char *aNewLocation,
PR_LOG(gHTTPLog, PR_LOG_ALWAYS,
("ProcessRedirect [this=%x].\tRedirecting to: %s.\n",
this, newURLSpec));
nsAllocator::Free(newURLSpec);
#endif /* PR_LOGGING */
rv = serv->NewChannelFromURI(mVerb.GetBuffer(), newURI, mLoadGroup, mCallbacks,
@ -1720,11 +1721,11 @@ nsHTTPChannel::ProcessStatusCode(void)
break;
//
// Unknown Status Code catagory...
// Unknown Status Code category...
//
default:
PR_LOG(gHTTPLog, PR_LOG_ALWAYS,
("ProcessStatusCode [this=%x].\tStatus - Unknown Status Code catagory: %d.\n",
("ProcessStatusCode [this=%x].\tStatus - Unknown Status Code category: %d.\n",
this, statusCode));
break;
}