|
Boost : |
From: Marcin Kalicinski (kalita_at_[hidden])
Date: 2006-07-12 18:59:53
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk