qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1602390 - /qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp
Date Fri, 13 Jun 2014 11:50:56 GMT
Author: gsim
Date: Fri Jun 13 11:50:56 2014
New Revision: 1602390

URL: http://svn.apache.org/r1602390
Log:
QPID-5814: default to utf8 in Variant::parse()

Modified:
    qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp?rev=1602390&r1=1602389&r2=1602390&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp Fri Jun 13 11:50:56 2014
@@ -20,6 +20,7 @@
  */
 #include "qpid/types/Variant.h"
 #include "qpid/log/Statement.h"
+#include "encodings.h"
 #include <boost/format.hpp>
 #include <boost/lexical_cast.hpp>
 #include <boost/algorithm/string.hpp>
@@ -813,6 +814,7 @@ Variant& Variant::parse(const std::strin
     try {
         return operator=(asBool());
     } catch (const InvalidConversion&) {}
+    setEncoding(qpid::types::encodings::UTF8);
     return *this;
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message