id summary reporter owner description type status milestone component version severity resolution keywords cc 2731 std::basic_fstream open for wpath assigns mode jhamm@… Beman Dawes "The open behavior of fstream for wpath seems to be different than path. The mode is assigned input and output flags in the wpath version. Is this correct behaviour? This is the best I could do for a diff: \boost\filesystem\fstream.hpp ==== *************** *** 467,473 **** { std::basic_fstream::open( detail::path_proxy( file_ph.external_file_string(), ! mode ).c_str(), mode | std::ios_base::in | std::ios_base::out ); } template --- 467,474 ---- { std::basic_fstream::open( detail::path_proxy( file_ph.external_file_string(), ! mode ).c_str(), mode ); //| std::ios_base::in | std::ios_base::out ); ! // Note: this change seems more consistent with the non-wpath version. } template *************** *** 476,482 **** { std::basic_fstream::open( detail::path_proxy( file_ph.external_file_string(), ! mode ).c_str(), mode | std::ios_base::in | std::ios_base::out ); } # endif --- 477,485 ---- { std::basic_fstream::open( detail::path_proxy( file_ph.external_file_string(), ! mode ).c_str(), ! mode ); //| std::ios_base::in | std::ios_base::out ); ! // Note: this change seems more consistent with the non-wpath version. } # endif" Bugs closed Boost 1.38.0 filesystem Boost 1.37.0 Problem duplicate