From df085fc0ea4f1a3f009de5a7a5bf9f241173bcba Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 12 May 2014 00:57:51 +0100 Subject: Remove LocaleGuard and lexical_cast<> in favour of libdcp::raw_convert, which should get things right with both decimal and thousands separators; LocaleGuard fixed decimal separators ok but not, it appears, thousands ones. --- src/lib/server.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/server.cc') diff --git a/src/lib/server.cc b/src/lib/server.cc index 1f3f61e42..0c5792ae0 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -27,9 +27,9 @@ #include #include #include -#include #include #include +#include #include "server.h" #include "util.h" #include "scaler.h" @@ -56,8 +56,8 @@ using boost::thread; using boost::bind; using boost::scoped_array; using boost::optional; -using boost::lexical_cast; using libdcp::Size; +using libdcp::raw_convert; Server::Server (shared_ptr log, bool verbose) : _log (log) @@ -246,7 +246,7 @@ Server::broadcast_received () /* Reply to the client saying what we can do */ xmlpp::Document doc; xmlpp::Element* root = doc.create_root_node ("ServerAvailable"); - root->add_child("Threads")->add_child_text (lexical_cast (_worker_threads.size ())); + root->add_child("Threads")->add_child_text (raw_convert (_worker_threads.size ())); stringstream xml; doc.write_to_stream (xml, "UTF-8"); -- cgit v1.2.3