aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-03 20:33:21 +0100
committerMax Kellermann <max@duempel.org>2015-03-03 21:17:56 +0100
commitf402c5fe3c2f4631c0c28d99f9cb1da5f5dad43c (patch)
tree455a4553c642815b5e63fdc6432e0a875343bf2e
parent9352e253922086139179af38fb4fec5566d4339b (diff)
downloadmpd-f402c5fe3c2f4631c0c28d99f9cb1da5f5dad43c.tar.gz
mpd-f402c5fe3c2f4631c0c28d99f9cb1da5f5dad43c.tar.xz
mpd-f402c5fe3c2f4631c0c28d99f9cb1da5f5dad43c.zip
input/file: pass UTF-8 URI to InputStream ctor
-rw-r--r--src/input/plugins/FileInputPlugin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/plugins/FileInputPlugin.cxx b/src/input/plugins/FileInputPlugin.cxx
index 9867e683c..32ec71679 100644
--- a/src/input/plugins/FileInputPlugin.cxx
+++ b/src/input/plugins/FileInputPlugin.cxx
@@ -89,7 +89,9 @@ OpenFileInputStream(Path path,
posix_fadvise(fd.Get(), (off_t)0, st.st_size, POSIX_FADV_SEQUENTIAL);
#endif
- return new FileInputStream(path.c_str(), fd, st.st_size, mutex, cond);
+ return new FileInputStream(path.ToUTF8().c_str(),
+ fd, st.st_size,
+ mutex, cond);
}
static InputStream *