From 32fe92e4229132bdad08364c82ef7409e0dea775 Mon Sep 17 00:00:00 2001 From: AnthonyRyuki <62845774+AnthonyRyuki@users.noreply.github.com> Date: Mon, 1 Dec 2025 21:20:15 +0100 Subject: [PATCH] Fix floating value options when Windows is set to certain languages If Windows is set to those languages where floating values are displayed with a ',' instead of a '.' (such as Italian and German), the options in General Settings->Advanced Options with a floating value do not work correctly and they can only display either 1 or 0, with the latter value not allowing any changes, so those values can only be changed by modifying them in the mame.ini file. This is a fix for that. --- src/osd/windows/winmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/windows/winmain.cpp b/src/osd/windows/winmain.cpp index 2f7df659f4494..23bd90c849ee7 100644 --- a/src/osd/windows/winmain.cpp +++ b/src/osd/windows/winmain.cpp @@ -172,7 +172,7 @@ static int is_double_click_start(int argc); int main(int argc, char *argv[]) { - std::setlocale(LC_ALL, ""); + std::setlocale(LC_ALL, "en_US.UTF-8"); std::vector args = osd_get_command_line(argc, argv); // use small output buffers on non-TTYs (i.e. pipes)