Ticket #2682 (closed Bugs: fixed)
endpoint operator << is locale dependent
|Reported by:||arvid@…||Owned by:||chris_kohlhoff|
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.