X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmodules%2Fxml%2Fconsumer_xml.c;h=b7936a9d92f509db59986ab1efa85075255f4146;hb=cb186b864f4b3151dbd3082b490f6903ef1d739b;hp=92988f142f61f28fc17f747d0b240c989e0b3f45;hpb=236717e4ecc23e458e191b6c9a2ba70915b80937;p=mlt diff --git a/src/modules/xml/consumer_xml.c b/src/modules/xml/consumer_xml.c index 92988f14..b7936a9d 100644 --- a/src/modules/xml/consumer_xml.c +++ b/src/modules/xml/consumer_xml.c @@ -698,7 +698,6 @@ static void serialise_service( serialise_context context, mlt_service service, x 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 ); @@ -843,6 +842,12 @@ static void output_xml( mlt_consumer this ) 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 ); @@ -868,6 +873,12 @@ static void output_xml( mlt_consumer this ) 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 ); }