mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1404 Data directory determination for tests, added check for defined, but empty ICU_DATA env var. This was happening!
X-SVN-Rev: 6690
This commit is contained in:
parent
496b8124dd
commit
932b817b19
2 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ ctest_setTestDirectory(const char* newDir)
|
|||
void ctest_setICU_DATA() {
|
||||
const char *original_ICU_DATA = getenv("ICU_DATA");
|
||||
|
||||
if (original_ICU_DATA != NULL) {
|
||||
if (original_ICU_DATA != NULL && *original_ICU_DATA != 0) {
|
||||
/* If the user set ICU_DATA, don't second-guess the person. */
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -391,7 +391,7 @@ IntlTest::setTestDirectory(const char* newDir)
|
|||
void IntlTest::setICU_DATA() {
|
||||
const char *original_ICU_DATA = getenv("ICU_DATA");
|
||||
|
||||
if (original_ICU_DATA != NULL) {
|
||||
if (original_ICU_DATA != NULL && *original_ICU_DATA != 0) {
|
||||
/* If the user set ICU_DATA, don't second-guess the person. */
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue