- testdatapath=loadTestData(err);
- if(U_FAILURE(err))
- {
- errln("Could not load testdata.dat " + UnicodeString(testdatapath) + ", " + UnicodeString(u_errorName(err)));
- return;
- }
- ResourceBundle test1((UnicodeString)testdatapath, err);
- ResourceBundle test2(testdatapath, locale, err);
- //ResourceBundle test1("c:\\icu\\icu\\source\\test\\testdata\\testdata", err);
- //ResourceBundle test2("c:\\icu\\icu\\source\\test\\testdata\\testdata", locale, err);
+ /* Make sure that users using te_IN for the default locale don't get test failures. */
+ Locale originalDefault;
+ if (Locale::getDefault() == Locale("te_IN")) {
+ Locale::setDefault(Locale("en_US"), err);
+ }