gst-discoverer: Support non-ASCII tags
authorBastien Nocera <hadess@hadess.net>
Tue, 28 Jan 2014 13:28:27 +0000 (14:28 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jan 2014 19:14:16 +0000 (20:14 +0100)
By calling setlocale() to get us multi-byte/UTF-8 support.

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

tools/gst-discoverer.c

index 059d3d7..678c5e8 100644 (file)
@@ -21,6 +21,8 @@
 #include "config.h"
 #endif
 
+#include <locale.h>
+
 #include <stdlib.h>
 #include <glib.h>
 #include <gst/gst.h>
@@ -532,6 +534,8 @@ main (int argc, char **argv)
   };
   GOptionContext *ctx;
 
+  setlocale (LC_ALL, "");
+
   ctx =
       g_option_context_new
       ("- discover files synchronously with GstDiscoverer");