gst-play: Support non-ASCII tags
authorSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jan 2014 20:18:04 +0000 (21:18 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jan 2014 20:18:04 +0000 (21:18 +0100)
By calling setlocale() to get us multi-byte/UTF-8 support.

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

tools/gst-play.c

index ca3a0c8..3582439 100644 (file)
@@ -23,6 +23,8 @@
 #include "config.h"
 #endif
 
+#include <locale.h>
+
 #include <gst/gst.h>
 #include <gst/gst-i18n-app.h>
 #include <gst/pbutils/pbutils.h>
@@ -643,6 +645,8 @@ main (int argc, char **argv)
     {NULL}
   };
 
+  setlocale (LC_ALL, "");
+
 #ifdef ENABLE_NLS
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");