From 49e8d0adc638ef86c7fbe864ea9668007ecaee30 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 26 Jun 2006 23:54:39 +0000 Subject: [PATCH] ICU-5092 Fix for i5/OS X-SVN-Rev: 19765 --- icu4c/source/test/intltest/idnaconf.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/icu4c/source/test/intltest/idnaconf.cpp b/icu4c/source/test/intltest/idnaconf.cpp index 0d8058e2447..4c8f042c77a 100644 --- a/icu4c/source/test/intltest/idnaconf.cpp +++ b/icu4c/source/test/intltest/idnaconf.cpp @@ -284,12 +284,13 @@ void IdnaConfTest::Test(void){ UnicodeString value; // skip everything before the first "=====" and "=====" itself - for (;;){ - ReadOneLine(s); - if (s.compare(C_TAG, -1) == 0){ //"=====" + do { + if (!ReadOneLine(s)) { + errln("End of file prematurely found"); break; } } + while (s.compare(C_TAG, -1) != 0); //"=====" while(ReadOneLine(s)){ s.trim();