diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index 3c6541fd56..5fb777bdc7 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -11,8 +11,6 @@ #include #include -#include - xmlChar* xml_version = xmlCharStrdup("1.0"); using namespace std; @@ -156,7 +154,7 @@ XMLTree::write() const doc = xmlNewDoc(xml_version); xmlSetDocCompressMode(doc, _compression); writenode(doc, _root, doc->children, 1); - result = xmlSaveFormatFileEnc(Glib::locale_from_utf8 (_filename).c_str(), doc, "UTF-8", 1); + result = xmlSaveFormatFileEnc(_filename.c_str(), doc, "UTF-8", 1); #ifndef NDEBUG if (result == -1) { xmlErrorPtr xerr = xmlGetLastError ();