[ICU-26] intltest had the same code and bug as cintltest

X-Commit-URL: https://ssl.icu-project.org/trac/changeset/58
This commit is contained in:
Markus Scherer 1999-10-14 22:39:20 +00:00
parent 0a02e87e5d
commit e9bed605d9

View file

@ -347,8 +347,16 @@ IntlTest::pathnameInContext( char* fullname, int32_t maxsize, const char* relPat
char sepChar;
const char inpSepChar = '|';
#ifdef _WIN32
mainDir = ""; // . is part of the relative path
#if defined(_WIN32) || defined(WIN32) || defined(__OS2__) || defined(OS2)
char mainDirBuffer[200];
mainDir = getenv("ICU_DATA");
if(mainDir!=NULL) {
strcpy(mainDirBuffer, mainDir);
strcat(mainDirBuffer, "..\\..");
} else {
mainDirBuffer[0]='\0';
}
mainDir=mainDirBuffer;
sepChar = '\\';
#elif defined(_AIX) || defined(SOLARIS) || defined(LINUX) || defined(HPUX)
mainDir = getenv("HOME");