diff --git a/src/core/filestreams/LocalFileStream.cpp b/src/core/filestreams/LocalFileStream.cpp index 53f1c33a2..94e5cc9ba 100644 --- a/src/core/filestreams/LocalFileStream.cpp +++ b/src/core/filestreams/LocalFileStream.cpp @@ -41,6 +41,7 @@ #include #include +#include #include ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +77,7 @@ bool LocalFileStream::Open(const utfchar *filename,unsigned int options){ } try{ - boost::filesystem::utfpath file(filename); + boost::filesystem::utfpath file(UTF(filename)); //#ifdef _DEBUG // std::cerr << "file: " << file << std::endl; //#endif @@ -98,7 +99,7 @@ bool LocalFileStream::Open(const utfchar *filename,unsigned int options){ //#ifdef _DEBUG // std::cerr << "this->file: " << this->file << std::endl; //#endif - this->fd = new boost::iostreams::file_descriptor(filename); + this->fd = new boost::iostreams::file_descriptor(file); //#ifdef _DEBUG // std::cerr << "fd: " << this->fd << std::endl; //#endif