ICU-87 Update the intltest getTestDirectory() to use u_getDataDirectory

instead of getenv('ICU_DATA').

X-SVN-Rev: 323
This commit is contained in:
Helena Chapman 1999-12-07 00:07:17 +00:00
parent da8c7870fd
commit de4f548c0c

View File

@ -343,13 +343,13 @@ UnicodeString &IntlTest::prettify(const CollationKey &source, UnicodeString &tar
void
IntlTest::pathnameInContext( char* fullname, int32_t maxsize, const char* relPath ) //nosmac
{
char* mainDir;
const char* mainDir;
char sepChar;
const char inpSepChar = '|';
mainDir = u_getDataDirectory();
#if defined(_WIN32) || defined(WIN32) || defined(__OS2__) || defined(OS2)
char mainDirBuffer[200];
mainDir = getenv("ICU_DATA");
if(mainDir!=NULL) {
strcpy(mainDirBuffer, mainDir);
strcat(mainDirBuffer, "..\\..");