This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SFCB - Small Footprint CIM Broker".
The branch, master has been updated
via 0a679f01ec554f2d6d4a08168275a67e76660d35 (commit)
from 1fd3857ec1e63cf39fcc78857feb2affe92c99d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0a679f01ec554f2d6d4a08168275a67e76660d35
Author: Narasimha Sharoff <nsh...@us...>
Date: Fri Feb 18 09:05:00 2011 -0800
[ 3185034 ] exec query test failures on power - char16 mismatch
-----------------------------------------------------------------------
Summary of changes:
diff --git a/ChangeLog b/ChangeLog
index d4c1465..0f761b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-18 Narasimha Sharoff <nsh...@us...>
+
+ * cimXmlGen.c, cmpiTestExecQueryProvider.c
+ [ 3185034 ] exec query test failures on power - char16 mismatch
+
2011-02-17 Chris Buccella <buc...@li...>
* result.c, test/xmltest/execQuery.lines:
diff --git a/NEWS b/NEWS
index da37c62..06013a9 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Bugs fixed:
- 3175888 Remove JDBC support from SFCB 1.4.x
- 3082573 Typo in interopProvider
- 3177707 ExecQuery 1 to 4 tests segfault on power LPAR
+- 3185034 exec query test failures on power - char16 mismatch
Changes in 1.4.0
================
diff --git a/cimXmlGen.c b/cimXmlGen.c
index 0434542..46970b8 100644
--- a/cimXmlGen.c
+++ b/cimXmlGen.c
@@ -500,7 +500,8 @@ value2xml(CMPIData d, UtilStringBuffer * sb, int wv)
else if (d.type == CMPI_boolean)
splen = sprintf(str, "%s", d.value.boolean ? "TRUE" : "FALSE");
else if (d.type == CMPI_char16)
- splen = sprintf(str, "%c", d.value.char16);
+ /* To support wide charset/unicode charset, review this line */
+ splen = sprintf(str, "%c", (CMPIChar16)d.value.char16);
else if (d.type == CMPI_chars) {
sp = XMLEscape(d.value.chars, &splen);
if (sp)
diff --git a/test/TestProviders/cmpiTestExecQueryProvider.c b/test/TestProviders/cmpiTestExecQueryProvider.c
index 5f6f619..e0d0ba6 100644
--- a/test/TestProviders/cmpiTestExecQueryProvider.c
+++ b/test/TestProviders/cmpiTestExecQueryProvider.c
@@ -232,6 +232,7 @@ _setProperty(CMPIInstance *ci, const char *p)
CMPIValue val;
const char *property;
CMPIStatus rc = { CMPI_RC_OK, NULL };
+ CMPIChar16 c_val = 0x0063;
if (strncmp(p, _ClassName, _ClassName_size) == 0) {
property = p + _ClassName_size + 1;
} else
@@ -246,7 +247,7 @@ _setProperty(CMPIInstance *ci, const char *p)
else if ((strncmp(property, "s", 1) == 0) && (strlen(property) == 1)) {
rc = CMSetProperty(ci, "s", (CMPIValue *) "Hello", CMPI_chars);
} else if ((strncmp(property, "c", 1) == 0) && (strlen(property) == 1)) {
- rc = CMSetProperty(ci, "c", (CMPIValue *) "c", CMPI_char16);
+ rc = CMSetProperty(ci, "c", (CMPIValue *) &c_val, CMPI_char16);
}
else if ((strncmp(property, "n32", 3) == 0) && (strlen(property) == 3)) {
hooks/post-receive
--
SFCB - Small Footprint CIM Broker
|