
15 Jan
2011
15 Jan
'11
1:26 p.m.
boost::filesystem::fstream uses a wide string under Windows afaik (assuming it can detect that you're using an STL implementation which has wide-string overloads -- aka Dinkumware). However there's still the problem that if you're using MinGW (or some other non-MSVC toolset that doesn't use a recent Dinkumware STL implementation) then it will drop back to a narrow string and we're back where we started again...
Yes I know this, that is why boost::fstream written over C stdio.h should be provided. I had written once small "nowide" library that does this and calls _wfopen under Windows (available in MinGW) and I actually use it in CppCMS's booster library which makes my life much simpler Artyom