static void serialise_other( mlt_properties properties, struct serialise_context_s *context, xmlNodePtr root )
{
int i;
- mlt_properties_debug( properties, __FUNCTION__, stderr );
for ( i = 0; i < mlt_properties_count( properties ); i++ )
{
const char* name = mlt_properties_get_name( properties, i );
free( cwd );
}
+#if !defined(__GLIBC__) && !defined(__DARWIN__)
+ // Get the current locale
+ char *orig_localename = strdup( setlocale( LC_NUMERIC, NULL ) );
+ setlocale( LC_NUMERIC, "C" );
+#endif
+
// Make the document
doc = xml_make_doc( this, service );
xmlSaveFormatFileEnc( resource, doc, "utf-8", 1 );
}
+#if !defined(__GLIBC__) && !defined(__DARWIN__)
+ // Restore the current locale
+ setlocale( LC_NUMERIC, orig_localename );
+ free( orig_localename );
+#endif
+
// Close the document
xmlFreeDoc( doc );
}