mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-26 cintltest does not work if the icu folder is not in a drive root
X-SVN-Rev: 55
This commit is contained in:
parent
dfc4f07ddc
commit
22e0892d45
1 changed files with 10 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue