Re: [Boost-bugs] [Boost C++ Libraries] #8203: filtering_ostream fails to write 0xFF characters with XCode

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8203: filtering_ostream fails to write 0xFF characters with XCode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-28 15:56:20


#8203: filtering_ostream fails to write 0xFF characters with XCode
------------------------------------+---------------------------------------
  Reporter: support@… | Owner: turkanis
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: iostreams
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords: eof rdbuf filtering_ostream write xcode
------------------------------------+---------------------------------------

Comment (by support@…):

 I also had to change the use of sputn in write_device_impl::write by using
 sputc instead that doesn't seem to have a problem:

 static std::streamsize write
         (T& t, const typename char_type_of<T>::type* s, std::streamsize n)
 {
   typedef typename char_type_of<T>::type char_type;
   typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type) traits_type;
   const char_type* pNext = s;
   while( pNext < s + n )
   {
     if ( traits_type::eq_int_type( t.sputc(*pNext), traits_type::eof() ) )
     {
       break;
     }
     ++pNext;
   }
   return pNext - s;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8203#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC