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

This commit is contained in:
Max Kellermann 2015-03-03 20:33:21 +01:00
parent 9352e25392
commit f402c5fe3c

View File

@ -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 *