qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1171715 - /qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp
Date Fri, 16 Sep 2011 18:45:00 GMT
Author: gsim
Date: Fri Sep 16 18:44:59 2011
New Revision: 1171715

URL: http://svn.apache.org/viewvc?rev=1171715&view=rev
Log:
QPID-3492: Treat string literals in addresses as utf8 encoded

Modified:
    qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp?rev=1171715&r1=1171714&r2=1171715&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp Fri Sep 16 18:44:59 2011
@@ -201,7 +201,8 @@ bool AddressParser::readSimpleValue(Vari
 {
     std::string s;
     if (readWord(s)) {
-        value.parse(s);        
+        value.parse(s);
+        if (value.getType() == VAR_STRING) value.setEncoding("utf8");
         return true;
     } else {
         return false;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message