summaryrefslogtreecommitdiff
path: root/libs/ardour/utils.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-07-23 18:27:00 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-07-23 18:27:00 +0100
commit52ef02b387d8267315547129f7f100048a5c1166 (patch)
tree7f6d3b5d8bb09efe8e9b55ffdf9cd4f698e37dde /libs/ardour/utils.cc
parenta7508a9cf007f52c40b2f86cd17f9b221b3e45e3 (diff)
A few more instances of non-glib 'open()' getting used without locale-specific input paths
(noticed by Todd. probably more to come...)
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r--libs/ardour/utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 270aaa37fd..71051434c6 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -42,6 +42,7 @@
#include <errno.h>
#include <regex.h>
+#include <glibmm/convert.h>
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
@@ -299,7 +300,7 @@ ARDOUR::cmp_nocase_utf8 (const string& s1, const string& s2)
int
ARDOUR::touch_file (string path)
{
- int fd = open (path.c_str(), O_RDWR|O_CREAT, 0660);
+ int fd = open (Glib::locale_from_utf8 (path).c_str(), O_RDWR|O_CREAT, 0660);
if (fd >= 0) {
close (fd);
return 0;