diff --git a/icu4c/source/i18n/translit.cpp b/icu4c/source/i18n/translit.cpp index 21475e6c87..3c3c47da8f 100644 --- a/icu4c/source/i18n/translit.cpp +++ b/icu4c/source/i18n/translit.cpp @@ -154,7 +154,13 @@ Transliterator& Transliterator::operator=(const Transliterator& other) { */ int32_t Transliterator::transliterate(Replaceable& text, int32_t start, int32_t limit) const { - Position offsets = { start, limit, start }; + + Position offsets; /* Broken HPUX compiler cannot handle this */ + + offsets.start = start; + offsets.limit = limit; + offsets.cursor = start; + handleTransliterate(text, offsets, FALSE); return offsets.limit; } @@ -671,8 +677,9 @@ Transliterator* Transliterator::_createInstance(const UnicodeString& ID) { // really get here except under installation, configuration, // or unrecoverable run time memory failures. _unregister(ID); - return 0; } + + return 0; } /**