diff options
Diffstat (limited to 'WebCore/platform/text/TextBreakIteratorICU.cpp')
-rw-r--r-- | WebCore/platform/text/TextBreakIteratorICU.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/text/TextBreakIteratorICU.cpp b/WebCore/platform/text/TextBreakIteratorICU.cpp index 9fd2d0b..9941f58 100644 --- a/WebCore/platform/text/TextBreakIteratorICU.cpp +++ b/WebCore/platform/text/TextBreakIteratorICU.cpp @@ -25,6 +25,7 @@ #include "TextBreakIteratorInternalICU.h" #include <unicode/ubrk.h> +#include <wtf/Assertions.h> namespace WebCore { @@ -38,6 +39,7 @@ static TextBreakIterator* setUpIterator(bool& createdIterator, TextBreakIterator UErrorCode openStatus = U_ZERO_ERROR; iterator = static_cast<TextBreakIterator*>(ubrk_open(type, currentTextBreakLocaleID(), 0, 0, &openStatus)); createdIterator = true; + ASSERT_WITH_MESSAGE(U_SUCCESS(openStatus), "ICU could not open a break iterator: %s (%d)", u_errorName(openStatus), openStatus); } if (!iterator) return 0; |