Ticket #9450: fstream.cxx
| File fstream.cxx, 359 bytes (added by , 9 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/locale.hpp> |
| 2 | #include <boost/filesystem.hpp> |
| 3 | #include <boost/filesystem/fstream.hpp> |
| 4 | |
| 5 | int main(int, char **) |
| 6 | { |
| 7 | std::locale::global(boost::locale::generator().generate("")); |
| 8 | boost::filesystem::path::imbue(std::locale()); |
| 9 | |
| 10 | boost::filesystem::path path(u8"源屋.txt"); |
| 11 | boost::filesystem::ifstream stream(path); |
| 12 | assert(stream); |
| 13 | return 0; |
| 14 | } |
| 15 |
