@@ -282,7 +282,8 @@ void CLASS::testExtendedCharResponse()
282282 * This represents "nunez" with extended characters for the accented "u",
283283 * and the "enyay".
284284 */
285- const char nunez [] = {0x4e , 0xc2 , 0x9c , 0xc2 , 0x96 , 0x65 , 0x7a , 0x00 };
285+ unsigned char nunez [] = {0x4e , 0xc2 , 0x9c , 0xc2 , 0x96 , 0x65 , 0x7a };
286+ std::string s_nunez (nunez, nunez + sizeof (nunez) / sizeof (nunez[0 ]));
286287
287288 resultSet.SetEncoding (RETS_XML_DEFAULT_ENCODING);
288289 try
@@ -315,8 +316,8 @@ void CLASS::testExtendedCharResponse()
315316 ASSERT_STRING_EQUAL (" AG000001" , resultSet.GetString (0 ));
316317 ASSERT_STRING_EQUAL (" Carlos" , resultSet.GetString (" FirstName" ));
317318 ASSERT_STRING_EQUAL (" Carlos" , resultSet.GetString (1 ));
318- ASSERT_STRING_EQUAL (nunez , resultSet.GetString (" LastName" ));
319- ASSERT_STRING_EQUAL (nunez , resultSet.GetString (2 ));
319+ ASSERT_STRING_EQUAL (s_nunez , resultSet.GetString (" LastName" ));
320+ ASSERT_STRING_EQUAL (s_nunez , resultSet.GetString (2 ));
320321
321322 CPPUNIT_ASSERT (!resultSet.HasNext ());
322323}
@@ -400,7 +401,8 @@ void CLASS::testUTF8Response()
400401 * This represents "nunez" with utf8 characters for the accented "u",
401402 * and the "enyay".
402403 */
403- const char nunez [] = {0x4e , 0xc3 , 0xba , 0xc3 , 0xb1 , 0x65 , 0x7a , 0x00 };
404+ unsigned const char nunez [] = {0x4e , 0xc3 , 0xba , 0xc3 , 0xb1 , 0x65 , 0x7a };
405+ std::string s_nunez (nunez, nunez + sizeof (nunez) / sizeof (nunez[0 ]));
404406
405407 resultSet.SetEncoding (RETS_XML_DEFAULT_ENCODING);
406408 try
@@ -432,8 +434,8 @@ void CLASS::testUTF8Response()
432434 ASSERT_STRING_EQUAL (" AG000001" , resultSet.GetString (0 ));
433435 ASSERT_STRING_EQUAL (" Carlos" , resultSet.GetString (" FirstName" ));
434436 ASSERT_STRING_EQUAL (" Carlos" , resultSet.GetString (1 ));
435- ASSERT_STRING_EQUAL (nunez , resultSet.GetString (" LastName" ));
436- ASSERT_STRING_EQUAL (nunez , resultSet.GetString (2 ));
437+ ASSERT_STRING_EQUAL (s_nunez , resultSet.GetString (" LastName" ));
438+ ASSERT_STRING_EQUAL (s_nunez , resultSet.GetString (2 ));
437439
438440 CPPUNIT_ASSERT (!resultSet.HasNext ());
439441}
0 commit comments