Description
When trying to get window.navigator.language (singular) via JavaScript, it seems to be set to whatever LC_ALL is set to in the environment. This causes multiple problems:
- Using QWebEngineProfile::setHttpAcceptLanguage() doesn't affect it (only window.navigator.languages in the plural), but it'd expect it to.
- If LC_ALL=C is set in the environment, window.navigator.language is set to "C", which seems against MDN and breaks things like this website. It works fine in Chromium (set to en-US) even with that.
Attachments
For Gerrit Dashboard: QTBUG-61949 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
200277,3 | Add test for QLocale::bcp47Name() | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |
200278,4 | Return "en" for QLocale::c().bcp47Name() | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |