From 4c7fa38924e4578378ab31d4d49d184ff72560a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 14 Aug 2005 16:28:59 +0000 Subject: [PATCH] Don't set LC_NUMERIC in the wxWidgets plugin. It's already set to C globally because there are a bunch of things that assume US-style float numbers formatting (config file, RTSP VoD server to name a few) -- see SetLanguage() in libvlc. If you want to get a float from the user, you can look for the comma and replace it with a dot before parsing. However keep in mind that the stream output parser already uses the comma to separate options; that's yet another reason to use the dot in any case. Also, I don't know if some remote locales use neither dot nor comma as their decimal point. --- modules/gui/wxwidgets/wxwidgets.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/gui/wxwidgets/wxwidgets.cpp b/modules/gui/wxwidgets/wxwidgets.cpp index b904eb0b82..a5450b568f 100644 --- a/modules/gui/wxwidgets/wxwidgets.cpp +++ b/modules/gui/wxwidgets/wxwidgets.cpp @@ -331,10 +331,6 @@ bool Instance::OnInit() * provided facilities (eg. open file dialog) */ locale.Init( wxLANGUAGE_DEFAULT ); - /* FIXME: The stream output mrl parsing uses ',' already so we want to - * keep the default '.' for floating point numbers. */ - setlocale( LC_NUMERIC, "C" ); - /* Load saved window settings */ p_intf->p_sys->p_window_settings = new WindowSettings( p_intf ); -- 2.39.5