Revert "When saving a session (in a non-English locale) make sure that we use a local...
authorTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 10:09:32 +0000 (20:09 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 13:14:50 +0000 (23:14 +1000)
This reverts commit cf5a8651d848fa5333e1c567286fc0eec2b0a0f7.

libs/pbd/xml++.cc

index 3c6541fd563141be321d7f64e1e1d094df5ef45d..5fb777bdc77444b6c989dc0548c4c9fdc7097242 100644 (file)
@@ -11,8 +11,6 @@
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
 
-#include <glibmm/convert.h>
-
 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 ();