mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
fix for #126677. dates not showing up in thread pane
or message pane on windows. r/sr=bienvenu, a=leaf.
This commit is contained in:
parent
0e2122791d
commit
1ea54fa3cb
@ -63,14 +63,14 @@ nsresult nsDateTimeFormatWin::Initialize(nsILocale* locale)
|
||||
|
||||
// use cached info if match with stored locale
|
||||
if (NULL == locale) {
|
||||
if (mLocale.Equals(mAppLocale, nsCaseInsensitiveStringComparator())) {
|
||||
if (mLocale.Length() && mLocale.Equals(mAppLocale, nsCaseInsensitiveStringComparator())) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
else {
|
||||
res = locale->GetCategory(aCategory.get(), &aLocaleUnichar);
|
||||
if (NS_SUCCEEDED(res) && NULL != aLocaleUnichar) {
|
||||
if (mLocale.Equals(nsDependentString(aLocaleUnichar), nsCaseInsensitiveStringComparator())) {
|
||||
if (mLocale.Length() && mLocale.Equals(nsDependentString(aLocaleUnichar), nsCaseInsensitiveStringComparator())) {
|
||||
nsMemory::Free(aLocaleUnichar);
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user