diff --git a/intl/locale/gtk/OSPreferences_gtk.cpp b/intl/locale/gtk/OSPreferences_gtk.cpp index 91bc58fb85bf..efaebc54b3fa 100644 --- a/intl/locale/gtk/OSPreferences_gtk.cpp +++ b/intl/locale/gtk/OSPreferences_gtk.cpp @@ -5,10 +5,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include +#include "mozilla/intl/Locale.h" #include "OSPreferences.h" -#include "unicode/uloc.h" - #include "nsServiceManagerUtils.h" #include "nsIGSettingsService.h" @@ -19,7 +18,7 @@ OSPreferences::OSPreferences() = default; bool OSPreferences::ReadSystemLocales(nsTArray& aLocaleList) { MOZ_ASSERT(aLocaleList.IsEmpty()); - nsAutoCString defaultLang(uloc_getDefault()); + nsAutoCString defaultLang(Locale::GetDefaultLocale()); if (CanonicalizeLanguageTag(defaultLang)) { aLocaleList.AppendElement(defaultLang);