qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1411154 - /qpid/trunk/qpid/cpp/examples/messaging/spout.cpp
Date Mon, 19 Nov 2012 12:43:16 GMT
Author: gsim
Date: Mon Nov 19 12:43:16 2012
New Revision: 1411154

URL: http://svn.apache.org/viewvc?rev=1411154&view=rev
Log:
QPID-4442: make spout example send properties as utf8 strings

Modified:
    qpid/trunk/qpid/cpp/examples/messaging/spout.cpp

Modified: qpid/trunk/qpid/cpp/examples/messaging/spout.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/spout.cpp?rev=1411154&r1=1411153&r2=1411154&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/spout.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/spout.cpp Mon Nov 19 12:43:16 2012
@@ -91,6 +91,7 @@ struct Options : OptionParser
         std::string value;
         if (nameval(property, name, value)) {
             message.getProperties()[name] = value;
+            message.getProperties()[name].setEncoding("utf8");
         } else {
             message.getProperties()[name] = Variant();
         }    



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


Mime
View raw message