mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
intltest had the same code and bug as cintltest
X-Trac-URL: https://ssl.icu-project.org/trac/ticket/26 git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@58 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
parent
8801c1ef34
commit
5b73481bd5
1 changed files with 10 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue