2011-06-01 08:05:09 +02:00
|
|
|
# HG changeset patch
|
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
2014-12-02 23:01:52 +01:00
|
|
|
# Parent 5a29924228527f8882c83cf62d470963ea1ce62e
|
2016-01-26 23:39:03 +01:00
|
|
|
# Parent 55b6ae7fd3ebf28f960031801f1948dfc1bd80d2
|
2011-06-01 08:05:09 +02:00
|
|
|
Bug 583793 - Firefox interface language set to LANG, ignores LANGUAGE
|
|
|
|
|
2014-12-02 23:01:52 +01:00
|
|
|
diff --git a/intl/locale/nsLocaleService.cpp b/intl/locale/nsLocaleService.cpp
|
|
|
|
--- a/intl/locale/nsLocaleService.cpp
|
|
|
|
+++ b/intl/locale/nsLocaleService.cpp
|
- update to Firefox 30.0 (bnc#881874)
* MFSA 2014-48/CVE-2014-1533/CVE-2014-1534
(bmo#921622, bmo#967354, bmo#969517, bmo#969549, bmo#973874,
bmo#978652, bmo#978811, bmo#988719, bmo#990868, bmo#991981,
bmo#992274, bmo#994907, bmo#995679, bmo#995816, bmo#995817,
bmo#996536, bmo#996715, bmo#999651, bmo#1000598,
bmo#1000960, bmo#1002340, bmo#1005578, bmo#1007223,
bmo#1009952, bmo#1011007)
Miscellaneous memory safety hazards (rv:30.0)
* MFSA 2014-49/CVE-2014-1536/CVE-2014-1537/CVE-2014-1538
(bmo#989994, bmo#999274, bmo#1005584)
Use-after-free and out of bounds issues found using Address
Sanitizer
* MFSA 2014-50/CVE-2014-1539 (bmo#995603)
Clickjacking through cursor invisability after Flash interaction
* MFSA 2014-51/CVE-2014-1540 (bmo#978862)
Use-after-free in Event Listener Manager
* MFSA 2014-52/CVE-2014-1541 (bmo#1000185)
Use-after-free with SMIL Animation Controller
* MFSA 2014-53/CVE-2014-1542 (bmo#991533)
Buffer overflow in Web Audio Speex resampler
* MFSA 2014-54/CVE-2014-1543 (bmo#1011859)
Buffer overflow in Gamepad API
- rebased patches
- removed obsolete patches
* firefox-browser-css.patch
* mozilla-aarch64-bmo-962488.patch
* mozilla-aarch64-bmo-963023.patch
* mozilla-aarch64-bmo-963024.patch
* mozilla-aarch64-bmo-963027.patch
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=384
2014-06-11 10:41:30 +02:00
|
|
|
@@ -122,16 +122,17 @@ nsLocaleService::nsLocaleService(void)
|
2016-01-26 23:39:03 +01:00
|
|
|
RefPtr<nsLocale> resultLocale(new nsLocale());
|
2013-01-07 21:49:28 +01:00
|
|
|
NS_ENSURE_TRUE_VOID(resultLocale);
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
#ifdef MOZ_WIDGET_QT
|
2013-06-24 09:57:33 +02:00
|
|
|
const char* lang = QLocale::system().name().toUtf8();
|
2011-06-01 08:05:09 +02:00
|
|
|
#else
|
2011-09-26 08:53:33 +02:00
|
|
|
// Get system configuration
|
|
|
|
const char* lang = getenv("LANG");
|
|
|
|
+ const char* language = getenv("LANGUAGE");
|
2011-06-01 08:05:09 +02:00
|
|
|
#endif
|
|
|
|
|
2011-09-26 08:53:33 +02:00
|
|
|
nsAutoString xpLocale, platformLocale;
|
|
|
|
nsAutoString category, category_platform;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for( i = 0; i < LocaleListLength; i++ ) {
|
|
|
|
nsresult result;
|
2015-08-12 09:11:49 +02:00
|
|
|
@@ -158,16 +159,21 @@ nsLocaleService::nsLocaleService(void)
|
2011-09-26 08:53:33 +02:00
|
|
|
} else {
|
|
|
|
CopyASCIItoUTF16(lang, platformLocale);
|
|
|
|
result = nsPosixLocale::GetXPLocale(lang, xpLocale);
|
2011-06-01 08:05:09 +02:00
|
|
|
}
|
|
|
|
}
|
2011-09-26 08:53:33 +02:00
|
|
|
if (NS_FAILED(result)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
+ // LANGUAGE is overriding LC_MESSAGES
|
|
|
|
+ if (i == LC_MESSAGES && language && *language) {
|
|
|
|
+ CopyASCIItoUTF16(language, platformLocale);
|
|
|
|
+ result = nsPosixLocale::GetXPLocale(language, xpLocale);
|
|
|
|
+ }
|
|
|
|
resultLocale->AddCategory(category, xpLocale);
|
|
|
|
resultLocale->AddCategory(category_platform, platformLocale);
|
|
|
|
}
|
|
|
|
mSystemLocale = do_QueryInterface(resultLocale);
|
|
|
|
mApplicationLocale = do_QueryInterface(resultLocale);
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
#endif // XP_UNIX
|
- update to Firefox 30.0 (bnc#881874)
* MFSA 2014-48/CVE-2014-1533/CVE-2014-1534
(bmo#921622, bmo#967354, bmo#969517, bmo#969549, bmo#973874,
bmo#978652, bmo#978811, bmo#988719, bmo#990868, bmo#991981,
bmo#992274, bmo#994907, bmo#995679, bmo#995816, bmo#995817,
bmo#996536, bmo#996715, bmo#999651, bmo#1000598,
bmo#1000960, bmo#1002340, bmo#1005578, bmo#1007223,
bmo#1009952, bmo#1011007)
Miscellaneous memory safety hazards (rv:30.0)
* MFSA 2014-49/CVE-2014-1536/CVE-2014-1537/CVE-2014-1538
(bmo#989994, bmo#999274, bmo#1005584)
Use-after-free and out of bounds issues found using Address
Sanitizer
* MFSA 2014-50/CVE-2014-1539 (bmo#995603)
Clickjacking through cursor invisability after Flash interaction
* MFSA 2014-51/CVE-2014-1540 (bmo#978862)
Use-after-free in Event Listener Manager
* MFSA 2014-52/CVE-2014-1541 (bmo#1000185)
Use-after-free with SMIL Animation Controller
* MFSA 2014-53/CVE-2014-1542 (bmo#991533)
Buffer overflow in Web Audio Speex resampler
* MFSA 2014-54/CVE-2014-1543 (bmo#1011859)
Buffer overflow in Gamepad API
- rebased patches
- removed obsolete patches
* firefox-browser-css.patch
* mozilla-aarch64-bmo-962488.patch
* mozilla-aarch64-bmo-963023.patch
* mozilla-aarch64-bmo-963024.patch
* mozilla-aarch64-bmo-963027.patch
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=384
2014-06-11 10:41:30 +02:00
|
|
|
|