Commit f402c5fe authored by Max Kellermann's avatar Max Kellermann

input/file: pass UTF-8 URI to InputStream ctor

parent 9352e253
......@@ -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 *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment