cintltest does not work if the icu folder is not in a drive root

X-Trac-URL: https://ssl.icu-project.org/trac/ticket/26



git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@55 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
Markus Scherer 1999-10-14 19:10:43 +00:00
parent 16d9da1bda
commit ae8882faf5

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");