summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/winmain.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-06 07:14:18 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-06 07:14:18 +1100
commitac9ca1d020ae9d1f335f7bbb8876680d5fb41603 (patch)
tree7fa24fbe89438252ac1d667886d41143da356aae /src/osd/windows/winmain.cpp
parent190eafe573bdb989ecebe880d4801d909d856dad (diff)
-ui: Put software description on the left and sort by description by default.
-osd/windows: Set locale on start so sorting in the UI works properly.
Diffstat (limited to 'src/osd/windows/winmain.cpp')
-rw-r--r--src/osd/windows/winmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/windows/winmain.cpp b/src/osd/windows/winmain.cpp
index e37dd725034..f9d5f4964c2 100644
--- a/src/osd/windows/winmain.cpp
+++ b/src/osd/windows/winmain.cpp
@@ -22,6 +22,7 @@
// standard C headers
#include <cctype>
+#include <clocale>
#include <cstdarg>
#include <cstdio>
@@ -286,6 +287,7 @@ const options_entry windows_options::s_option_entries[] =
int main(int argc, char *argv[])
{
+ std::setlocale(LC_ALL, "");
std::vector<std::string> args = osd_get_command_line(argc, argv);
// use small output buffers on non-TTYs (i.e. pipes)