
12 Jul
2006
12 Jul
'06
10:59 p.m.
Hi Christian, Property tree uses fstream class to access the file and fstream is limited to narrow char filenames. Quick workaround would be to read the data into memory using your favourite read function (that takes Unicode filenames), copy the data into a std::string, and finally create a std::stringstream, which can be used as argument for read functions. Obviously, this is quite complicated and makes a lot of unnecessary copies of the data. What is needed to solve the problem satisfactorily is std::fstream class that can use wide filenames. Unfortunately C++ std library does not provide it. This might be a material for a separate boost library. Marcin