mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 18:04:58 +08:00
On Windows the default locale instantiated by wxUILocale::UseDefault() referenced the locale configured for regional formatting in the Windows settings. This could lead to unintended behaviour (like using the wrong layout direction), if the locale for the Windows display language was different from the locale for regional formatting. Fix this by using the correct locale, i.e. either the one corresponding to the display language or the one corresponding to the regional formatting, depending on the locale property in question. Closes #26274. Closes #26354.