< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Fast streams encode std::endl incorrectly on *nix systems


On *nix systems, std::endl is encoded as '\n', but the following code in resipfaststreams.hxx encodes it as "\r\n"

*snip*
if (_Pfn == static_cast<std::ostream& (*) (std::ostream&)>(std::endl))
         {
            if (buf_->writebuf("\r\n",2) < 2)
            {
               good_ = false;
            }
         }

*snip*

Is there going to be an easy way to make this behavior consistent with whatever the platform does? Just using an #ifdef WIN32 won't get this quite right, but it may be good enough for us. Thoughts?

Best regards,
Byron Campen

Attachment: smime.p7s
Description: S/MIME cryptographic signature