mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Set up region and language settings on macOS to match United States
The tst_qlocale::macDefaultLocale() test was failing on macOS 11 because
the VM images had been set up with Finland as the region, resulting in
a different number separator than what the test expected.
Fixes: QTBUG-90696
Change-Id: Ia2f68adc1401f21721d1786c5279aa0918a311a8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 4ad4befe4e)
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
committed by
Tony Sarajärvi
parent
e1c1229e43
commit
031031cd2b
@@ -39,3 +39,10 @@ set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
SetEnvVar "LANG" "en_US.UTF-8"
|
||||
|
||||
# The following settings match the "United States" region default
|
||||
defaults write -globalDomain AppleLocale "en_US"
|
||||
defaults write -globalDomain AppleLanguages "(en)"
|
||||
defaults write -globalDomain AppleMeasurementUnits "Inches"
|
||||
defaults write -globalDomain AppleTemperatureUnit "Fahrenheit"
|
||||
defaults write -globalDomain AppleMetricUnits -bool false
|
||||
|
||||
Reference in New Issue
Block a user