diff -r 3cc9f17ca9bb -r b61e849fe451 mozilla-language.patch --- a/mozilla-language.patch Mon Aug 01 14:45:11 2016 +0200 +++ b/mozilla-language.patch Wed Jan 18 22:06:23 2017 +0100 @@ -1,23 +1,22 @@ # HG changeset patch # User Wolfgang Rosenauer # Parent 5a29924228527f8882c83cf62d470963ea1ce62e -# Parent 55b6ae7fd3ebf28f960031801f1948dfc1bd80d2 +# Parent bf7b3a5853467b34f13465102a19b9c7c2524bd4 Bug 583793 - Firefox interface language set to LANG, ignores LANGUAGE diff --git a/intl/locale/nsLocaleService.cpp b/intl/locale/nsLocaleService.cpp --- a/intl/locale/nsLocaleService.cpp +++ b/intl/locale/nsLocaleService.cpp -@@ -122,16 +122,17 @@ nsLocaleService::nsLocaleService(void) +@@ -114,16 +114,17 @@ nsLocaleService::nsLocaleService(void) + NS_ENSURE_SUCCESS_VOID(rv); + #endif + #if defined(XP_UNIX) && !defined(XP_MACOSX) RefPtr resultLocale(new nsLocale()); NS_ENSURE_TRUE_VOID(resultLocale); - #ifdef MOZ_WIDGET_QT - const char* lang = QLocale::system().name().toUtf8(); - #else // Get system configuration const char* lang = getenv("LANG"); + const char* language = getenv("LANGUAGE"); - #endif nsAutoString xpLocale, platformLocale; nsAutoString category, category_platform; @@ -25,7 +24,8 @@ for( i = 0; i < LocaleListLength; i++ ) { nsresult result; -@@ -158,16 +159,21 @@ nsLocaleService::nsLocaleService(void) + // setlocale( , "") evaluates LC_* and LANG +@@ -149,16 +150,21 @@ nsLocaleService::nsLocaleService(void) } else { CopyASCIItoUTF16(lang, platformLocale); result = nsPosixLocale::GetXPLocale(lang, xpLocale);