[Boost-bugs] [Boost C++ Libraries] #2682: endpoint operator << is locale dependent

Subject: [Boost-bugs] [Boost C++ Libraries] #2682: endpoint operator << is locale dependent
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-26 18:09:09


#2682: endpoint operator << is locale dependent
-----------------------------+----------------------------------------------
 Reporter: arvid_at_[hidden] | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: asio
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
-----------------------------+----------------------------------------------
 The operator<< implementation in boost/asio/ip/basic_endpoint.hpp uses the
 ostream to convert the port into a string. This conversion depends on the
 current locale. Some locales adds periods ('.') as thousand separators
 when integers are converted to a string.

 A port number higher than 999 would on such a system render '1.000' which
 is most likely not what you want when converting endpoints to strings.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2682>
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:49:59 UTC