Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash caused by invalid locale name on native MinGW64 build #33214

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Aug 14, 2019

Summary

SUMMARY: None

Purpose of change

MinGW64 on Windows does not support any locale except for the classic "C" locale. This causes a runtime_error to be thrown when starting the game.

Describe the solution

It now uses the classic "C" locale if locale setup has failed.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` OS: Windows Issues related to Windows operating system labels Aug 14, 2019
@ZhilkinSerg ZhilkinSerg self-assigned this Aug 14, 2019
@ZhilkinSerg ZhilkinSerg merged commit 1f2223b into CleverRaven:master Aug 14, 2019
@ZhilkinSerg ZhilkinSerg removed their assignment Aug 14, 2019
@Qrox Qrox mentioned this pull request Aug 14, 2019
@Qrox Qrox deleted the fix-locale-crash branch August 15, 2019 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` OS: Windows Issues related to Windows operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants