ICU-2403 Make cintltst work like intltest with regards to how ICU_DATA is handled.

X-SVN-Rev: 14268
This commit is contained in:
George Rhoten 2004-01-08 22:33:17 +00:00
parent f88cee9317
commit e6bae15cc6

View File

@ -479,11 +479,13 @@ const char *ctest_dataOutDir()
*/
void ctest_setICU_DATA() {
/* No location for the data dir was identifiable.
* Add other fallbacks for the test data location here if the need arises
*/
u_setDataDirectory(ctest_dataOutDir());
if (getenv("ICU_DATA") == NULL) {
/* If ICU_DATA isn't set, set it to the usual location */
u_setDataDirectory(ctest_dataOutDir());
}
}
UChar* CharsToUChars(const char* str) {