From 6a187e09ddd1de1941cbedec58ecb32ef9752ae1 Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Mon, 17 Jun 2013 07:55:54 +0200 Subject: [PATCH] ges-launch: make it portable to all locales. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Call setlocale (LC_ALL, "") as per setlocale man page to make ges-launch portable to all locales (instead of default "C" one). Fixes g_option_context_parse on: $ ges-launch-1.0 --verbose -r -q /home/prahal/Vidéos/Test3.xges -o file:///home/prahal/Test3.mpeg Error initializing: Invalid byte sequence in conversion input The accentuated character in "Vidéos" the french xdg user directory for "Videos" is what is choked upon. https://bugzilla.gnome.org/show_bug.cgi?id=702425 --- tools/ges-launch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ges-launch.c b/tools/ges-launch.c index 931a763..6b39d2a 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -29,6 +29,8 @@ #include #include +#include /* for LC_ALL */ + /* GLOBAL VARIABLE */ static guint repeat = 0; static GESTimelinePipeline *pipeline = NULL; @@ -459,6 +461,8 @@ main (int argc, gchar ** argv) GMainLoop *mainloop; GstBus *bus; + setlocale (LC_ALL, ""); + ctx = g_option_context_new ("- plays or renders a timeline."); g_option_context_set_summary (ctx, "ges-launch renders a timeline, which can be specified on the commandline,\n" -- 2.7.4