]> git.sesse.net Git - mlt/commitdiff
Always Load the system locales.
authorDan Dennedy <dan@dennedy.org>
Wed, 14 Sep 2011 14:47:08 +0000 (07:47 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 14 Sep 2011 14:47:08 +0000 (07:47 -0700)
src/framework/mlt_factory.c

index e3737ab48aa840dc78c524d542d63ea4ee2994d7..cdefa8c76f001c5ecb45830323b410b1d060aad6 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <locale.h>
 
 #ifdef WIN32
 #include <windows.h>
@@ -102,6 +103,9 @@ static void mlt_factory_create_done( mlt_listener listener, mlt_properties owner
 
 mlt_repository mlt_factory_init( const char *directory )
 {
+       // Load the system locales
+       setlocale( LC_ALL, "" );
+
        if ( ! global_properties )
                global_properties = mlt_properties_new( );