mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-11 08:01:32 +00:00
ICU-1992 fix for files mode
X-SVN-Rev: 9273
This commit is contained in:
parent
b803725a1d
commit
378b0303c5
1 changed files with 5 additions and 2 deletions
|
@ -93,10 +93,12 @@ int main(int argc, const char* const argv[])
|
|||
"Proceeding to load data from dat file.\n");
|
||||
errorCode = U_ZERO_ERROR;
|
||||
|
||||
ctest_setICU_DATA();
|
||||
}
|
||||
|
||||
/* If no ICU_DATA environment was set, try to fake up one. */
|
||||
ctest_setICU_DATA();
|
||||
|
||||
fprintf(stderr, "u_getDataDirectory() = %s\n", u_getDataDirectory());
|
||||
|
||||
#ifdef XP_MAC_CONSOLE
|
||||
argc = ccommand((char***)&argv);
|
||||
|
@ -332,11 +334,12 @@ const char *ctest_dataOutDir()
|
|||
* tests dynamically load some data.
|
||||
*/
|
||||
void ctest_setICU_DATA() {
|
||||
|
||||
|
||||
|
||||
/* No location for the data dir was identifiable.
|
||||
* Add other fallbacks for the test data location here if the need arises
|
||||
*/
|
||||
u_setDataDirectory(ctest_dataOutDir());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue