Don't createInstance the POSIXLOCALE service (followup to bug 153586) r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@165220 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2004-11-10 20:38:11 +00:00
parent 984cac00c7
commit 6730bf00d6

View File

@@ -336,7 +336,7 @@ nsPlatformCharset::Init()
NS_ASSERTION(locale, "cannot setlocale");
if (locale) {
nsCOMPtr<nsIPosixLocale> posixConverter =
do_CreateInstance(NS_POSIXLOCALE_CONTRACTID);
do_GetService(NS_POSIXLOCALE_CONTRACTID);
if (posixConverter)
res = posixConverter->GetXPLocale(locale, mLocale);
if (NS_FAILED(res))