1
Vote

UNICODE in PST file path

description

I found that it's not working when there're unicode in filepath.

I think it can be solved by changing
std::vector<byte> pstsdk::file::file(const std::wstring& filename) on "util.h" as follow:
 before => errno_t err = fopen_s(&m_pfile, std::string(filename.begin(), filename.end()).c_str(), mode);
 after    =>   errno_t err = _wfopen_s(&m_pfile,filename.c_str(), L"rb");  
I'm not sure on impact on other part but the change looks harmless
and as faras I tested it works fine after the change.

comments