Skip to content

Commit

Permalink
UI: Remove conflicting setlocale call
Browse files Browse the repository at this point in the history
Qt already sets LC_ALL to "" for non-Windows. We set LC_NUMERIC to "C"
afterward for sanity, and we don't want that setting to get smashed.
  • Loading branch information
jpark37 authored and jp9000 committed Mar 1, 2022
1 parent b5f85bc commit 5bd791d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion UI/platform-x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ string GetDefaultVideoSavePath()

vector<string> GetPreferredLocales()
{
setlocale(LC_ALL, "");
vector<string> matched;
string messages = setlocale(LC_MESSAGES, NULL);
if (!messages.size() || messages == "C" || messages == "POSIX")
Expand Down

0 comments on commit 5bd791d

Please sign in to comment.