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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user