From f402c5fe3c2f4631c0c28d99f9cb1da5f5dad43c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Mar 2015 20:33:21 +0100 Subject: input/file: pass UTF-8 URI to InputStream ctor --- src/input/plugins/FileInputPlugin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 * -- cgit v1.2.3