ICU-2840 don't exit if -w specified and u_init fails

X-SVN-Rev: 12293
This commit is contained in:
Steven R. Loomis 2003-06-04 22:03:44 +00:00
parent 5fc78bf0ce
commit 9bf62a9cc6

View File

@ -1078,8 +1078,11 @@ main(int argc, char* argv[])
"*** Check the ICU_DATA environment variable and\n"
"*** check that the data files are present.\n",
u_errorName(errorCode));
if(!warnOnMissingData) {
fprintf(stdout, "*** Exitting. Use the '-w' option if data files were\n*** purposely removed, to continue test anyway.\n");
return 1;
}
}
// initial check for the default converter