Commit 4c7fa389 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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.
parent 479fd822
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment