/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2003, International Business Machines Corporation and
+ * Copyright (c) 1997-2010, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
: myCollation(0)
{
UErrorCode status = U_ZERO_ERROR;
- myCollation = Collator::createInstance(Locale::getFrance(), status);
+ myCollation = Collator::createInstance(Locale::getCanadaFrench(), status);
if(!myCollation || U_FAILURE(status)) {
- errln(__FILE__ "failed to create! err " + UnicodeString(u_errorName(status)));
+ errcheckln(status, __FILE__ "failed to create! err " + UnicodeString(u_errorName(status)));
/* if it wasn't already: */
delete myCollation;
myCollation = NULL;
if (exec) logln("TestSuite CollationFrenchTest: ");
if((!myCollation) && exec) {
- errln(__FILE__ " cannot test - failed to create collator.");
- name = "";
+ dataerrln(__FILE__ " cannot test - failed to create collator.");
+ name = "some test";
return;
}