[openrtm-commit:00473] r590 - trunk/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 11月 21日 (月) 14:22:59 JST
Author: fsi-katami
Date: 2011-11-21 14:22:58 +0900 (Mon, 21 Nov 2011)
New Revision: 590
Modified:
trunk/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/NVUtil.java
Log:
Fixed to disregard full width characters in the configuration refs 2277.
Modified: trunk/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/NVUtil.java
===================================================================
--- trunk/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/NVUtil.java 2011-11-01 06:28:37 UTC (rev 589)
+++ trunk/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/NVUtil.java 2011-11-21 05:22:58 UTC (rev 590)
@@ -141,6 +141,15 @@
nvlist.value[intIdx].name = (String) keys.elementAt(intIdx);
Any anyValue = ORBUtil.getOrb().create_any();
anyValue.insert_string(prop.getProperty((String) keys.elementAt(intIdx)));
+//
+// String half_full = prop.getProperty((String) keys.elementAt(intIdx));
+// if(half_full.getBytes().length == half_full.length()){
+// anyValue.insert_string(half_full);
+// }
+// else{
+// anyValue.insert_wstring(half_full);
+// }
+//
nvlist.value[intIdx].value = anyValue;
}
}
@@ -170,7 +179,8 @@
Any anyVal = nvlist.value[intIdx].value;
String value = null;
if( anyVal.type().kind() == TCKind.tk_wstring ) {
- value = anyVal.extract_wstring();
+ //value = anyVal.extract_wstring();
+ continue;
} else if( anyVal.type().kind() == TCKind.tk_string ) {
value = anyVal.extract_string();
} else if( anyVal.type().kind() == TCKind.tk_objref ) {
openrtm-commit メーリングリストの案内