]> git.sesse.net Git - mlt/blobdiff - src/modules/xml/consumer_xml.c
Add LC_NUMERIC to MLT XML.
[mlt] / src / modules / xml / consumer_xml.c
index 174aa068394807aff0e19243ed9b800b149445ee..c9823110e493d609ce710d37b97953dabdc8c8a7 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <locale.h>
 #include <libxml/tree.h>
 
 #define ID_SIZE 128
@@ -635,6 +636,9 @@ xmlDocPtr xml_make_doc( mlt_consumer consumer, mlt_service service )
 
        xmlDocSetRootElement( doc, root );
 
+       // Indicate the numeric locale
+       xmlNewProp( root, _x("LC_NUMERIC"), _x( setlocale( LC_NUMERIC, NULL ) ) );
+
        // If we have root, then deal with it now
        if ( mlt_properties_get( properties, "root" ) != NULL )
        {