[openrtm-commit:03182] r3226 - branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 2月 25日 (日) 22:17:45 JST
Author: miyamoto
Date: 2018-02-25 22:17:45 +0900 (Sun, 25 Feb 2018)
New Revision: 3226
Modified:
branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp
Log:
[bugfix, ->trunk] bug fixed.
Modified: branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp 2018-02-21 13:47:26 UTC (rev 3225)
+++ branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/ManagerConfig.cpp 2018-02-25 13:17:45 UTC (rev 3226)
@@ -166,7 +166,18 @@
std::string::size_type pos(optarg.find(":"));
if (pos != std::string::npos)
{
- m_argprop[optarg.substr(0, pos)] = optarg.substr(pos + 1);
+ std::string key = optarg.substr(0, pos);
+ std::string value = optarg.substr(pos + 1);
+
+ key = coil::unescape(key);
+ coil::eraseHeadBlank(key);
+ coil::eraseTailBlank(key);
+
+ value = coil::unescape(value);
+ coil::eraseHeadBlank(value);
+ coil::eraseTailBlank(value);
+
+ m_argprop[key] = value;
}
}
break;
More information about the openrtm-commit
mailing list