From 5b73481bd50b86c74f02ff457d7c94173386f7ab Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 14 Oct 1999 22:39:20 +0000 Subject: [PATCH] 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 --- source/test/intltest/intltest.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/test/intltest/intltest.cpp b/source/test/intltest/intltest.cpp index 030fd6d1c6f..924030f58bf 100644 --- a/source/test/intltest/intltest.cpp +++ b/source/test/intltest/intltest.cpp @@ -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");