]> git.sesse.net Git - vlc/commitdiff
Don't set LC_NUMERIC in the wxWidgets plugin.
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 14 Aug 2005 16:28:59 +0000 (16:28 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 14 Aug 2005 16:28:59 +0000 (16:28 +0000)
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

index b904eb0b822d9b1d1d10e9725916cc52aee4af51..a5450b568f6dafd7170d6d658eecfe473185c926 100644 (file)
@@ -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 );