diff --git a/include/boost/archive/basic_text_iprimitive.hpp b/include/boost/archive/basic_text_iprimitive.hpp index 68b58797..dabc3c87 100644 --- a/include/boost/archive/basic_text_iprimitive.hpp +++ b/include/boost/archive/basic_text_iprimitive.hpp @@ -56,9 +56,6 @@ namespace std{ namespace boost { namespace archive { -template -class codecvt_null; - ///////////////////////////////////////////////////////////////////////// // class basic_text_iarchive - load serialized objects from a input text stream #if defined(_MSC_VER) @@ -74,7 +71,6 @@ protected: io::ios_precision_saver precision_saver; #ifndef BOOST_NO_STD_LOCALE - boost::scoped_ptr > codecvt_facet; boost::scoped_ptr archive_locale; basic_streambuf_locale_saver< typename IStream::char_type, diff --git a/include/boost/archive/basic_text_oprimitive.hpp b/include/boost/archive/basic_text_oprimitive.hpp index 3afd10f7..3c4cb5bd 100644 --- a/include/boost/archive/basic_text_oprimitive.hpp +++ b/include/boost/archive/basic_text_oprimitive.hpp @@ -61,11 +61,6 @@ namespace std{ namespace boost { namespace archive { -template -class codecvt_null; - -class save_access; - ///////////////////////////////////////////////////////////////////////// // class basic_text_oprimitive - output of prmitives to stream template @@ -77,7 +72,6 @@ protected: io::ios_precision_saver precision_saver; #ifndef BOOST_NO_STD_LOCALE - boost::scoped_ptr > codecvt_facet; boost::scoped_ptr archive_locale; basic_streambuf_locale_saver< typename OStream::char_type, diff --git a/include/boost/archive/impl/basic_binary_iprimitive.ipp b/include/boost/archive/impl/basic_binary_iprimitive.ipp index 83f34e35..3be1be1f 100644 --- a/include/boost/archive/impl/basic_binary_iprimitive.ipp +++ b/include/boost/archive/impl/basic_binary_iprimitive.ipp @@ -155,9 +155,13 @@ basic_binary_iprimitive::basic_binary_iprimitive( locale_saver(m_sb) { if(! no_codecvt){ - codecvt_facet.reset(new codecvt_null(1)); - archive_locale.reset(add_facet(std::locale::classic(),codecvt_facet.get())); - m_sb.pubimbue(* archive_locale); + archive_locale.reset( + add_facet( + std::locale::classic(), + new codecvt_null + ) + ); + //m_sb.pubimbue(* archive_locale); } } #else diff --git a/include/boost/archive/impl/basic_binary_oprimitive.ipp b/include/boost/archive/impl/basic_binary_oprimitive.ipp index 97573981..0ea1c855 100644 --- a/include/boost/archive/impl/basic_binary_oprimitive.ipp +++ b/include/boost/archive/impl/basic_binary_oprimitive.ipp @@ -106,9 +106,13 @@ basic_binary_oprimitive::basic_binary_oprimitive( locale_saver(m_sb) { if(! no_codecvt){ - codecvt_facet.reset(new codecvt_null(1)); - archive_locale.reset(add_facet(std::locale::classic(),codecvt_facet.get())); - m_sb.pubimbue(* archive_locale); + archive_locale.reset( + add_facet( + std::locale::classic(), + new codecvt_null + ) + ); + //m_sb.pubimbue(* archive_locale); } } #else diff --git a/include/boost/archive/impl/basic_text_iprimitive.ipp b/include/boost/archive/impl/basic_text_iprimitive.ipp index 0b0bf960..9b667896 100644 --- a/include/boost/archive/impl/basic_text_iprimitive.ipp +++ b/include/boost/archive/impl/basic_text_iprimitive.ipp @@ -124,11 +124,13 @@ basic_text_iprimitive::basic_text_iprimitive( locale_saver(* is_.rdbuf()) { if(! no_codecvt){ - codecvt_facet.reset(new boost::archive::codecvt_null(1)); archive_locale.reset( - add_facet(std::locale::classic(),codecvt_facet.get()) + add_facet( + std::locale::classic(), + new boost::archive::codecvt_null + ) ); - is.imbue(* archive_locale); + //is.imbue(* archive_locale); } is >> std::noboolalpha; } diff --git a/include/boost/archive/impl/basic_text_oprimitive.ipp b/include/boost/archive/impl/basic_text_oprimitive.ipp index 9c13cda9..10e21338 100644 --- a/include/boost/archive/impl/basic_text_oprimitive.ipp +++ b/include/boost/archive/impl/basic_text_oprimitive.ipp @@ -87,13 +87,13 @@ basic_text_oprimitive::basic_text_oprimitive( locale_saver(* os_.rdbuf()) { if(! no_codecvt){ - // note usage of argument "1" so that the locale isn't - // automatically delete the facet - codecvt_facet.reset(new codecvt_null(1)); archive_locale.reset( - add_facet(std::locale::classic(),codecvt_facet.get()) + add_facet( + std::locale::classic(), + new boost::archive::codecvt_null + ) ); - os.imbue(* archive_locale); + //os.imbue(* archive_locale); } os << std::noboolalpha; } diff --git a/include/boost/archive/impl/xml_wiarchive_impl.ipp b/include/boost/archive/impl/xml_wiarchive_impl.ipp index 802c727e..d35264d1 100644 --- a/include/boost/archive/impl/xml_wiarchive_impl.ipp +++ b/include/boost/archive/impl/xml_wiarchive_impl.ipp @@ -167,15 +167,18 @@ xml_wiarchive_impl::xml_wiarchive_impl( true // don't change the codecvt - use the one below ), basic_xml_iarchive(flags), - locale_saver(*is_.rdbuf()), gimpl(new xml_wgrammar()) { if(0 == (flags & no_codecvt)){ // note usage of argument "1" so that the locale isn't // automatically delete the facet - codecvt_facet.reset(new boost::archive::detail::utf8_codecvt_facet(1)); - archive_locale.reset(add_facet(is_.getloc(), codecvt_facet.get())); - is.imbue(* archive_locale); + archive_locale.reset( + add_facet( + is_.getloc(), + new boost::archive::detail::utf8_codecvt_facet + ) + ); + //is.imbue(* archive_locale); } if(0 == (flags & no_header)) init(); diff --git a/include/boost/archive/impl/xml_woarchive_impl.ipp b/include/boost/archive/impl/xml_woarchive_impl.ipp index c00b8b4b..e1002d51 100644 --- a/include/boost/archive/impl/xml_woarchive_impl.ipp +++ b/include/boost/archive/impl/xml_woarchive_impl.ipp @@ -128,8 +128,7 @@ xml_woarchive_impl::xml_woarchive_impl( os_, true // don't change the codecvt - use the one below ), - basic_xml_oarchive(flags), - locale_saver(*os_.rdbuf()) + basic_xml_oarchive(flags) { // Standard behavior is that imbue can be called // a) before output is invoked or @@ -137,9 +136,13 @@ xml_woarchive_impl::xml_woarchive_impl( // transforms (such as one to many transforms from getting // mixed up. if(0 == (flags & no_codecvt)){ - codecvt_facet.reset(new boost::archive::detail::utf8_codecvt_facet(1)); - archive_locale.reset(add_facet(os_.getloc(), codecvt_facet.get())); - os.imbue(* archive_locale); + archive_locale.reset( + add_facet( + os_.getloc(), + new boost::archive::detail::utf8_codecvt_facet + ) + ); + //os.imbue(* archive_locale); } if(0 == (flags & no_header)) this->init(); diff --git a/include/boost/archive/xml_wiarchive.hpp b/include/boost/archive/xml_wiarchive.hpp index 02b5eb4a..29e80d77 100644 --- a/include/boost/archive/xml_wiarchive.hpp +++ b/include/boost/archive/xml_wiarchive.hpp @@ -70,14 +70,6 @@ protected: friend class load_access; #endif #endif - #ifndef BOOST_NO_STD_LOCALE - boost::scoped_ptr codecvt_facet; - boost::scoped_ptr archive_locale; - basic_streambuf_locale_saver< - typename std::wistream::char_type, - typename std::wistream::traits_type - > locale_saver; - #endif boost::scoped_ptr gimpl; std::wistream & get_is(){ return is; diff --git a/include/boost/archive/xml_woarchive.hpp b/include/boost/archive/xml_woarchive.hpp index 9f8c8d49..0259de77 100644 --- a/include/boost/archive/xml_woarchive.hpp +++ b/include/boost/archive/xml_woarchive.hpp @@ -73,17 +73,9 @@ protected: friend class save_access; #endif #endif - #ifndef BOOST_NO_STD_LOCALE - boost::scoped_ptr codecvt_facet; - boost::scoped_ptr archive_locale; - basic_streambuf_locale_saver< - typename std::wostream::char_type, - typename std::wostream::traits_type - > locale_saver; //void end_preamble(){ // basic_xml_oarchive::end_preamble(); //} - #endif template void save(const T & t){ diff --git a/test/b2-1.log b/test/b2-1.log deleted file mode 100644 index 2911c2f2..00000000 --- a/test/b2-1.log +++ /dev/null @@ -1,6 +0,0 @@ -boost_root: /Users/robertramey/WorkingProjects/modular-boost -locate_root: /Users/robertramey/WorkingProjects/modular-boost -*****Warning - can't open output file: /Users/robertramey/WorkingProjects/modular-boost/../../bin.v2/libs/serialization/test/test_array_xml_warchive.test/darwin-4.7/debug/address-model-32/link-static/test_log.xml -*****Warning - can't open output file: /Users/robertramey/WorkingProjects/modular-boost/../../bin.v2/libs/serialization/test/test_array_xml_warchive.test/darwin-4.7/debug/address-model-64/link-static/test_log.xml -*****Warning - can't open output file: /Users/robertramey/WorkingProjects/modular-boost/../../bin.v2/libs/serialization/test/test_array_xml_warchive.test/darwin-4.7/debug/address-model-32/test_log.xml -*****Warning - can't open output file: /Users/robertramey/WorkingProjects/modular-boost/../../bin.v2/libs/serialization/test/test_array_xml_warchive.test/darwin-4.7/debug/address-model-64/test_log.xml diff --git a/test/bjam.log b/test/bjam.log deleted file mode 100644 index 5f25ec10..00000000 --- a/test/bjam.log +++ /dev/null @@ -1 +0,0 @@ -../../../tools/regression/src/library_test.sh: line 16: bjam: command not found