[ICU-26] cintltest does not work if the icu folder is not in a drive root

X-Commit-URL: https://ssl.icu-project.org/trac/changeset/55
This commit is contained in:
Markus Scherer 1999-10-14 19:10:43 +00:00
parent 4175100c78
commit 5495203457

View file

@ -54,8 +54,16 @@ ctest_pathnameInContext( char* fullname, int32_t maxsize, const char* relPath )
int32_t lenMainDir;
int32_t lenRelPath ;
#ifdef _WIN32
mainDir = ""; /* The "intlwork" directory 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");