mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
When saving a session (in a non-English locale) make sure that we use a locale-specific path
This commit is contained in:
parent
f89a976f1a
commit
cf5a8651d8
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include <libxml/xpath.h>
|
||||
#include <libxml/xpathInternals.h>
|
||||
|
||||
#include <glibmm/convert.h>
|
||||
|
||||
xmlChar* xml_version = xmlCharStrdup("1.0");
|
||||
|
||||
using namespace std;
|
||||
|
|
@ -154,7 +156,7 @@ XMLTree::write() const
|
|||
doc = xmlNewDoc(xml_version);
|
||||
xmlSetDocCompressMode(doc, _compression);
|
||||
writenode(doc, _root, doc->children, 1);
|
||||
result = xmlSaveFormatFileEnc(_filename.c_str(), doc, "UTF-8", 1);
|
||||
result = xmlSaveFormatFileEnc(Glib::locale_from_utf8 (_filename).c_str(), doc, "UTF-8", 1);
|
||||
#ifndef NDEBUG
|
||||
if (result == -1) {
|
||||
xmlErrorPtr xerr = xmlGetLastError ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue