ICU-2850 Fix a bug for MSVC 7

X-SVN-Rev: 11937
This commit is contained in:
George Rhoten 2003-05-15 18:38:58 +00:00
parent 8d245419a4
commit cbf0d0fbcd

View File

@ -1224,7 +1224,6 @@ const char* IntlTest::loadTestData(UErrorCode& err){
strcpy(p, __FILE__);
/* We want to back over three '\' chars. */
/* Only Windows should end up here, so looking for '\' is safe. */
if (strrchr(p, U_FILE_SEP_CHAR) != NULL) {
for (i=1; i<=3; i++) {
pBackSlash = strrchr(p, U_FILE_SEP_CHAR);
if (pBackSlash != NULL) {
@ -1239,7 +1238,6 @@ const char* IntlTest::loadTestData(UErrorCode& err){
strcpy(pBackSlash, U_FILE_SEP_STRING "test" U_FILE_SEP_STRING "testdata");
directory = p;
}
}
else {
/* __FILE__ on MSVC7 does not contain the directory */
directory = ".."U_FILE_SEP_STRING".."U_FILE_SEP_STRING"test"U_FILE_SEP_STRING"testdata"U_FILE_SEP_STRING;