gst: Don't set the locale in gst_init()
gst: Don't set the locale in gst_init()

The function init_pre() in gstreamer/gst/gst.c calls setlocale(LC_ALL, ""),
which sets the locale to the values specified in the environment.  This is
wrong for two reasons:

1. It is absolutely not the task of a library to decide on the correct locale
for a program.  Some programs change the locale for various (good or bad)
reasons, and libraries should respect that.  Programs where GStreamer's
overwriting of the locale causes bugs include Emacs [1, 2], Sublime Text [3],
and Lua [4].

[1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12392
[2] http://bugzilla.novell.com/show_bug.cgi?id=779426
[3] http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8543
[4] https://github.com/pavouk/lgi/issues/19

Note that setting the locale can cause problems for programs that are not even
linked against GStreamer.  In the case of Emacs, for example, GStreamer seems
to be initialized through GTK via libcanberra.

2. Setting the locale is not thread-safe, and therefore should not be done in a
library.

https://bugzilla.gnome.org/show_bug.cgi?id=685650

justinjoy/gstreamer,surround-io/gstreamer,lubosz/gstreamer,lubosz/gstreamer,cfoch/gstreamer,lubosz/gstreamer,centricular/gstreamer,cfoch/gstreamer,krichter722/gstreamer,mparis/gstreamer,krichter722/gstreamer,surround-io/gstreamer,ensonic/gstreamer,justinjoy/gstreamer,cablelabs/gstreamer,collects/gstreamer,ensonic/gstreamer,mparis/gstreamer,surround-io/gstreamer,jpxiong/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,krieger-od/gstreamer,lovebug356/gstreamer,cablelabs/gstreamer,StreamUtils/gstreamer,lovebug356/gstreamer,krichter722/gstreamer,Lachann/gstreamer,shelsonjava/gstreamer,Lachann/gstreamer,krichter722/gstreamer,jpakkane/gstreamer,krieger-od/gstreamer,ensonic/gstreamer,mparis/gstreamer,jpakkane/gstreamer,cablelabs/gstreamer,collects/gstreamer,shelsonjava/gstreamer,jpakkane/gstreamer,ensonic/gstreamer,lovebug356/gstreamer,mparis/gstreamer,StreamUtils/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,cfoch/gstreamer,surround-io/gstreamer,krieger-od/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,cablelabs/gstreamer,centricular/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,surround-io/gstreamer,collects/gstreamer,collects/gstreamer,shelsonjava/gstreamer,centricular/gstreamer,StreamUtils/gstreamer,lubosz/gstreamer,lovebug356/gstreamer,ensonic/gstreamer,collects/gstreamer,Lachann/gstreamer,Lachann/gstreamer,centricular/gstreamer,krieger-od/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,krichter722/gstreamer,Lachann/gstreamer,centricular/gstreamer,jpakkane/gstreamer,lovebug356/gstreamer,justinjoy/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,StreamUtils/gstreamer,cablelabs/gstreamer,mparis/gstreamer,justinjoy/gstreamer