# HG changeset patch # Parent d4201effa8459bfc4b7c7581ae4acd71b22a8551 Bug 924839 - Make the ICU update script only do updating within intl/icu/source and nowhere else. NOT REVIEWED YET diff --git a/intl/icu/APIChangeReport.html b/intl/icu/APIChangeReport.html deleted file mode 100644 --- a/intl/icu/APIChangeReport.html +++ /dev/null @@ -1,1457 +0,0 @@ - - - - -ICU4C API Comparison: 49 with 50 r32649M - - - - -

ICU4C API Comparison: 49 with 50 (r32649M)

-
- -
-
- -

Removed from 49

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
coll.hconst Locale icu::Collator::getLocale(ULocDataLocaleType, UErrorCode&)Deprecated
3.0.
None
-
coll.huint32_t icu::Collator::setVariableTop(const UnicodeString, UErrorCode&)Stable
2.0
None
-
coll.hvoid icu::Collator::setVariableTop(const uint32_t, UErrorCode&)Stable
2.0
None
-
plurfmt.hvoid icu::PluralFormat::init(const PluralRules*, UErrorCode&)None
-
smpdtfmt.hUnicodeString& icu::SimpleDateFormat::format(Calendar&, const UDateFormatContextType*, const UDateFormatContextValue*, int32_t, UnicodeString&, FieldPosition&)Draft
49
None
-
smpdtfmt.hint32_t icu::SimpleDateFormat::getDefaultContext(UDateFormatContextType, UErrorCode&)Draft
49
None
-
smpdtfmt.hvoid icu::SimpleDateFormat::setDefaultContext(UDateFormatContextType, UDateFormatContextValue, UErrorCode&)Draft
49
None
-
tblcoll.hCollator* icu::RuleBasedCollator::safeClone()Stable
2.2
None
-
tblcoll.hECollationStrength icu::RuleBasedCollator::getStrength()DeprecatedNone
-
tblcoll.hEComparisonResult icu::RuleBasedCollator::compare(const UChar*, int32_t, const UChar*, int32_t)DeprecatedNone
-
tblcoll.hEComparisonResult icu::RuleBasedCollator::compare(const UnicodeString&, const UnicodeString&)DeprecatedNone
-
tblcoll.hEComparisonResult icu::RuleBasedCollator::compare(const UnicodeString&, const UnicodeString&, int32_t)DeprecatedNone
-
tblcoll.hUBool icu::RuleBasedCollator::operator!=(const Collator&)Stable
2.0
None
-
tblcoll.hconst Locale icu::RuleBasedCollator::getLocale(ULocDataLocaleType, UErrorCode&)DeprecatedNone
-
tblcoll.huint32_t icu::RuleBasedCollator::setVariableTop(const UnicodeString, UErrorCode&)Stable
2.0
None
-
tblcoll.hvoid icu::RuleBasedCollator::setStrength(ECollationStrength)DeprecatedNone
-
tblcoll.hvoid icu::RuleBasedCollator::setVariableTop(const uint32_t, UErrorCode&)Stable
2.0
None
-
tzfmt.hint32_t icu::TimeZoneFormat::getDefaultParseOptions()InternalNone
-
tzfmt.hvoid icu::TimeZoneFormat::setDefaultParseOptions(int32_t)InternalNone
-
uconfig.h#define ICU_USE_THREADSInternalNone
-
uconfig.h#define UCONFIG_INTERNAL_DIGITLISTInternalNone
-
udat.henum UDateFormatContextType::UDAT_CAPITALIZATIONDraft
49
None
-
udat.henum UDateFormatContextValue::UDAT_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCEDraft
49
None
-
udat.henum UDateFormatContextValue::UDAT_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCEDraft
49
None
-
udat.henum UDateFormatContextValue::UDAT_CAPITALIZATION_FOR_STANDALONEDraft
49
None
-
udat.henum UDateFormatContextValue::UDAT_CAPITALIZATION_FOR_UI_LIST_OR_MENUDraft
49
None
-
udat.henum UDateFormatContextValue::UDAT_CONTEXT_UNKNOWNDraft
49
None
-
udat.hint32_t udat_getDefaultContext(UDateFormat*, UDateFormatContextType, UErrorCode*)Draft
49
None
-
udat.hvoid udat_setDefaultContext(UDateFormat*, UDateFormatContextType, UDateFormatContextValue, UErrorCode*)Draft
49
None
-
-

-(jump back to top) -
- -

Deprecated or Obsoleted in 50

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
coll.hCollator* icu::Collator::safeClone()Stable
2.2
Deprecated
-
coll.hLocale icu::Collator::getLocale(ULocDataLocaleType, UErrorCode&)NoneDeprecated
-3.0.
plurfmt.hvoid icu::PluralFormat::setLocale(const Locale&, UErrorCode&)Stable
4.0
Deprecated
-
tblcoll.hLocale icu::RuleBasedCollator::getLocale(ULocDataLocaleType, UErrorCode&)NoneDeprecated
-
ucol.henum UColAttribute::UCOL_HIRAGANA_QUATERNARY_MODEStable
2.0
Deprecated
-
udat.h#define UDAT_ABBR_STANDALONE_MONTHStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_GENERIC_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_MINUTE_GENERIC_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_MINUTE_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_TZStable
4.0
Deprecated
-
udat.h#define UDAT_STANDALONE_MONTHStable
4.0
Deprecated
-
-

-(jump back to top) -
- -

Changed in 50 (old, new)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
coll.hCollationKey& icu::Collator::getCollationKey(const UChar*, int32_t, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
coll.hCollationKey& icu::Collator::getCollationKey(const UnicodeString&, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
coll.hCollator* icu::Collator::safeClone()Stable
2.2
Deprecated
-
plurfmt.hvoid icu::PluralFormat::setLocale(const Locale&, UErrorCode&)Stable
4.0
Deprecated
-
sortkey.hUBool icu::CollationKey::isBogus()DeprecatedStable
-2.0
sortkey.hUBool icu::CollationKey::operator!=(const CollationKey&)DeprecatedStable
-2.0
sortkey.hUBool icu::CollationKey::operator==(const CollationKey&)DeprecatedStable
-2.0
sortkey.hUClassID icu::CollationKey::getDynamicClassID()DeprecatedStable
-2.2
sortkey.hUCollationResult icu::CollationKey::compareTo(const CollationKey&, UErrorCode&)DeprecatedStable
-2.6
sortkey.hconst CollationKey& icu::CollationKey::operator=(const CollationKey&)DeprecatedStable
-2.0
sortkey.hconst uint8_t* icu::CollationKey::getByteArray(int32_t&)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey()DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey(const CollationKey&)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey(const uint8_t*, int32_t)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::~CollationKey()DeprecatedStable
-2.0
sortkey.hint32_t icu::CollationKey::hashCode()DeprecatedStable
-2.0
sortkey.hstatic UClassID icu::CollationKey::getStaticClassID()DeprecatedStable
-2.2
tblcoll.hCollationKey& icu::RuleBasedCollator::getCollationKey(const UChar*, int32_t, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
tblcoll.hCollationKey& icu::RuleBasedCollator::getCollationKey(const UnicodeString&, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
tzfmt.hFormat* icu::TimeZoneFormat::clone()InternalDraft
-50
tzfmt.hTimeZone* icu::TimeZoneFormat::parse(UTimeZoneFormatStyle, const UnicodeString&, ParsePosition&, UTimeZoneFormatTimeType*timeType=)InternalDraft
-50
tzfmt.hTimeZone* icu::TimeZoneFormat::parse(UTimeZoneFormatStyle, const UnicodeString&, ParsePosition&, int32_t, UTimeZoneFormatTimeType*timeType=)InternalDraft
-50
tzfmt.hTimeZoneFormat& icu::TimeZoneFormat::operator=(const TimeZoneFormat&)InternalDraft
-50
tzfmt.hUBool icu::TimeZoneFormat::operator==(const Format&)InternalDraft
-50
tzfmt.hUClassID icu::TimeZoneFormat::getDynamicClassID()InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::format(UTimeZoneFormatStyle, const TimeZone&, UDate, UnicodeString&, UTimeZoneFormatTimeType*timeType=)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::format(const Formattable&, UnicodeString&, FieldPosition&, UErrorCode&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::formatOffsetISO8601(int32_t, UnicodeString&, UErrorCode&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::formatOffsetLocalizedGMT(int32_t, UnicodeString&, UErrorCode&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::formatOffsetRFC822(int32_t, UnicodeString&, UErrorCode&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::getGMTOffsetDigits(UnicodeString&)Draft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::getGMTOffsetPattern(UTimeZoneFormatGMTOffsetPatternType, UnicodeString&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::getGMTPattern(UnicodeString&)InternalDraft
-50
tzfmt.hUnicodeString& icu::TimeZoneFormat::getGMTZeroFormat(UnicodeString&)Draft
-50
tzfmt.hconst TimeZoneNames* icu::TimeZoneFormat::getTimeZoneNames()InternalDraft
-50
tzfmt.henum UTimeZoneFormatGMTOffsetPatternType::UTZFMT_PAT_NEGATIVE_HMSInternalDraft
-50
tzfmt.henum UTimeZoneFormatGMTOffsetPatternType::UTZFMT_PAT_NEGATIVE_HMInternalDraft
-50
tzfmt.henum UTimeZoneFormatGMTOffsetPatternType::UTZFMT_PAT_POSITIVE_HMSInternalDraft
-50
tzfmt.henum UTimeZoneFormatGMTOffsetPatternType::UTZFMT_PAT_POSITIVE_HMInternalDraft
-50
tzfmt.henum UTimeZoneFormatParseOption::UTZFMT_PARSE_OPTION_ALL_STYLESInternalDraft
-50
tzfmt.henum UTimeZoneFormatParseOption::UTZFMT_PARSE_OPTION_NONEInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_GENERIC_LOCATIONInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_GENERIC_LONGInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_GENERIC_SHORTInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_ISO8601InternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_LOCALIZED_GMTInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_RFC822InternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_SPECIFIC_LONGInternalDraft
-50
tzfmt.henum UTimeZoneFormatStyle::UTZFMT_STYLE_SPECIFIC_SHORTInternalDraft
-50
tzfmt.henum UTimeZoneFormatTimeType::UTZFMT_TIME_TYPE_DAYLIGHTInternalDraft
-50
tzfmt.henum UTimeZoneFormatTimeType::UTZFMT_TIME_TYPE_STANDARDInternalDraft
-50
tzfmt.henum UTimeZoneFormatTimeType::UTZFMT_TIME_TYPE_UNKNOWNInternalDraft
-50
tzfmt.hicu::TimeZoneFormat::TimeZoneFormat(const TimeZoneFormat&)InternalDraft
-50
tzfmt.hicu::TimeZoneFormat::~TimeZoneFormat()InternalDraft
-50
tzfmt.hint32_t icu::TimeZoneFormat::parseOffsetISO8601(const UnicodeString&, ParsePosition&)InternalDraft
-50
tzfmt.hint32_t icu::TimeZoneFormat::parseOffsetLocalizedGMT(const UnicodeString&, ParsePosition&)InternalDraft
-50
tzfmt.hint32_t icu::TimeZoneFormat::parseOffsetRFC822(const UnicodeString&, ParsePosition&)InternalDraft
-50
tzfmt.hstatic TimeZoneFormat* icu::TimeZoneFormat::createInstance(const Locale&, UErrorCode&)InternalDraft
-50
tzfmt.hstatic UClassID icu::TimeZoneFormat::getStaticClassID()InternalDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::adoptTimeZoneNames(TimeZoneNames*)InternalDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::parseObject(const UnicodeString&, Formattable&, ParsePosition&)InternalDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::setGMTOffsetDigits(const UnicodeString&, UErrorCode&)Draft
-50
tzfmt.hvoid icu::TimeZoneFormat::setGMTOffsetPattern(UTimeZoneFormatGMTOffsetPatternType, const UnicodeString&, UErrorCode&)InternalDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::setGMTPattern(const UnicodeString&, UErrorCode&)InternalDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::setGMTZeroFormat(const UnicodeString&, UErrorCode&)Draft
-50
tzfmt.hvoid icu::TimeZoneFormat::setTimeZoneNames(const TimeZoneNames&)InternalDraft
-50
tznames.hMatchInfoCollection* icu::TimeZoneNames::find(const UnicodeString&, int32_t, uint32_t, UErrorCode&)InternalInternal
-
tznames.hStringEnumeration* icu::TimeZoneNames::getAvailableMetaZoneIDs(UErrorCode&)InternalDraft
-50
tznames.hStringEnumeration* icu::TimeZoneNames::getAvailableMetaZoneIDs(const UnicodeString&, UErrorCode&)InternalDraft
-50
tznames.hTimeZoneNames* icu::TimeZoneNames::clone()InternalDraft
-50
tznames.hUBool icu::TimeZoneNames::MatchInfoCollection::getMetaZoneIDAt(int32_t, UnicodeString&)InternalInternal
-
tznames.hUBool icu::TimeZoneNames::MatchInfoCollection::getTimeZoneIDAt(int32_t, UnicodeString&)InternalInternal
-
tznames.hUBool icu::TimeZoneNames::operator!=(const TimeZoneNames&)InternalDraft
-50
tznames.hUBool icu::TimeZoneNames::operator==(const TimeZoneNames&)InternalDraft
-50
tznames.hUTimeZoneNameType icu::TimeZoneNames::MatchInfoCollection::getNameTypeAt(int32_t)InternalInternal
-
tznames.hUnicodeString& icu::TimeZoneNames::getDisplayName(const UnicodeString&, UTimeZoneNameType, UDate, UnicodeString&)InternalDraft
-50
tznames.hUnicodeString& icu::TimeZoneNames::getExemplarLocationName(const UnicodeString&, UnicodeString&)InternalDraft
-50
tznames.hUnicodeString& icu::TimeZoneNames::getMetaZoneDisplayName(const UnicodeString&, UTimeZoneNameType, UnicodeString&)InternalDraft
-50
tznames.hUnicodeString& icu::TimeZoneNames::getMetaZoneID(const UnicodeString&, UDate, UnicodeString&)InternalDraft
-50
tznames.hUnicodeString& icu::TimeZoneNames::getReferenceZoneID(const UnicodeString&, const char*, UnicodeString&)InternalDraft
-50
tznames.hUnicodeString& icu::TimeZoneNames::getTimeZoneDisplayName(const UnicodeString&, UTimeZoneNameType, UnicodeString&)InternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_LONG_DAYLIGHTInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_LONG_GENERICInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_LONG_STANDARDInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_SHORT_DAYLIGHTInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_SHORT_GENERICInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_SHORT_STANDARDInternalDraft
-50
tznames.henum UTimeZoneNameType::UTZNM_UNKNOWNInternalDraft
-50
tznames.hicu::TimeZoneNames::MatchInfoCollection::MatchInfoCollection()InternalInternal
-
tznames.hicu::TimeZoneNames::MatchInfoCollection::~MatchInfoCollection()InternalInternal
-
tznames.hicu::TimeZoneNames::~TimeZoneNames()InternalDraft
-50
tznames.hint32_t icu::TimeZoneNames::MatchInfoCollection::getMatchLengthAt(int32_t)InternalInternal
-
tznames.hint32_t icu::TimeZoneNames::MatchInfoCollection::size()InternalInternal
-
tznames.hstatic TimeZoneNames* icu::TimeZoneNames::createInstance(const Locale&, UErrorCode&)InternalDraft
-50
tznames.hvoid icu::TimeZoneNames::MatchInfoCollection::addMetaZone(UTimeZoneNameType, int32_t, const UnicodeString&, UErrorCode&)InternalInternal
-
tznames.hvoid icu::TimeZoneNames::MatchInfoCollection::addZone(UTimeZoneNameType, int32_t, const UnicodeString&, UErrorCode&)InternalInternal
-
uchar.henum UProperty::UCHAR_OTHER_PROPERTY_LIMITDraft→Stable
4.6
uchar.henum UProperty::UCHAR_OTHER_PROPERTY_STARTDraft→Stable
4.6
uchar.henum UProperty::UCHAR_SCRIPT_EXTENSIONSDraft→Stable
4.6
ucnv.henum UConverterType::UCNV_COMPOUND_TEXTDraft→Stable
4.8
ucol.henum UColAttribute::UCOL_HIRAGANA_QUATERNARY_MODEStable
2.0
Deprecated
-
ucol.henum UColAttribute::UCOL_NUMERIC_COLLATIONStable
2.0
Stable
-2.8 -
-(changed)
uconfig.h#define UCONFIG_FORMAT_FASTPATHS_49Internal
-
udat.h#define UDAT_ABBR_STANDALONE_MONTHStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_GENERIC_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_MINUTE_GENERIC_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_MINUTE_TZStable
4.0
Deprecated
-
udat.h#define UDAT_HOUR_TZStable
4.0
Deprecated
-
udat.h#define UDAT_STANDALONE_MONTHStable
4.0
Deprecated
-
udat.henum UDateFormatStyle::UDAT_IGNOREStable
2.6
Internal
-
unistr.h#define U_STRING_CASE_MAPPER_DEFINEDInternal
-
ustring.h#define UBRK_TYPEDEF_UBREAK_ITERATORStable
2.1
Internal
-
-

-(jump back to top) -
- -

Promoted to stable in 50

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
coll.hCollationKey& icu::Collator::getCollationKey(const UChar*, int32_t, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
coll.hCollationKey& icu::Collator::getCollationKey(const UnicodeString&, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
coll.huint32_t icu::Collator::setVariableTop(const UnicodeString&, UErrorCode&)NoneStable
-2.0
coll.hvoid icu::Collator::setVariableTop(uint32_t, UErrorCode&)NoneStable
-2.0
sortkey.hUBool icu::CollationKey::isBogus()DeprecatedStable
-2.0
sortkey.hUBool icu::CollationKey::operator!=(const CollationKey&)DeprecatedStable
-2.0
sortkey.hUBool icu::CollationKey::operator==(const CollationKey&)DeprecatedStable
-2.0
sortkey.hUClassID icu::CollationKey::getDynamicClassID()DeprecatedStable
-2.2
sortkey.hUCollationResult icu::CollationKey::compareTo(const CollationKey&, UErrorCode&)DeprecatedStable
-2.6
sortkey.hconst CollationKey& icu::CollationKey::operator=(const CollationKey&)DeprecatedStable
-2.0
sortkey.hconst uint8_t* icu::CollationKey::getByteArray(int32_t&)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey()DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey(const CollationKey&)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::CollationKey(const uint8_t*, int32_t)DeprecatedStable
-2.0
sortkey.hicu::CollationKey::~CollationKey()DeprecatedStable
-2.0
sortkey.hint32_t icu::CollationKey::hashCode()DeprecatedStable
-2.0
sortkey.hstatic UClassID icu::CollationKey::getStaticClassID()DeprecatedStable
-2.2
tblcoll.hCollationKey& icu::RuleBasedCollator::getCollationKey(const UChar*, int32_t, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
tblcoll.hCollationKey& icu::RuleBasedCollator::getCollationKey(const UnicodeString&, CollationKey&, UErrorCode&)DeprecatedStable
-2.0
tblcoll.huint32_t icu::RuleBasedCollator::setVariableTop(const UnicodeString&, UErrorCode&)NoneStable
-2.0
tblcoll.hvoid icu::RuleBasedCollator::setVariableTop(uint32_t, UErrorCode&)NoneStable
-2.0
uchar.henum UGraphemeClusterBreak::U_GCB_REGIONAL_INDICATORNoneStable
-3.4
uchar.henum ULineBreak::U_LB_REGIONAL_INDICATORNoneStable
-2.2
uchar.henum UProperty::UCHAR_OTHER_PROPERTY_LIMITDraft→Stable
4.6
uchar.henum UProperty::UCHAR_OTHER_PROPERTY_STARTDraft→Stable
4.6
uchar.henum UProperty::UCHAR_SCRIPT_EXTENSIONSDraft→Stable
4.6
uchar.henum UWordBreakValues::U_WB_REGIONAL_INDICATORNoneStable
-3.4
ucnv.henum UConverterType::UCNV_COMPOUND_TEXTDraft→Stable
4.8
-

-(jump back to top) -
- -

Added in 50

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
coll.hLocale icu::Collator::getLocale(ULocDataLocaleType, UErrorCode&)NoneDeprecated
-3.0.
coll.huint32_t icu::Collator::setVariableTop(const UnicodeString&, UErrorCode&)NoneStable
-2.0
coll.hvoid icu::Collator::setVariableTop(uint32_t, UErrorCode&)NoneStable
-2.0
decimfmt.hDecimalFormat& icu::DecimalFormat::setAttribute(UNumberFormatAttribute, int32_t, UErrorCode&)NoneInternal
-50
decimfmt.hUBool icu::EnumSet< T, minValue, limitValue >::isValidEnum(T)NoneInternal
-
decimfmt.hUBool icu::EnumSet< T, minValue, limitValue >::isValidValue(int32_t)NoneInternal
-
decimfmt.hUnicodeString& icu::DecimalFormat::format(double, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
decimfmt.hUnicodeString& icu::DecimalFormat::format(int32_t, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
decimfmt.hUnicodeString& icu::DecimalFormat::format(int64_t, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
decimfmt.hconst EnumSet<T,minValue,limitValue>& icu::EnumSet< T, minValue, limitValue >::operator=(const EnumSet<,, limitValue >&)NoneInternal
-
decimfmt.hicu::EnumSet< T, minValue, limitValue >::EnumSet()NoneInternal
-
decimfmt.hicu::EnumSet< T, minValue, limitValue >::EnumSet(const EnumSet<,, limitValue >&)NoneInternal
-
decimfmt.hicu::EnumSet< T, minValue, limitValue >::~EnumSet()NoneInternal
-
decimfmt.hint32_t icu::DecimalFormat::getAttribute(UNumberFormatAttribute, UErrorCode&)NoneInternal
-50
decimfmt.hint32_t icu::EnumSet< T, minValue, limitValue >::contains(T)NoneInternal
-
decimfmt.hint32_t icu::EnumSet< T, minValue, limitValue >::get(T)NoneInternal
-
decimfmt.huint32_t icu::EnumSet< T, minValue, limitValue >::getAll()NoneInternal
-
decimfmt.hvoid icu::EnumSet< T, minValue, limitValue >::add(T)NoneInternal
-
decimfmt.hvoid icu::EnumSet< T, minValue, limitValue >::clear()NoneInternal
-
decimfmt.hvoid icu::EnumSet< T, minValue, limitValue >::remove(T)NoneInternal
-
decimfmt.hvoid icu::EnumSet< T, minValue, limitValue >::set(T, int32_t)NoneInternal
-
fmtable.hDigitList* icu::Formattable::getInternalDigitList()NoneInternal
-
gender.hUGender icu::GenderInfo::getListGender(const UGender*, int32_t, UErrorCode&)NoneDraft
-50
gender.hicu::GenderInfo::~GenderInfo()NoneDraft
-50
gender.hstatic const GenderInfo* icu::GenderInfo::getInstance(const Locale&, UErrorCode&)NoneDraft
-50
listformatter.hUnicodeString& icu::ListFormatter::format(const UnicodeString items[], int32_t, UnicodeString&, UErrorCode&)NoneDraft
-50
listformatter.hicu::ListFormatter::ListFormatter(const ListFormatData&)NoneInternal
-
listformatter.hicu::ListFormatter::~ListFormatter()NoneDraft
-50
listformatter.hstatic ListFormatter* icu::ListFormatter::createInstance(UErrorCode&)NoneDraft
-50
listformatter.hstatic ListFormatter* icu::ListFormatter::createInstance(const Locale&, UErrorCode&)NoneDraft
-50
listformatter.hstatic void icu::ListFormatter::getFallbackLocale(const Locale&, Locale&, UErrorCode&)NoneInternal
-
locdspnm.hUDisplayContext icu::LocaleDisplayNames::getContext(UDisplayContextType)NoneInternal
-
locdspnm.hstatic LocaleDisplayNames* icu::LocaleDisplayNames::createInstance(const Locale&, UDisplayContext*, int32_t)NoneInternal
-
messagepattern.h#define UMSGPAT_ARG_TYPE_HAS_PLURAL_STYLENoneDraft
-50
messagepattern.henum UMessagePatternArgType::UMSGPAT_ARG_TYPE_SELECTORDINALNoneDraft
-50
numfmt.hUnicodeString& icu::NumberFormat::format(double, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
numfmt.hUnicodeString& icu::NumberFormat::format(int32_t, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
numfmt.hUnicodeString& icu::NumberFormat::format(int64_t, UnicodeString&, FieldPosition&, UErrorCode&)NoneInternal
-
platform.h#define U_ALLOC_SIZE_ATTR2NoneInternal
-
platform.h#define U_ALLOC_SIZE_ATTRNoneInternal
-
platform.h#define U_GCC_MAJOR_MINORNoneInternal
-
platform.h#define U_MALLOC_ATTRNoneInternal
-
platform.h#define __has_attributeNoneInternal
-
plurfmt.hicu::PluralFormat::PluralFormat(const Locale&, UPluralType, UErrorCode&)NoneDraft
-50
plurfmt.hicu::PluralFormat::PluralFormat(const Locale&, UPluralType, const UnicodeString&, UErrorCode&)NoneDraft
-50
plurfmt.hvoid icu::PluralFormat::init(const PluralRules*, UPluralType, UErrorCode&)NoneInternal
-
plurrule.hstatic PluralRules* icu::PluralRules::forLocale(const Locale&, UPluralType, UErrorCode&)NoneDraft
-50
smpdtfmt.hUDisplayContext icu::SimpleDateFormat::getContext(UDisplayContextType, UErrorCode&)NoneInternal
-
smpdtfmt.hvoid icu::SimpleDateFormat::setContext(UDisplayContext, UErrorCode&)NoneInternal
-
tblcoll.hLocale icu::RuleBasedCollator::getLocale(ULocDataLocaleType, UErrorCode&)NoneDeprecated
-
tblcoll.huint32_t icu::RuleBasedCollator::setVariableTop(const UnicodeString&, UErrorCode&)NoneStable
-2.0
tblcoll.hvoid icu::RuleBasedCollator::setVariableTop(uint32_t, UErrorCode&)NoneStable
-2.0
tzfmt.huint32_t icu::TimeZoneFormat::getDefaultParseOptions()NoneDraft
-50
tzfmt.hvoid icu::TimeZoneFormat::setDefaultParseOptions(uint32_t)NoneDraft
-50
ucal.hUBool ucal_getTimeZoneTransitionDate(const UCalendar*, UTimeZoneTransitionType, UDate*, UErrorCode*)NoneDraft
-50
ucal.henum UTimeZoneTransitionType::UCAL_TZ_TRANSITION_NEXT_INCLUSIVENoneDraft
-50
ucal.henum UTimeZoneTransitionType::UCAL_TZ_TRANSITION_NEXTNoneDraft
-50
ucal.henum UTimeZoneTransitionType::UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVENoneDraft
-50
ucal.henum UTimeZoneTransitionType::UCAL_TZ_TRANSITION_PREVIOUSNoneDraft
-50
uchar.henum UGraphemeClusterBreak::U_GCB_REGIONAL_INDICATORNoneStable
-3.4
uchar.henum ULineBreak::U_LB_REGIONAL_INDICATORNoneStable
-2.2
uchar.henum UWordBreakValues::U_WB_REGIONAL_INDICATORNoneStable
-3.4
ucol.hUCollationResult ucol_strcollUTF8(const UCollator*, const char*, int32_t, const char*, int32_t, UErrorCode*)NoneDraft
-50
udat.h#define UDAT_ABBR_GENERIC_TZNoneInternal
-
udat.h#define UDAT_ABBR_QUARTERNoneInternal
-
udat.h#define UDAT_ABBR_SPECIFIC_TZNoneInternal
-
udat.h#define UDAT_ABBR_UTC_TZNoneInternal
-
udat.h#define UDAT_ABBR_WEEKDAYNoneInternal
-
udat.h#define UDAT_GENERIC_TZNoneInternal
-
udat.h#define UDAT_HOUR24NoneInternal
-
udat.h#define UDAT_LOCATION_TZNoneInternal
-
udat.h#define UDAT_MINUTENoneInternal
-
udat.h#define UDAT_QUARTERNoneInternal
-
udat.h#define UDAT_SECONDNoneInternal
-
udat.h#define UDAT_SPECIFIC_TZNoneInternal
-
udat.h#define UDAT_WEEKDAYNoneInternal
-
udat.hUDisplayContext udat_getContext(UDateFormat*, UDisplayContextType, UErrorCode*)NoneInternal
-
udat.henum UDateFormatStyle::UDAT_PATTERNNoneDraft
-50
udat.hvoid udat_setContext(UDateFormat*, UDisplayContext, UErrorCode*)NoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCENoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCENoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_CAPITALIZATION_FOR_STANDALONENoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENUNoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_CAPITALIZATION_NONENoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_DIALECT_NAMESNoneInternal
-
udisplaycontext.henum UDisplayContext::UDISPCTX_STANDARD_NAMESNoneInternal
-
udisplaycontext.henum UDisplayContextType::UDISPCTX_TYPE_CAPITALIZATIONNoneInternal
-
udisplaycontext.henum UDisplayContextType::UDISPCTX_TYPE_DIALECT_HANDLINGNoneInternal
-
uenum.hUEnumeration* uenum_openCharStringsEnumeration(const char*const strings[], int32_t, UErrorCode*)NoneDraft
-50
uenum.hUEnumeration* uenum_openUCharStringsEnumeration(const UChar*const strings[], int32_t, UErrorCode*)NoneDraft
-50
ugender.hUGender ugender_getListGender(const UGenderInfo*, const UGender*, int32_t, UErrorCode*)NoneDraft
-50
ugender.hconst UGenderInfo* ugender_getInstance(const char*, UErrorCode*)NoneDraft
-50
ugender.henum UGender::UGENDER_FEMALENoneDraft
-50
ugender.henum UGender::UGENDER_MALENoneDraft
-50
ugender.henum UGender::UGENDER_OTHERNoneDraft
-50
uldnames.hUDisplayContext uldn_getContext(const ULocaleDisplayNames*, UDisplayContextType, UErrorCode*)NoneInternal
-
uldnames.hULocaleDisplayNames* uldn_openForContext(const char*, UDisplayContext*, int32_t, UErrorCode*)NoneInternal
-
unum.henum UNumberFormatAttribute::UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITSNoneDraft
-50
unum.henum UNumberFormatAttribute::UNUM_LIMIT_BOOLEAN_ATTRIBUTENoneInternal
-
unum.henum UNumberFormatAttribute::UNUM_MAX_NONBOOLEAN_ATTRIBUTENoneInternal
-
unum.henum UNumberFormatAttribute::UNUM_NUMERIC_ATTRIBUTE_COUNTNoneInternal
-
unum.henum UNumberFormatAttribute::UNUM_PARSE_NO_EXPONENTNoneDraft
-50
upluralrules.hUPluralRules* uplrules_openForType(const char*, UPluralType, UErrorCode*)NoneDraft
-50
upluralrules.henum UPluralType::UPLURAL_TYPE_CARDINALNoneDraft
-50
upluralrules.henum UPluralType::UPLURAL_TYPE_COUNTNoneDraft
-50
upluralrules.henum UPluralType::UPLURAL_TYPE_ORDINALNoneDraft
-50
utf8.h#define U8_COUNT_TRAIL_BYTES_UNSAFENoneInternal
-
utrace.henum UTraceFunctionNumber::UTRACE_UCOL_STRCOLLUTF8NoneDraft
-50
-

-(jump back to top) -
- -

Other existing drafts in 50

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAPI4950
brkiter.hBreakIterator& icu::BreakIterator::refreshInputText(UText*, UErrorCode&)Draft
49
calendar.hUCalendarWallTimeOption icu::Calendar::getRepeatedWallTimeOption()Draft
49
calendar.hUCalendarWallTimeOption icu::Calendar::getSkippedWallTimeOption()Draft
49
calendar.hconst char* icu::Calendar::getType()Draft
49
calendar.hvoid icu::Calendar::setRepeatedWallTimeOption(UCalendarWallTimeOption)Draft
49
calendar.hvoid icu::Calendar::setSkippedWallTimeOption(UCalendarWallTimeOption)Draft
49
decimfmt.hCurrencyAmount* icu::DecimalFormat::parseCurrency(const UnicodeString&, ParsePosition&)Draft
49
gregocal.hconst char* icu::GregorianCalendar::getType()Draft
49
icudataver.h#define U_ICU_DATA_KEYDraft
49
icudataver.h#define U_ICU_VERSION_BUNDLEDraft
49
icudataver.hvoid u_getDataVersion(UVersionInfo, UErrorCode*)Draft
49
locid.hvoid icu::Locale::setKeywordValue(const char*, const char*, UErrorCode&)Draft
49
normalizer2.hUBool icu::FilteredNormalizer2::getRawDecomposition(UChar32, UnicodeString&)Draft
49
normalizer2.hUBool icu::Normalizer2::getRawDecomposition(UChar32, UnicodeString&)Draft
49
normalizer2.hUChar32 icu::FilteredNormalizer2::composePair(UChar32, UChar32)Draft
49
normalizer2.hUChar32 icu::Normalizer2::composePair(UChar32, UChar32)Draft
49
normalizer2.hstatic const Normalizer2* icu::Normalizer2::getNFCInstance(UErrorCode&)Draft
49
normalizer2.hstatic const Normalizer2* icu::Normalizer2::getNFDInstance(UErrorCode&)Draft
49
normalizer2.hstatic const Normalizer2* icu::Normalizer2::getNFKCCasefoldInstance(UErrorCode&)Draft
49
normalizer2.hstatic const Normalizer2* icu::Normalizer2::getNFKCInstance(UErrorCode&)Draft
49
normalizer2.hstatic const Normalizer2* icu::Normalizer2::getNFKDInstance(UErrorCode&)Draft
49
normalizer2.huint8_t icu::FilteredNormalizer2::getCombiningClass(UChar32)Draft
49
normalizer2.huint8_t icu::Normalizer2::getCombiningClass(UChar32)Draft
49
numfmt.hCurrencyAmount* icu::NumberFormat::parseCurrency(const UnicodeString&, ParsePosition&)Draft
49
numsys.hconst char* icu::NumberingSystem::getName()Draft
4.6
rbbi.hRuleBasedBreakIterator& icu::RuleBasedBreakIterator::refreshInputText(UText*, UErrorCode&)Draft
49
rbnf.hvoid icu::RuleBasedNumberFormat::adoptDecimalFormatSymbols(DecimalFormatSymbols*)Draft
49
rbnf.hvoid icu::RuleBasedNumberFormat::setDecimalFormatSymbols(const DecimalFormatSymbols&)Draft
49
timezone.hstatic const TimeZone& icu::TimeZone::getUnknown()Draft
49
ubrk.hvoid ubrk_refreshUText(UBreakIterator*, UText*, UErrorCode*)Draft
49
ucal.henum UCalendarAttribute::UCAL_REPEATED_WALL_TIMEDraft
49
ucal.henum UCalendarAttribute::UCAL_SKIPPED_WALL_TIMEDraft
49
ucal.henum UCalendarWallTimeOption::UCAL_WALLTIME_FIRSTDraft
49
ucal.henum UCalendarWallTimeOption::UCAL_WALLTIME_LASTDraft
49
ucal.henum UCalendarWallTimeOption::UCAL_WALLTIME_NEXT_VALIDDraft
49
uconfig.h#define U_NO_DEFAULT_INCLUDE_UTF_HEADERSDraft
49
ucurr.hint32_t ucurr_getNumericCode(const UChar*)Draft
49
udat.henum UDateFormatField::UDAT_YEAR_NAME_FIELDDraft
49
uidna.henum (anonymous)::UIDNA_CHECK_CONTEXTODraft
49
uidna.henum (anonymous)::UIDNA_ERROR_CONTEXTO_DIGITSDraft
49
uidna.henum (anonymous)::UIDNA_ERROR_CONTEXTO_PUNCTUATIONDraft
49
unistr.h#define UNISTR_FROM_CHAR_EXPLICITDraft
49
unistr.h#define UNISTR_FROM_STRING_EXPLICITDraft
49
unorm2.hUChar32 unorm2_composePair(const UNormalizer2*, UChar32, UChar32)Draft
49
unorm2.hconst UNormalizer2* unorm2_getNFCInstance(UErrorCode*)Draft
49
unorm2.hconst UNormalizer2* unorm2_getNFDInstance(UErrorCode*)Draft
49
unorm2.hconst UNormalizer2* unorm2_getNFKCCasefoldInstance(UErrorCode*)Draft
49
unorm2.hconst UNormalizer2* unorm2_getNFKCInstance(UErrorCode*)Draft
49
unorm2.hconst UNormalizer2* unorm2_getNFKDInstance(UErrorCode*)Draft
49
unorm2.hint32_t unorm2_getRawDecomposition(const UNormalizer2*, UChar32, UChar*, int32_t, UErrorCode*)Draft
49
unorm2.huint8_t unorm2_getCombiningClass(const UNormalizer2*, UChar32)Draft
49
uregex.henum URegexpFlag::UREGEX_CANON_EQDraft
2.4
uscript.hUBool uscript_hasScript(UChar32, UScriptCode)Draft
49
uscript.hint32_t uscript_getScriptExtensions(UChar32, UScriptCode*, int32_t, UErrorCode*)Draft
49
ustdio.hUFILE* u_get_stdout()Draft
49
ustdio.hint32_t u_printf(const char*,...)Draft
49
ustdio.hint32_t u_printf_u(const UChar*,...)Draft
49
-
-

-(jump back to top) -
- -

Signature Simplifications

-This section shows cases where the signature was "simplified" for the sake of comparison. The simplified form is in bold, followed by - all possible variations in "original" form. -
- -
-

-(jump back to top) -
-

-Contents generated by StableAPI (r32649M) tool on Wed Oct 17 17:01:17 PDT 2012
Copyright (C) 2012, International Business Machines Corporation, All Rights Reserved.
-

- - diff --git a/intl/icu/SVN-INFO b/intl/icu/SVN-INFO deleted file mode 100644 --- a/intl/icu/SVN-INFO +++ /dev/null @@ -1,10 +0,0 @@ -Path: release-50-1-2 -URL: http://source.icu-project.org/repos/icu/icu/tags/release-50-1-2 -Repository Root: http://source.icu-project.org/repos/icu -Repository UUID: 251d0590-4201-4cf1-90de-194747b24ca1 -Revision: 33305 -Node Kind: directory -Last Changed Author: mow -Last Changed Rev: 33098 -Last Changed Date: 2013-01-30 15:54:50 -0800 (Wed, 30 Jan 2013) - diff --git a/intl/icu/as_is/bomlist.py b/intl/icu/as_is/bomlist.py deleted file mode 100644 --- a/intl/icu/as_is/bomlist.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/python - -# Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved. -# -# run in icu/ -# will create file icu/as_is/bomlist.txt -# -# Usage: -# ( python as_is/bomlist.py > as_is/bomlist.txt ) || rm -f as_is/bomlist.txt - -import os -import codecs - -tree = os.walk(".") - -nots=0 -notutf8=0 -noprops=0 -utf8=0 -fixed=0 -tfiles=0 -bom=codecs.BOM_UTF8 - - -for ent in tree: - (path,dirs,files) = ent - if(path.find("/.svn") != -1): - continue - for file in files: - tfiles=tfiles+1 - fp = (path + "/" + file) - if not os.path.isfile(fp): - continue - f = open(fp, 'rb') - bytes=f.read(3) - if bytes and (bytes == bom): - print 'icu/'+fp[2::] - f.close() diff --git a/intl/icu/as_is/os390/unpax-icu.sh b/intl/icu/as_is/os390/unpax-icu.sh deleted file mode 100755 --- a/intl/icu/as_is/os390/unpax-icu.sh +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/sh -# Copyright (C) 2001-2010, International Business Machines -# Corporation and others. All Rights Reserved. -# -# Authors: -# Ami Fixler -# Steven R. Loomis -# George Rhoten -# -# Shell script to unpax ICU and convert the files to an EBCDIC codepage. -# After extracting to EBCDIC, binary files are re-extracted without the -# EBCDIC conversion, thus restoring them to original codepage. -# -# Set the following variable to the list of binary file suffixes (extensions) - -#binary_suffixes='ico ICO bmp BMP jpg JPG gif GIF brk BRK' -#ICU specific binary files -binary_suffixes='brk BRK bin BIN res RES cnv CNV dat DAT icu ICU spp SPP xml XML nrm NRM' - -usage() -{ - echo "Enter archive filename as a parameter: $0 icu-archive.tar" -} -# first make sure we at least one arg and it's a file we can read -if [ $# -eq 0 ]; then - usage - exit -fi -tar_file=$1 -if [ ! -r $tar_file ]; then - echo "$tar_file does not exist or cannot be read." - usage - exit -fi - -echo "" -echo "Extracting from $tar_file ..." -echo "" -# extract files while converting them to EBCDIC -pax -rvf $tar_file -o to=IBM-1047,from=ISO8859-1 -o setfiletag - -echo "" -echo "Determining binary files ..." -echo "" - -# When building in ASCII mode, text files are converted as ASCII -if [ "${ICU_ENABLE_ASCII_STRINGS}" -eq 1 ]; then - binary_suffixes="$binary_suffixes txt TXT ucm UCM" -else - for file in `find ./icu \( -name \*.txt -print \) | sed -e 's/^\.\///'`; do - bom8=`head -c 3 $file|\ - od -t x1|\ - head -n 1|\ - sed 's/ */ /g'|\ - cut -f2-4 -d ' '|\ - tr 'A-Z' 'a-z'`; - #Find a converted UTF-8 BOM - if [ "$bom8" = "57 8b ab" ] - then - binary_files="$binary_files $file"; - fi - done -fi - -for i in $(pax -f $tar_file 2>/dev/null) -do - case $i in - */) ;; # then this entry is a directory - *.*) # then this entry has a dot in the filename - for j in $binary_suffixes - do - # We substitute the suffix more than once - # to handle files like NormalizationTest-3.2.0.txt - suf=${i#*.*} - suf=${suf#*.*} - suf=${suf#*.*} - if [ "$suf" = "$j" ] - then - binary_files="$binary_files $i" - break - fi - done - ;; - *) ;; # then this entry does not have a dot in it - esac -done - -# now see if a re-extract of binary files is necessary -if [ ${#binary_files} -eq 0 ]; then - echo "" - echo "There are no binary files to restore." -else - echo "Restoring binary files ..." - echo "" - rm $binary_files - pax -rvf $tar_file $binary_files - # Tag the files as binary for proper interaction with the _BPXK_AUTOCVT - # environment setting - chtag -b $binary_files -fi -echo "" -echo "$0 has completed extracting ICU from $tar_file." diff --git a/intl/icu/as_is/os400/bldiculd.sh b/intl/icu/as_is/os400/bldiculd.sh deleted file mode 100755 --- a/intl/icu/as_is/os400/bldiculd.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -# /* Copyright (C) 2011-2012 IBM Corporation and Others. All Rights Reserved */ -icc -o iculd iculd.c -icc -o cxxfilt cxxfilt.cpp - - diff --git a/intl/icu/as_is/os400/convertConfigure.sed b/intl/icu/as_is/os400/convertConfigure.sed deleted file mode 100644 --- a/intl/icu/as_is/os400/convertConfigure.sed +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (C) 2006-2011, International Business Machines Corporation -# and others. All Rights Reserved. -# -# Use "test -x" instead of "test -f" most of the time. -# due to how executables are created in a different file system. -s/as_executable_p="test -f"/as_executable_p="test -x"/g -s/test -f "$ac_file"/test -x "$ac_file"/g -s/test -f $ac_dir\/install-sh/test -x $ac_dir\/install-sh/g -s/test -f $ac_dir\/install.sh/test -x $ac_dir\/install.sh/g -s/test -f $ac_dir\/shtool/test -x $ac_dir\/shtool/g -# Use the more efficient del instead of rm command. -s/rm[ ]*-r[ ]*-f/del -f/g -s/rm[ ]*-f[ ]*-r/del -f/g -s/rm[ ]*-rf/del -f/g -s/rm[ ]*-fr/del -f/g -s/rm[ ]*-f/del -f/g -##don't clean up some awks for debugging -#s/[ ]*del -f [^ ]*.awk/#&/ -# Borne shell isn't always available on i5/OS -s/\/bin\/sh/\/usr\/bin\/qsh/g -# no diff in qsh the equivalent is cmp -s/ diff / cmp -s /g -## srl -# trouble w/ redirects. -s% >&$3%%g -s% >&$4% >$4%g -s%^ac_cr=%# AWK reads ASCII, not EBCDIC\ -touch -C 819 $tmp/defines.awk $tmp/subs.awk $tmp/subs1.awk conf$$subs.awk\ -\ -&% -##OBSOLETE -#(REPLACED BY CPP in runConfigureICU) Use -c qpponly instead of -E to enable the preprocessor on the compiler -#s/\$CC -E/\$CC -c -qpponly/g diff --git a/intl/icu/as_is/os400/cxxfilt.cpp b/intl/icu/as_is/os400/cxxfilt.cpp deleted file mode 100644 --- a/intl/icu/as_is/os400/cxxfilt.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright (C) 2012 IBM Corporation and Others. All Rights Reserved */ - -#include -#include - -void showSym(char *str) { - char *rest; - struct Name *name = Demangle(str, rest); // "f__1XFi" - - printf("# '%s'\n", str); - if(*rest) printf("\trest: '%s'\n", rest); - if(name->Kind() == MemberFunction) { - //((MemberFunctionName *) name)->Scope()->Text() is "X" - //((MemberFunctionName *) name)->RootName() is "f" - //((MemberFunctionName *) name)->Text() is "X::f(int)" - printf("\t=> %s\n", ((MemberFunctionName *) name)->Text()); - } else { - printf("\t(not MemberFunction)\n"); - } -} - - - - - -int main(int argc, /*const*/ char *argv[]) { - if(argc>1) { - for(int i=1;i ...\n", argv[0]); - } - - - -} diff --git a/intl/icu/as_is/os400/fixup-icu.sh b/intl/icu/as_is/os400/fixup-icu.sh deleted file mode 100755 --- a/intl/icu/as_is/os400/fixup-icu.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/qsh -# Copyright (C) 2000-2011, International Business Machines -# Corporation and others. All Rights Reserved. -# -# Authors: -# Ami Fixler -# Barry Novinger -# Steven R. Loomis -# George Rhoten -# Jason Spieth -# -# -# This script detects if any UTF-8 files were incorrectly converted to EBCDIC, and -# converts them back. - -if [ -z "$QSH_VERSION" ]; -then - QSH=0 - echo "QSH not detected (QSH_VERSION not set) - just testing." -else - QSH=1 - #echo "QSH version $QSH_VERSION" -fi -export QSH - -tar_file=$1 -echo "" -echo "Determining binary files by BOM ..." -echo "" -bin_count=0 -binary_files="" -# Process BOMs - for file in `find ./icu/source/data/unidata \( -name \*.txt -print \)`; do - bom8=`od -t x1 -N 3 $file|\ - head -n 1|\ - cut -c10-18`; - #Find a converted UTF-8 BOM - echo "file $file bom /${bom8}/" - if [ "$bom8" = "57 8b ab" ] - then - file="`echo $file | cut -d / -f2-`" - echo "converting ${file}" - if [ `echo $binary_files | wc -w` -lt 200 ] - then - bin_count=`expr $bin_count + 1` - binary_files="$binary_files $file"; - else - echo "Restoring binary files by BOM ($bin_count)..." - rm $binary_files; - pax -C 819 -rvf $tar_file $binary_files; - echo "Determining binary files by BOM ($bin_count)..." - binary_files="$file"; - bin_count=`expr $bin_count + 1` - fi - fi - done - if [ `echo $binary_files | wc -w` -gt 0 ] - then - echo restoring - rm $binary_files - pax -C 819 -rvf $tar_file $binary_files - fi - - - diff --git a/intl/icu/as_is/os400/iculd.c b/intl/icu/as_is/os400/iculd.c deleted file mode 100644 --- a/intl/icu/as_is/os400/iculd.c +++ /dev/null @@ -1,249 +0,0 @@ -/* Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved */ - -/** - Input: - -o makeconv makeconv.o ucnvstat.o ../../lib/libicuuc48.so -qOPTION='*DUPPROC *DUPVAR*' - -CRTPGM PGM(SRLICU/MAKECONV) MODULE(SRLICU/MAKECONV SRLICU/UCNVSTAT SRLICU/GENMBCS SRLICU/GENCNVEX) BNDSRVPGM(SRLICU/LIBICUUC48 SRLICU/LIBICUTU48 SRLICU/LIBICUIN48) OPTION(*DUPPROC *DUPVAR) REPLACE(*YES) - -Handles .o ( modules ), .so ( srvpgm ), .a ( bnddir ). - -TODO: - - - cleanup - - much better error handling - - factor common code - - instead of caring about .o vs .so vs .a, just read the link - if it ends in .srvpgm then treat it as a service program, etc. - -*/ - -#include -#include -#include -#include - -#ifndef TEST_MODE -#define TEST_MODE 0 -#endif - - -#if !TEST_MODE -#include -#else -static int Qp0zSystem(const char *cmd) { - printf("CL: %s\n", cmd); - return 0; -} -#endif - -static int runcmd(const char *cmd) { - int rc; - printf("%s\n", cmd); - rc = Qp0zSystem(cmd); - if(rc==0) { - printf("..ok\n"); - return 0; - } else if(rc<0){ - printf("..Qp0zSystem failed.\n"); - return 1; - } else { - printf("..System call failed.\n"); - return 1; - } -} - -int main(int argc, const char *argv[]) { - int i; - - char buf[8048]; - char opt[4100]; - char objs[4024]; - char libs[4024]; - char bnddirs[4024]; - const char *prog=""; - const char *progshort=prog; - const char *outputdir=getenv("OUTPUTDIR"); - - printf("# OUTPUTDIR=%s ",outputdir); - for(i=0;i= 10) { - nlen = 10; - } - - if(readlink(b,linkbuf,200)>0) { - /* printf("linkbuf %s for %s\n", linkbuf, b); */ - /* /qsys.lib/srlicu.lib/currtest.module */ - char *mend = strrchr(linkbuf,'.'); - if(mend) { - *mend=0; - mend = strrchr(linkbuf,'/'); - if(mend) { - mend++; - strcpy(outbuf,mend); - b=outbuf; - nlen=strlen(b); - } - } - } else { - /* perror("readlink"); - puts(b); */ - } - - strcat(objs,outputdir); - strcat(objs,"/"); - strncat(objs,b,nlen); - strcat(objs, " "); - } else if(argv[i][n-1]=='a' && - argv[i][n-2]=='.') { - const char *b = argv[i]; - char linkbuf[200]; - char outbuf[100]; - int nlen = n-2; - - if(nlen >= 10) { - nlen = 10; - } - - if(readlink(b,linkbuf,200)>0) { - /* printf("linkbuf %s for %s\n", linkbuf, b); */ - /* /qsys.lib/srlicu.lib/currtest.srvpgm */ - char *mend = strrchr(linkbuf,'.'); - if(mend) { - *mend=0; - mend = strrchr(linkbuf,'/'); - if(mend) { - mend++; - strcpy(outbuf,mend); - b=outbuf; - nlen=strlen(b); - } - } - } else { - /* perror("readlink"); - puts(b); */ - } - - strcat(bnddirs,outputdir); - strcat(bnddirs,"/"); - strncat(bnddirs,b,nlen); - strcat(bnddirs, " "); - } else if(argv[i][n-1]=='o' && - argv[i][n-2]=='s' && - argv[i][n-3]=='.') { - const char *p = strrchr(argv[i],'/'); - if(!p) { - printf("Can't find trailing slash in %s\n", argv[i]); - return 1; - } - strcat(libs,outputdir); - strcat(libs,"/"); - strncat(libs,p+1,strlen(p)-4); - strcat(libs," "); - } else { - printf("Unknown input file: %s\n", argv[i]); - return 1; - } - } - } - - if(prog[0]==0) { - printf("no program (-o) option specified.\n"); - return 1; - } - - sprintf(buf,"CRTPGM PGM(%s/%s) MODULE(%s) BNDSRVPGM(%s) BNDDIR(%s) OPTION(%s) REPLACE(*YES)", - outputdir,progshort, - - objs, - - libs, - - bnddirs, - - opt); - - - if(runcmd(buf)) { - return 1; - } - - /* -- OK */ - { - char path1[1000]; - sprintf(path1,"/qsys.lib/%s.lib/%s.pgm", - outputdir, - progshort); - printf("# ln -s %s %s\n", path1, prog); - if((!TEST_MODE) && symlink(path1,prog)) { - perror("symlink"); - if(errno!=EEXIST) { /* ignored */ - return 1; - } - } - } - return 0; -} - - - - - - - - diff --git a/intl/icu/as_is/os400/unpax-icu.sh b/intl/icu/as_is/os400/unpax-icu.sh deleted file mode 100755 --- a/intl/icu/as_is/os400/unpax-icu.sh +++ /dev/null @@ -1,160 +0,0 @@ -#!/usr/bin/qsh -# Copyright (C) 2000-2011, International Business Machines -# Corporation and others. All Rights Reserved. -# -# Authors: -# Ami Fixler -# Barry Novinger -# Steven R. Loomis -# George Rhoten -# Jason Spieth -# -# Shell script to unpax ICU and convert the files to an EBCDIC codepage. -# After extracting to EBCDIC, binary files are re-extracted without the -# EBCDIC conversion, thus restoring them to original codepage. - -if [ -z "$QSH_VERSION" ]; -then - QSH=0 - echo "QSH not detected (QSH_VERSION not set) - just testing." -else - QSH=1 - #echo "QSH version $QSH_VERSION" -fi -export QSH - -# Set the following variable to the list of binary file suffixes (extensions) - - -#**************************************************************************** -#binary_suffixes='ico ICO bmp BMP jpg JPG gif GIF brk BRK' -#ICU specific binary files -#**************************************************************************** -binary_suffixes='brk BRK bin BIN res RES cnv CNV dat DAT icu ICU spp SPP xml XML nrm NRM' -data_files='icu/source/data/brkitr/* icu/source/data/locales/* icu/source/data/coll/* icu/source/data/rbnf/* icu/source/data/mappings/* icu/source/data/misc/* icu/source/data/translit/* icu/source/data/unidata/* icu/source/test/testdata/*' - -#**************************************************************************** -# Function: usage -# Description: Prints out text that describes how to call this script -# Input: None -# Output: None -#**************************************************************************** -usage() -{ - echo "Enter archive filename as a parameter: $0 icu-archive.tar" -} - -#**************************************************************************** -# first make sure we at least one arg and it's a file we can read -#**************************************************************************** - -# check for no arguments -if [ $# -eq 0 ]; then - usage - exit -fi - -# tar file is argument 1 -tar_file=$1 - -# check that the file is valid -if [ ! -r $tar_file ]; then - echo "$tar_file does not exist or cannot be read." - usage - exit -fi - -# treat all data files as ebcdic -ebcdic_data=$data_files - -#**************************************************************************** -# Extract files. We do this in two passes. One pass for 819 files and a -# second pass for 37 files -#**************************************************************************** -echo "" -echo "Extracting from $tar_file ..." -echo "" - -# extract everything as iso-8859-1 except these directories -pax -C 819 -rcvf $tar_file $ebcdic_data - -# extract files while converting them to EBCDIC -echo "" -echo "Extracting files which must be in ibm-37 ..." -echo "" -pax -C 37 -rvf $tar_file $ebcdic_data - -#**************************************************************************** -# For files we have restored as CCSID 37, check the BOM to see if they -# should be processed as 819. Also handle files with special paths. Files -# that match will be added to binary files lists. The lists will in turn -# be processed to restore files as 819. -#**************************************************************************** -echo "" -echo "Determining binary files by BOM ..." -echo "" -bin_count=0 -# Process BOMs -if [ -f icu/as_is/bomlist.txt ]; -then - echo "Using icu/as_is/bomlist.txt" - pax -C 819 -rvf $tar_file `cat icu/as_is/bomlist.txt` -else - for file in `find ./icu \( -name \*.txt -print \)`; do - bom8=`head -n 1 $file|\ - od -t x1|\ - head -n 1|\ - sed 's/ */ /g'|\ - cut -f2-4 -d ' '|\ - tr 'A-Z' 'a-z'`; - #Find a converted UTF-8 BOM - if [ "$bom8" = "057 08b 0ab" -o "$bom8" = "57 8b ab" ] - then - file="`echo $file | cut -d / -f2-`" - - if [ `echo $binary_files | wc -w` -lt 200 ] - then - bin_count=`expr $bin_count + 1` - binary_files="$binary_files $file"; - else - echo "Restoring binary files by BOM ($bin_count)..." - rm $binary_files; - pax -C 819 -rvf $tar_file $binary_files; - echo "Determining binary files by BOM ($bin_count)..." - binary_files="$file"; - bin_count=`expr $bin_count + 1` - fi - fi - done - # now see if a re-extract of binary files is necessary - if [ `echo $binary_files | wc -w` -gt 0 ] - then - echo "Restoring binary files ($bin_count) ..." - rm $binary_files - pax -C 819 -rvf $tar_file $binary_files - fi -fi - -echo "# Processing special paths." -# Process special paths -more_bin_files=$(find icu -type f \( -name '*.zzz' `echo $binary_suffixes | sed -e 's%[a-zA-Z]*%-o -name \*.&%g'` \) -print) -echo "Restoring binary files by special paths ($bin_count) ..." -rm $more_bin_files -pax -C 819 -rvf $tar_file $more_bin_files - -#**************************************************************************** -# Generate and run the configure script -#**************************************************************************** - -echo "" -echo "Generating qsh compatible configure ..." -echo "" - -sed -f icu/as_is/os400/convertConfigure.sed icu/source/configure > icu/source/configureTemp -del -f icu/source/configure -mv icu/source/configureTemp icu/source/configure -chmod 755 icu/source/configure - -echo "" -echo "$0 has completed extracting ICU from $tar_file - $bin_count binary files extracted." - diff --git a/intl/icu/icu4c.css b/intl/icu/icu4c.css deleted file mode 100644 --- a/intl/icu/icu4c.css +++ /dev/null @@ -1,472 +0,0 @@ -/* - * Default CSS style sheet for the ICU4C Open Source readme - * Copyright (C) 2005-2011, International Business Machines - * Corporation and others. All Rights Reserved. - */ - -/* Global styles */ - -body,p,li,ol,ul,th,td { - font-size: 1em; - font-family: "Arial", "Helvetica", sans-serif; -} - -body { - margin: 1em; -} - -body.draft { - background-image: url(images/draftbg.png); -} - -.mainbody { - padding: 1em; -} - -/* - * Customize the headers to have less space around them than usual - */ - -h1 { - margin-bottom: .5em; - margin-top: .5em; - padding-bottom: .5em; - padding-top: .5em; - font-weight: 700; - font-size: 20pt; - font-family: Georgia, "Times New Roman", Times, serif; - border-width: 2px; - border-style: solid; - text-align: center; - width: 100%; - font-size: 200%; - font-weight: bold; -} - -h2 { - border-top: 2px solid #22d; - border-left: 2px solid #22d; - margin-bottom: 0.5em; - padding-left: 4px; - margin-top: 12pt; - font-weight: 700; - font-size: 2em; - font-family: Georgia, "Times New Roman", Times, serif; - background-color: #eee; - page-break-before: always; -} - -h2 a { - text-decoration: none; - color: black; -} - -h2 a:hover { - color: blue; - text-decoration: underline; -} - -h3 { - border-top: 1px solid gray; - color: #1e1c46; - margin-bottom: 0pt; - margin-top: 12pt; - padding-left: 0; - margin-left: 1em; - margin-top: 0.2em; - padding-bottom: 0.4em; - font-size: 1.5em; - font-family: Georgia, "Times New Roman", Times, serif; -} - -h3 a { - text-decoration: none; - color: black; -} - -h3 a:hover { - color: blue; - text-decoration: underline; -} - -h4 { - margin-left: 1.5em; - margin-bottom: 0pt; - margin-top: 12pt; - font-size: 1.0em; - font-weight: bolder; - font-family: Georgia, "Times New Roman", Times, serif; -} - -h4 a { - text-decoration: none; - color: black; -} - -h4 a:hover { - color: blue; - text-decoration: underline; -} - -h5, h6 { - margin-left: 1.8em; - margin-bottom: 0pt; - margin-top: 12pt; - padding-left: 0.75em; - font-size: x-small; - font-family: Georgia, "Times New Roman", Times, serif; -} - -p,pre,table,ul,ol,dl { - margin-left: 2em; -} - -/* - * Navigation sidebar on the left hand of most pages - */ - -td.sidebar1 { - background-color: #99CCFF; - font-weight: 700; - margin-top: 0px; - margin-bottom: 0px; - padding-top: 1em; - padding-left: 0.2em; - white-space: nowrap; -} - -td.sidebar2 { - background-color: #99CCFF; - margin-top: 0px; - margin-bottom: 0px; - margin-left: 0px; - padding-top: 1px; - padding-bottom: 1px; - padding-left: 1px; - padding-right: 0.5em; - white-space: nowrap; - text-decoration: none; - display: block; -} - -td.sidebar2:hover { - background-color: #EEEEFF; - padding-top: 1px; - padding-bottom: 1px; - padding-left: 1px; - padding-right: 0.5em; -} - -a.sidebar2 { - text-decoration: none; - display: block; - width: 100%; -} - -a.sidebar2:link { - color: #000099; - display: block; -} - -a.sidebar2:hover { - background-color: #EEEEFF; - display: block; -} - -.underlinehover:hover { - background-color: #EEEEFF; - text-decoration: underline; -} - -/* This is the faded header at the top */ - -td.fadedtop { - background-color: #006699; - background-image: url(http://www.icu-project.org/images/gr100.gif); -} - -/* Related site on the left */ - -p.relatedsite { - color: White; - font-weight: 700; - font-size: 10pt; - margin-top: 1em; - margin-bottom: 0; - padding-left: 0.2em; - white-space: nowrap; -} - -/* Related site on the left */ - -p.sidebar3 { - margin-top: 0.75em; - margin-bottom: 0; - padding-left: 0.8em; -} - -a.sidebar3 { - font-size: 0.9em; - text-decoration: none; -} - -a.sidebar3:link { - text-decoration: none; - color: White; -} - -a.sidebar3:hover { - text-decoration: underline; -} - -/* FAQ */ - -li.faq_contents { - font-weight: 500; -} - -p.faq_q { - font-weight: 700; - margin-bottom: 0px; -} - -p.faq_a { - margin-top: 0px; -} - -/* News items */ - -table.newsItem { - padding-left: 1em; - padding-right: 1em; - border-width: medium; -} - -th.newsItem { - background-color: #666666; - color: White; -} - -td.newsItem { - background-color: #CCCCCC; -} - -td.release-line,th.release-line { - padding-left: 0.5em; - padding-right: 0.5em; - white-space: nowrap; - border: 1px; -} - -.note { - font-style: italic; - font-size: small; - margin-left: 1em; -} - -samp { - margin-left: 1em; - margin-right: 2em; - border-style: groove; - padding: 1em; - display: block; - background-color: #EEEEEE -} - -table.rtable caption { - margin-left: 2px; - margin-right: 2px; - padding: 3px; - font-weight: bold; - background-color: #dee2ff; - text-align: left; -} - -table.rtable tr th { - background-color: #dee2ff; - text-align: left; -} - -table.rtable tr td { - background-color: #c0c0fd; - padding: 3px; -} - -table.rtable tr.broken td { - background-color: #fbb; - border: 1px dashed gray; - padding: 3px; - font-weight: bold; -} - -table.rtable tr.rarely td { - background-color: #efe9c2; - padding: 3px; - font-style: italic; -} - -/* APIChangeReport specific things */ - -.row0 { - background-color: white; -} - -.row1 { - background-color: #dfd; -} - -.verchange { - color: red; - font-weight: bold; - font-size: large; -} - -.stabchange { - color: red; - font-size: large; -} - -.bigwarn { - color: red; - background-color: white; - font-size: large; - margin: 0.5 em; -} - - -td.bornstable { - -} -td.bornstable .bigwarn { - font-size: small; - white-space: nowrap; -} - -table.genTable { - border-collapse: collapse; - border: 1px solid black; -} - -/* 'everything inc version */ - -table.gentable td { - border: 1px solid gray; - padding: 0.25em; - font-size: small; -} - -/* not version */ - -table.genTable td.file, -table.genTable td.proto { - border: none; - font-size: medium; -} - -table.genTable td.file { - font-family: monospace; - font-weight: bold; -} - -div.other .row0 { - background-color: white; -} - -div.other .row1 { - background-color: #ddf; -} - -table.docTable { - border-collapse: collapse; - border: 1px solid black; -} - -/* 'everything inc version */ - -table.docTable td, -table.docTable th { - border: 1px solid gray; - padding: 0.25em; - font-size: small; -} - -/* not version */ - -table.docTable td.file, -table.docTable td.proto { - border: none; - font-size: medium; -} - -table.docTable td.file { - font-family: monospace; - font-weight: bold; -} - -abbr { - border-bottom: 1px dashed #0B0; -} - -h2.TOC { - page-break-before: auto; -} - -body.readme { - -} - -caption { - font-weight: bold; - text-align: left -} - -div.indent { - margin-left: 2em -} - -ul.TOC { - list-style-type: none; - padding-left: 1em; - font-size: larger; -} - -ul.TOC li a { - font-weight: bold; -} - -ul.TOC li ul li a { - font-weight: normal; - list-style-type: none; - font-size: small; -} - -ul.TOC li ul { - margin-left: 0; - padding-left: 2em; - font-weight: normal; - list-style-type: none; -} - -pre.samp,samp { - margin-left: 1em; - border-style: groove; - padding: 1em; - display: block; - background-color: #EEEEEE -} - -td.proto { - font-size: smaller; -} - - - -@media print { - div#toc { - display: none; - } - - table,tr,td,div { - page-break-inside: auto; - } -} diff --git a/intl/icu/license.html b/intl/icu/license.html deleted file mode 100644 --- a/intl/icu/license.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - -ICU License - ICU 1.8.1 and later - - - -

ICU License - ICU 1.8.1 and later

- -

COPYRIGHT AND PERMISSION NOTICE

- -

-Copyright (c) 1995-2012 International Business Machines Corporation and others -

-

-All rights reserved. -

-

-Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Software, and to permit persons -to whom the Software is furnished to do so, provided that the above -copyright notice(s) and this permission notice appear in all copies -of the Software and that both the above copyright notice(s) and this -permission notice appear in supporting documentation. -

-

-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL -THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, -OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER -RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE -USE OR PERFORMANCE OF THIS SOFTWARE. -

-

-Except as contained in this notice, the name of a copyright holder shall not be -used in advertising or otherwise to promote the sale, use or other dealings in -this Software without prior written authorization of the copyright holder. -

- -
-

-All trademarks and registered trademarks mentioned herein are the property of their respective owners. -

- -
- -

Third-Party Software Licenses

-This section contains third-party software notices and/or additional terms for licensed -third-party software components included within ICU libraries. - -

1. Unicode Data Files and Software

- -

EXHIBIT 1
-UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE

-
-

Unicode Data Files include all data files under the directories -http://www.unicode.org/Public/, -http://www.unicode.org/reports/, -and - -http://www.unicode.org/cldr/data/. Unicode Data Files do not include PDF online code charts under the directory http://www.unicode.org/Public/. Software includes any source code -published in the Unicode Standard or under the directories http://www.unicode.org/Public/, -http://www.unicode.org/reports/, -and - -http://www.unicode.org/cldr/data/.

- -

NOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.

-

COPYRIGHT AND PERMISSION NOTICE

- -

Copyright © 1991-2012 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in -http://www.unicode.org/copyright.html.

- -

Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and -any associated documentation (the "Data Files") or Unicode software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that (a) the above copyright notice(s) and this permission notice appear -with all copies of the Data Files or Software, (b) both the above copyright notice(s) and this permission notice appear in associated documentation, and (c) there is clear notice in each modified Data File or in the Software as well as in the documentation associated with the Data File(s) or Software that the data or software has been modified.

- -

THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THE DATA FILES OR SOFTWARE.

- -

Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder.

- -
- -

Unicode and the Unicode logo are trademarks of Unicode, Inc. in the United States and other countries. All third party trademarks referenced herein are the property of their respective owners.

- - -
- -

2. Chinese/Japanese Word Break Dictionary Data (cjdict.txt)

-
- #    The Google Chrome software developed by Google is licensed under the BSD license. Other software included in this distribution is provided under other licenses, as set forth below.
- #	
- #	The BSD License
- #	http://opensource.org/licenses/bsd-license.php 
- #	Copyright (C) 2006-2008, Google Inc.
- #	
- #	All rights reserved.
- #	
- #	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- #	
- #	Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- #	Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- #	Neither the name of  Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- #	 
- #	
- #	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- #	
- #	                                             
- #	The word list in cjdict.txt are generated by combining three word lists listed
- #	below with further processing for compound word breaking. The frequency is generated
- #	with an iterative training against Google web corpora. 
- #	
- #	* Libtabe (Chinese)
- #	  - https://sourceforge.net/project/?group_id=1519
- #	  - Its license terms and conditions are shown below.
- #	
- #	* IPADIC (Japanese)
- #	  - http://chasen.aist-nara.ac.jp/chasen/distribution.html
- #	  - Its license terms and conditions are shown below.
- #	
- #	---------COPYING.libtabe ---- BEGIN--------------------
- #	
- #	/*
- #	 * Copyrighy (c) 1999 TaBE Project.
- #	 * Copyright (c) 1999 Pai-Hsiang Hsiao.
- #	 * All rights reserved.
- #	 *
- #	 * Redistribution and use in source and binary forms, with or without
- #	 * modification, are permitted provided that the following conditions
- #	 * are met:
- #	 *
- #	 * . Redistributions of source code must retain the above copyright
- #	 *   notice, this list of conditions and the following disclaimer.
- #	 * . Redistributions in binary form must reproduce the above copyright
- #	 *   notice, this list of conditions and the following disclaimer in
- #	 *   the documentation and/or other materials provided with the
- #	 *   distribution.
- #	 * . Neither the name of the TaBE Project nor the names of its
- #	 *   contributors may be used to endorse or promote products derived
- #	 *   from this software without specific prior written permission.
- #	 *
- #	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- #	 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- #	 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- #	 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- #	 * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- #	 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- #	 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- #	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- #	 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- #	 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- #	 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- #	 * OF THE POSSIBILITY OF SUCH DAMAGE.
- #	 */
- #	
- #	/*
- #	 * Copyright (c) 1999 Computer Systems and Communication Lab,
- #	 *                    Institute of Information Science, Academia Sinica.
- #	 * All rights reserved.
- #	 *
- #	 * Redistribution and use in source and binary forms, with or without
- #	 * modification, are permitted provided that the following conditions
- #	 * are met:
- #	 *
- #	 * . Redistributions of source code must retain the above copyright
- #	 *   notice, this list of conditions and the following disclaimer.
- #	 * . Redistributions in binary form must reproduce the above copyright
- #	 *   notice, this list of conditions and the following disclaimer in
- #	 *   the documentation and/or other materials provided with the
- #	 *   distribution.
- #	 * . Neither the name of the Computer Systems and Communication Lab
- #	 *   nor the names of its contributors may be used to endorse or
- #	 *   promote products derived from this software without specific
- #	 *   prior written permission.
- #	 *
- #	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- #	 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- #	 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- #	 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- #	 * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- #	 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- #	 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- #	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- #	 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- #	 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- #	 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- #	 * OF THE POSSIBILITY OF SUCH DAMAGE.
- #	 */
- #	
- #	Copyright 1996 Chih-Hao Tsai @ Beckman Institute, University of Illinois
- #	c-tsai4@uiuc.edu  http://casper.beckman.uiuc.edu/~c-tsai4
- #	
- #	---------------COPYING.libtabe-----END------------------------------------
- #	
- #	
- #	---------------COPYING.ipadic-----BEGIN------------------------------------
- #	
- #	Copyright 2000, 2001, 2002, 2003 Nara Institute of Science
- #	and Technology.  All Rights Reserved.
- #	
- #	Use, reproduction, and distribution of this software is permitted.
- #	Any copy of this software, whether in its original form or modified,
- #	must include both the above copyright notice and the following
- #	paragraphs.
- #	
- #	Nara Institute of Science and Technology (NAIST),
- #	the copyright holders, disclaims all warranties with regard to this
- #	software, including all implied warranties of merchantability and
- #	fitness, in no event shall NAIST be liable for
- #	any special, indirect or consequential damages or any damages
- #	whatsoever resulting from loss of use, data or profits, whether in an
- #	action of contract, negligence or other tortuous action, arising out
- #	of or in connection with the use or performance of this software.
- #	
- #	A large portion of the dictionary entries
- #	originate from ICOT Free Software.  The following conditions for ICOT
- #	Free Software applies to the current dictionary as well.
- #	
- #	Each User may also freely distribute the Program, whether in its
- #	original form or modified, to any third party or parties, PROVIDED
- #	that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
- #	on, or be attached to, the Program, which is distributed substantially
- #	in the same form as set out herein and that such intended
- #	distribution, if actually made, will neither violate or otherwise
- #	contravene any of the laws and regulations of the countries having
- #	jurisdiction over the User or the intended distribution itself.
- #	
- #	NO WARRANTY
- #	
- #	The program was produced on an experimental basis in the course of the
- #	research and development conducted during the project and is provided
- #	to users as so produced on an experimental basis.  Accordingly, the
- #	program is provided without any warranty whatsoever, whether express,
- #	implied, statutory or otherwise.  The term "warranty" used herein
- #	includes, but is not limited to, any warranty of the quality,
- #	performance, merchantability and fitness for a particular purpose of
- #	the program and the nonexistence of any infringement or violation of
- #	any right of any third party.
- #	
- #	Each user of the program will agree and understand, and be deemed to
- #	have agreed and understood, that there is no warranty whatsoever for
- #	the program and, accordingly, the entire risk arising from or
- #	otherwise connected with the program is assumed by the user.
- #	
- #	Therefore, neither ICOT, the copyright holder, or any other
- #	organization that participated in or was otherwise related to the
- #	development of the program and their respective officials, directors,
- #	officers and other employees shall be held liable for any and all
- #	damages, including, without limitation, general, special, incidental
- #	and consequential damages, arising out of or otherwise in connection
- #	with the use or inability to use the program or any product, material
- #	or result produced or otherwise obtained by using the program,
- #	regardless of whether they have been advised of, or otherwise had
- #	knowledge of, the possibility of such damages at any time during the
- #	project or thereafter.  Each user will be deemed to have agreed to the
- #	foregoing by his or her commencement of use of the program.  The term
- #	"use" as used herein includes, but is not limited to, the use,
- #	modification, copying and distribution of the program and the
- #	production of secondary products from the program.
- #	
- #	In the case where the program, whether in its original form or
- #	modified, was distributed or delivered to or received by a user from
- #	any person, organization or entity other than ICOT, unless it makes or
- #	grants independently of ICOT any specific warranty to the user in
- #	writing, such person, organization or entity, will also be exempted
- #	from and not be held liable to the user for any such damages as noted
- #	above as far as the program is concerned.
- #	
- #	---------------COPYING.ipadic-----END------------------------------------
-
- -

3. Time Zone Database

-

ICU uses the public domain data and code derived from -Time Zone Database for its time zone support. The ownership of the TZ database is explained -in BCP 175: Procedure for Maintaining the Time Zone -Database section 7.

- -

-7.  Database Ownership
-
-   The TZ database itself is not an IETF Contribution or an IETF
-   document.  Rather it is a pre-existing and regularly updated work
-   that is in the public domain, and is intended to remain in the public
-   domain.  Therefore, BCPs 78 [RFC5378] and 79 [RFC3979] do not apply
-   to the TZ Database or contributions that individuals make to it.
-   Should any claims be made and substantiated against the TZ Database,
-   the organization that is providing the IANA Considerations defined in
-   this RFC, under the memorandum of understanding with the IETF,
-   currently ICANN, may act in accordance with all competent court
-   orders.  No ownership claims will be made by ICANN or the IETF Trust
-   on the database or the code.  Any person making a contribution to the
-   database or code waives all rights to future claims in that
-   contribution or in the TZ Database.
-
-
- - - - diff --git a/intl/icu/packaging/PACKAGES b/intl/icu/packaging/PACKAGES deleted file mode 100644 --- a/intl/icu/packaging/PACKAGES +++ /dev/null @@ -1,159 +0,0 @@ -Copyright (C) 2000-2003, International Business Machines -Corporation and others. All Rights Reserved. -ICU is packaged into a number of small, interdependent packages. This -file describes what these packages are, what their name should be -like, and what their contents are. It is useful as a reference and a -guide when packaging ICU on a new system. - -+ List of ICU packages. - -ICU is distributed as the following packages: - -- ICU libraries. This package contains the runtime libraries needed by -applications that use ICU. All the other packages require this package -to be installed. -- ICU. This package contains the converters data, the timezones data, -and all the ICU tools. -- ICU locales. This package adds locales and break data. -- ICU development. This package contains the files necessary to build -applications that use ICU, i.e. header files, links to shared -libraries used by the linker, static libraries, etc... It also -contains sample applications and documentation. -- ICU docs. This package contains further documentation for ICU, -including a complete API reference. -- ICU data. This package contains the source for the compiled data -contained by the ICU package. -- ICU international data. This package contains the source for the -compiled data contained by the ICU locales package. - -In this file, we will refer to Autoconf variables as in $(bindir). In -addition to these, we will use the following variables to denote -ICU-specific directories or information: - - VERSION ICU's dotted version number, e.g. 1.6.0.1 as of this - writing. - - ICUDATADIR The directory where portable ICU data are. This is - defined as $(datadir)/icu/$(VERSION). - ICULIBDIR The directory where platform-specific ICU data - are. This is defined as $(libdir)/icu/$(VERSION). - ICUSYSCONFDIR The directory where ICU configuration files are. This - is defined as $(sysconfdir)/icu. - -When referring to libraries, .so will be used to denote the extension -of a shared library, and .a to denote the extension of a static -library. These extensions will actually be different on some platforms. - -+ Configuration and compilation of ICU - -ICU should be configured with the following options: - - --with-data-packaging=files - --disable-rpath - --enable-shared - --enable-static - --without-samples - -in addition to platform-specific settings (like a specific mandir or -sysconfdir). Note that the use of --disable-rpath assumes that the -packaging is made for a standard location, or that the package -installation/deinstallation will correctly manage the configuration -of the system's dyanmic loader. This is the right way of doing things. - -The configure script invokation should also be done with - - CFLAGS="-O2" - -set, as in: - - $ CFLAGS="-O2" ./configure ... - -The files packaging mode is chosen because it offers the maximum -flexibility. Packages can be split easily, and system administrators -can add converters, aliases, and other resources with little -effort. Ideally, the ICU build will be modified to allow for distributing a -libicudata.so with all the converters and locales, but indexes and aliases -as separate files. But for now, this is the easiest way to get started. - -+ The ICU libraries package - -The ICU libraries package is typically named `libicuXX' where XX is -the major number of ICU's libraries. This number is ICU's version -number multiplied by 10 and rounded down to the nearest integer (it is -also the value of the LIB_VERSION_MAJOR configure substitution -variable). For example, for ICU 1.6.0.1, it is 16, so the package name -is `libicu16'. The major version is part of the package name to allow -for the simultaneous installation of different ICU releases. - -This package contains: - -- All the shared libraries, and their major number symbolic link, but -not the .so symbolic link that is only used at link time (this one is -part of the development package). These are $(libdir)/libicu*.so.* and -$(libdir)/libustdio.so.* at the time of this writing. - -+ The ICU package - -The ICU package is simply named `icu'. It provides data used by the ICU -libraries package and commands to create and manipulate that data. - -This package contains: - -- The Unicode data files (uprops.dat and unames.dat as of this writing). -- The time zones data files (tz.dat). -- All the binary data files for converters (.cnv files). -- All the ICU commands. -- The manual pages for ICU commands and file formats. - -+ The ICU locales package - -The ICU locales package is named `icu-locales'. It provides data used by -internationalization support in ICU. - -This package contains: - -- All the data for locales in ICU (.dat files). -- All the break data for specific locales (.brk files). - -+ The ICU development package - -The ICU developpment package is named `libicu-dev'. It provides all -the files necessary to write applications that use ICU, along with -examples and some documentation. - -This package contains: - -- The /usr/include/unicode directory which contains all the ICU -headers. -- The .so symbolic links used by the linker to link against the -latest version of the libraries. -- A sample Makefile fragment that can be included by applications -using ICU, to faciliate their building, along with a platform-specific -configuration file included by this fragment. -- The sample applications from the ICU source tree, in an appropriate -location for the system that the package is installed on (for example, -on Debian, in /usr/share/doc/libicu-dev/examples). - -This package depends on the ICU libraries package with the exact same -version, since it provides .so symbolic links to the latest libraries. - -+ The ICU docs package - -The ICU docs package is named `libicu-doc'. It contains the files -generated by doxygen when the `make doc' command is executed, in a -location appropriate for the system that the package is installed on. - -+ The ICU data package - -The ICU data package is named `icu-data'. It contains source files for -the data found in the ICU package. These files are installed in -$(ICUDATADIR). - -+ The ICU international data package - -The ICU data package is named `icu-i18ndata'. It contains source files for -the dat founf in the ICU locales package. These files are installed in -$(ICUDATADIR). - ----- -Yves Arrouye diff --git a/intl/icu/packaging/README b/intl/icu/packaging/README deleted file mode 100644 --- a/intl/icu/packaging/README +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (C) 2000-2003, International Business Machines -Corporation and others. All Rights Reserved. - -This directory contains information, input files and scripts for -packaging ICU using specific packaging tools. We assume that the -packager is familiar with the tools and procedures needed to build a -package for a given packaging method (for example, how to use -dpkg-buildpackage(1) on Debian GNU/Linux, or rpm(8) on distributions that -use RPM packages). - -Please read the file PACKAGES if you are interested in packaging ICU -yourself. It describes what the different packages should be, and what -their contents are. diff --git a/intl/icu/packaging/rpm/icu.spec b/intl/icu/packaging/rpm/icu.spec deleted file mode 100644 --- a/intl/icu/packaging/rpm/icu.spec +++ /dev/null @@ -1,228 +0,0 @@ -# Copyright (C) 2000-2005, International Business Machines -# Corporation and others. All Rights Reserved. -# -# RPM specification file for ICU. -# -# Neal Probert is the current maintainer. -# Yves Arrouye is the original author. - -# This file can be freely redistributed under the same license as ICU. - -Name: icu -Version: 3.4 -Release: 1 -Requires: libicu34 >= %{version} -Summary: International Components for Unicode -Packager: Ian Holsman (CNET Networks) -Copyright: X License -Group: System Environment/Libraries -Source: icu-%{version}.tgz -BuildRoot: /var/tmp/%{name}-%{version} -%description -ICU is a set of C and C++ libraries that provides robust and full-featured -Unicode and locale support. The library provides calendar support, conversions -for many character sets, language sensitive collation, date -and time formatting, support for many locales, message catalogs -and resources, message formatting, normalization, number and currency -formatting, time zones support, transliteration, word, line and -sentence breaking, etc. - -This package contains the Unicode character database and derived -properties, along with converters and time zones data. - -This package contains the runtime libraries for ICU. It does -not contain any of the data files needed at runtime and present in the -`icu' and `icu-locales` packages. - -%package -n libicu34 -Summary: International Components for Unicode (libraries) -Group: Development/Libraries -%description -n libicu34 -ICU is a set of C and C++ libraries that provides robust and full-featured -Unicode support. This package contains the runtime libraries for ICU. It does -not contain any of the data files needed at runtime and present in the -`icu' and `icu-locales` packages. - -%package -n libicu-devel -Summary: International Components for Unicode (development files) -Group: Development/Libraries -Requires: libicu34 = %{version} -%description -n libicu-devel -ICU is a set of C and C++ libraries that provides robust and full-featured -Unicode support. This package contains the development files for ICU. - -%package locales -Summary: Locale data for ICU -Group: System Environment/Libraries -Requires: libicu34 >= %{version} -%description locales -The locale data are used by ICU to provide localization (l10n), -internationalization (i18n) and timezone support to ICU applications. -This package also contains break data for various languages, -and transliteration data. - -%post -# Adjust the current ICU link in /usr/lib/icu - -icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` -cd /usr/lib/icu -rm -f /usr/lib/icu/current -if test x"$icucurrent" != x -then - ln -s "$icucurrent" current -fi - -#ICU_DATA=/usr/share/icu/%{version} -#export ICU_DATA - -%preun -# Adjust the current ICU link in /usr/lib/icu - -icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` -cd /usr/lib/icu -rm -f /usr/lib/icu/current -if test x"$icucurrent" != x -then - ln -s "$icucurrent" current -fi - -%post -n libicu34 -ldconfig - -# Adjust the current ICU link in /usr/lib/icu - -icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` -cd /usr/lib/icu -rm -f /usr/lib/icu/current -if test x"$icucurrent" != x -then - ln -s "$icucurrent" current -fi - -%preun -n libicu34 -# Adjust the current ICU link in /usr/lib/icu - -icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` -cd /usr/lib/icu -rm -f /usr/lib/icu/current -if test x"$icucurrent" != x -then - ln -s "$icucurrent" current -fi - -%prep -%setup -q -n icu - -%build -cd source -chmod a+x ./configure -CFLAGS="-O3" CXXFLAGS="-O" ./configure --prefix=/usr --sysconfdir=/etc --with-data-packaging=files --enable-shared --enable-static --disable-samples -echo 'CPPFLAGS += -DICU_DATA_DIR=\"/usr/share/icu/%{version}\"' >> icudefs.mk -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" - -%install -rm -rf $RPM_BUILD_ROOT -cd source -make install DESTDIR=$RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc readme.html -%doc license.html -/usr/share/icu/%{version}/license.html -/usr/share/icu/%{version}/icudt34l/*.cnv -/usr/share/icu/%{version}/icudt34l/*.icu -/usr/share/icu/%{version}/icudt34l/*.spp - -/usr/bin/derb -/usr/bin/genbrk -/usr/bin/gencnval -/usr/bin/genrb -/usr/bin/icu-config -/usr/bin/makeconv -/usr/bin/pkgdata -/usr/bin/uconv - -/usr/sbin/decmn -/usr/sbin/genccode -/usr/sbin/gencmn -/usr/sbin/gensprep -/usr/sbin/genuca -/usr/sbin/icuswap -/usr/share/icu/%{version}/mkinstalldirs - -/usr/man/man1/derb.1.* -/usr/man/man1/gencnval.1.* -/usr/man/man1/genrb.1.* -/usr/man/man1/icu-config.1.* -/usr/man/man1/makeconv.1.* -/usr/man/man1/pkgdata.1.* -/usr/man/man1/uconv.1.* -/usr/man/man8/decmn.8.* -/usr/man/man8/genccode.8.* -/usr/man/man8/gencmn.8.* -/usr/man/man8/gensprep.8.* -/usr/man/man8/genuca.8.* - -%files -n icu-locales -/usr/share/icu/%{version}/icudt34l/*.brk -/usr/share/icu/%{version}/icudt34l/*.res -/usr/share/icu/%{version}/icudt34l/coll/*.res -/usr/share/icu/%{version}/icudt34l/rbnf/*.res -/usr/share/icu/%{version}/icudt34l/translit/*.res - -%files -n libicu34 -%doc license.html -/usr/lib/libicui18n.so.34 -/usr/lib/libicui18n.so.34.0 -/usr/lib/libicutu.so.34 -/usr/lib/libicutu.so.34.0 -/usr/lib/libicuuc.so.34 -/usr/lib/libicuuc.so.34.0 -/usr/lib/libicudata.so.34 -/usr/lib/libicudata.so.34.0 -/usr/lib/libicuio.so.34 -/usr/lib/libicuio.so.34.0 -/usr/lib/libiculx.so.34 -/usr/lib/libiculx.so.34.0 -/usr/lib/libicule.so.34 -/usr/lib/libicule.so.34.0 - -%files -n libicu-devel -%doc readme.html -%doc license.html -/usr/lib/libicui18n.so -/usr/lib/libsicui18n.a -/usr/lib/libicuuc.so -/usr/lib/libsicuuc.a -/usr/lib/libicutu.so -/usr/lib/libsicutu.a -/usr/lib/libicuio.so -/usr/lib/libsicuio.a -/usr/lib/libicudata.so -/usr/lib/libsicudata.a -/usr/lib/libicule.so -/usr/lib/libsicule.a -/usr/lib/libiculx.so -/usr/lib/libsiculx.a -/usr/include/unicode/*.h -/usr/include/layout/*.h -/usr/lib/icu/%{version}/Makefile.inc -/usr/lib/icu/Makefile.inc -/usr/share/icu/%{version}/config -/usr/share/doc/icu-%{version}/* - -%changelog -* Mon Jun 07 2004 Alexei Dets -- update to 3.0 -* Tue Aug 16 2003 Steven Loomis -- update to 2.6.1 - include license -* Thu Jun 05 2003 Steven Loomis -- Update to 2.6 -* Fri Dec 27 2002 Steven Loomis -- Update to 2.4 spec -* Fri Sep 27 2002 Steven Loomis -- minor updates to 2.2 spec. Rpath is off by default, don't pass it as an option. -* Mon Sep 16 2002 Ian Holsman -- update to icu 2.2 - diff --git a/intl/icu/readme.html b/intl/icu/readme.html deleted file mode 100644 --- a/intl/icu/readme.html +++ /dev/null @@ -1,1773 +0,0 @@ - - - - - ReadMe for ICU 50.1.2 - - - - - - - - -

International Components for Unicode
- ICU 50.1.2 ReadMe

- - - - -

Last updated: 2013-Jan-10
- Copyright © 1997-2013 International Business Machines Corporation and - others. All Rights Reserved.

- -
- -

Table of Contents

- - -
- -

Introduction

- -

Today's software market is a global one in which it is desirable to - develop and maintain one application (single source/single binary) that - supports a wide variety of languages. The International Components for - Unicode (ICU) libraries provide robust and full-featured Unicode services on - a wide variety of platforms to help this design goal. The ICU libraries - provide support for:

- -
    -
  • The latest version of the Unicode standard
  • - -
  • Character set conversions with support for over 220 codepages
  • - -
  • Locale data for more than 290 locales
  • - -
  • Language sensitive text collation (sorting) and searching based on the - Unicode Collation Algorithm (=ISO 14651)
  • - -
  • Regular expression matching and Unicode sets
  • - -
  • Transformations for normalization, upper/lowercase, script - transliterations (50+ pairs)
  • - -
  • Resource bundles for storing and accessing localized information
  • - -
  • Date/Number/Message formatting and parsing of culture specific - input/output formats
  • - -
  • Calendar specific date and time manipulation
  • - -
  • Complex text layout for Arabic, Hebrew, Indic and Thai
  • - -
  • Text boundary analysis for finding characters, word and sentence - boundaries
  • -
- -

ICU has a sister project ICU4J that extends the internationalization - capabilities of Java to a level similar to ICU. The ICU C/C++ project is also - called ICU4C when a distinction is necessary.

- -

Getting started

- -

This document describes how to build and install ICU on your machine. For - other information about ICU please see the following table of links.
- The ICU homepage also links to related information about writing - internationalized software.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Here are some useful links regarding ICU and internationalization in - general. -
ICU, ICU4C & ICU4J Homepagehttp://icu-project.org/
FAQ - Frequently Asked Questions about ICUhttp://userguide.icu-project.org/icufaq
ICU User's Guidehttp://userguide.icu-project.org/
How To Use ICUhttp://userguide.icu-project.org/howtouseicu
Download ICU Releaseshttp://site.icu-project.org/download
ICU4C API Documentation Onlinehttp://icu-project.org/apiref/icu4c/
Online ICU Demoshttp://demo.icu-project.org/icu-bin/icudemos
Contacts and Bug Reports/Feature Requestshttp://site.icu-project.org/contacts
- -

Important: Please make sure you understand the Copyright and License Information.

- -

What is new in this - release?

- -

To see which APIs are new or changed in this release, view the ICU4C API Change Report.

- -

The following list concentrates on changes that affect existing - applications migrating from previous ICU releases. - For more news about this release, see the - - ICU milestone download page. -

- -

Thread safety support cannot be removed

-

ICU4C 50 dropped support for the --enable-threads/--disable-threads configure option - and the uconfig.h ICU_USE_THREADS switch. - ICU4C 50 and higher is always built with multi-threading safety support. - ICU4C has never created threads in its libraries.

- -

If you need to prevent ICU from using thread safe mutexes when your application does - not create threads, then you can use the --enable-weak-threads configure option. - The --enable-weak-threads configure option will cause ICU to weakly reference the - pthread mutex functions, and the stub implementations in the C runtime will be used. - If this configure option does not work on your platform, then you can call - u_setMutexFunctions() and u_setAtomicIncDecFunctions() - with your own empty implementations.

- -

The default compilers have changed

-

ICU has changed the compilers chosen by default. If the clang and clang++ compilers - are available, those will be used instead of gcc and g++. If the clang compilers - are not available, then gcc and g++ will be used just as before. The clang++ compiler - provides C++11 support and some optimizations that are helpful to ICU. The API - remains the same between these two sets of compilers, but ICU can internally leverage - language features and optimizations that are available in clang++.

- -

If you need to force ICU to compile with gcc and g++, then you can use the following - from the command line in the source directory:

- -
-./configure CC=gcc CXX=g++ CFLAGS=-O3 CXXFLAGS=-O3
-
- -

C++ Collator subclassing-API breaking changes

-

We have made some changes to the C++ Collator API for ICU 50 - that will make it easier to use and implement the Collator but - which are incompatible for subclasses. - If there are subclasses, they will have to be modified as well. - It will be easy to adapt subclass source code, if there is any. - We think it is unlikely (or at least rare) that users write subclasses of the C++ Collator, - given the number of virtual methods and the complexities of a collation implementation.

- -

For details see the email "ICU4C C++ Collator subclassing-API breaking changes" - sent on 2012-jul-25 to the icu-design and icu-support - mailing lists, - and ICU ticket #9346, - including the changes for that ticket.

- -

In particular, the class TestCollator in - source/test/intltest/apicoll.cpp - illustrates how a subclass needs to be changed. - However, note that the TestCollator was also simplified slightly; - not all changes made there were strictly required for the API signature changes.

- -

How To Download the - Source Code

- -

There are two ways to download ICU releases:

- -
    -
  • Official Release Snapshot:
    - If you want to use ICU (as opposed to developing it), you should download - an official packaged version of the ICU source code. These versions are - tested more thoroughly than day-to-day development builds of the system, - and they are packaged in zip and tar files for convenient download. These - packaged files can be found at http://site.icu-project.org/download.
    - The packaged snapshots are named icu-nnnn.zip or - icu-nnnn.tgz, where nnnn is the version number. The .zip - file is used for Windows platforms, while the .tgz file is preferred on - most other platforms.
    - Please unzip this file.
  • - -
  • Subversion Source Repository:
    - If you are interested in developing features, patches, or bug fixes for - ICU, you should probably be working with the latest version of the ICU - source code. You will need to check the code out of our Subversion repository to - ensure that you have the most recent version of all of the files. See our - source - repository for details.
  • -
- -

ICU Source Code - Organization

- -

In the descriptions below, <ICU> is the full - path name of the ICU directory (the top level directory from the distribution - archives) in your file system. You can also view the ICU Architectural - Design section of the User's Guide to see which libraries you need for - your software product. You need at least the data ([lib]icudt) - and the common ([lib]icuuc) libraries in order to use ICU.

- - - - - - - - - - - - - - - - - - - - - -
- The following files describe the code drop. -
FileDescription
readme.htmlDescribes the International Components for Unicode (this file)
license.htmlContains the text of the ICU license
- -


-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- The following directories contain source code and data files. -
DirectoryDescription
<ICU>/source/common/The core Unicode and support functionality, such as resource bundles, - character properties, locales, codepage conversion, normalization, - Unicode properties, Locale, and UnicodeString.
<ICU>/source/i18n/Modules in i18n are generally the more data-driven, that is to say - resource bundle driven, components. These deal with higher-level - internationalization issues such as formatting, collation, text break - analysis, and transliteration.
<ICU>/source/layout/Contains the ICU layout engine (not a rasterizer).
<ICU>/source/io/Contains the ICU I/O library.
<ICU>/source/data/ -

This directory contains the source data in text format, which is - compiled into binary form during the ICU build process. It contains - several subdirectories, in which the data files are grouped by - function. Note that the build process must be run again after any - changes are made to this directory.

- -

If some of the following directories are missing, it's probably - because you got an official download. If you need the data source files - for customization, then please download the ICU source code from subversion.

- -
    -
  • in/ A directory that contains a pre-built data library for - ICU. A standard source code package will contain this file without - several of the following directories. This is to simplify the build - process for the majority of users and to reduce platform porting - issues.
  • - -
  • brkitr/ Data files for character, word, sentence, title - casing and line boundary analysis.
  • - -
  • locales/ These .txt files contain ICU language and - culture-specific localization data. Two special bundles are - root, which is the fallback data and parent of other bundles, - and index, which contains a list of installed bundles. The - makefile resfiles.mk contains the list of resource bundle - files.
  • - -
  • mappings/ Here are the code page converter tables. These - .ucm files contain mappings to and from Unicode. These are compiled - into .cnv files. convrtrs.txt is the alias mapping table from - various converter name formats to ICU internal format and vice versa. - It produces cnvalias.icu. The makefiles ucmfiles.mk, - ucmcore.mk, and ucmebcdic.mk contain the list of - converters to be built.
  • - -
  • translit/ This directory contains transliterator rules as - resource bundles, a makefile trnsfiles.mk containing the list - of installed system translitaration files, and as well the special - bundle translit_index which lists the system transliterator - aliases.
  • - -
  • unidata/ This directory contains the Unicode data files. - Please see http://www.unicode.org/ for more - information.
  • - -
  • misc/ The misc directory contains other data files which - did not fit into the above categories. Currently it only contains - time zone information, and a name preperation file for IDNA.
  • - -
  • out/ This directory contains the assembled memory mapped - files.
  • - -
  • out/build/ This directory contains intermediate (compiled) - files, such as .cnv, .res, etc.
  • -
- -

If you are creating a special ICU build, you can set the ICU_DATA - environment variable to the out/ or the out/build/ directories, but - this is generally discouraged because most people set it incorrectly. - You can view the ICU Data - Management section of the ICU User's Guide for details.

-
<ICU>/source/test/intltest/A test suite including all C++ APIs. For information about running - the test suite, see the build instructions specific to your platform - later in this document.
<ICU>/source/test/cintltst/A test suite written in C, including all C APIs. For information - about running the test suite, see the build instructions specific to your - platform later in this document.
<ICU>/source/test/iotest/A test suite written in C and C++ to test the icuio library. For - information about running the test suite, see the build instructions - specific to your platform later in this document.
<ICU>/source/test/testdata/Source text files for data, which are read by the tests. It contains - the subdirectories out/build/ which is used for intermediate - files, and out/ which contains testdata.dat.
<ICU>/source/tools/Tools for generating the data files. Data files are generated by - invoking <ICU>/source/data/build/makedata.bat on Win32 or - <ICU>/source/make on UNIX.
<ICU>/source/samples/Various sample programs that use ICU
<ICU>/source/extra/Non-supported API additions. Currently, it contains the 'uconv' tool - to perform codepage conversion on files.
<ICU>/packaging/This directory contain scripts and tools for packaging the final - ICU build for various release platforms.
<ICU>/source/config/Contains helper makefiles for platform specific build commands. Used - by 'configure'.
<ICU>/source/allinone/Contains top-level ICU workspace and project files, for instance to - build all of ICU under one MSVC project.
<ICU>/include/Contains the headers needed for developing software that uses ICU on - Windows.
<ICU>/lib/Contains the import libraries for linking ICU into your Windows - application.
<ICU>/bin/Contains the libraries and executables for using ICU on Windows.
- - -

How To Build And - Install ICU

- -

Recommended Build Options

- -

Depending on the platform and the type of installation, - we recommend a small number of modifications and build options.

-
    -
  • Namespace: By default, unicode/uversion.h has - "using namespace icu;" which defeats much of the purpose of the namespace. - (This is for historical reasons: Originally, ICU4C did not use namespaces, - and some compilers did not support them. The default "using" statement - preserves source code compatibility.)
    - We recommend you turn this off via -DU_USING_ICU_NAMESPACE=0 - or by modifying unicode/uversion.h: -
    Index: source/common/unicode/uversion.h
    -===================================================================
    ---- source/common/unicode/uversion.h    (revision 26606)
    -+++ source/common/unicode/uversion.h    (working copy)
    -@@ -180,7 +180,8 @@
    - #   define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
    -
    - #   ifndef U_USING_ICU_NAMESPACE
    --#       define U_USING_ICU_NAMESPACE 1
    -+        // Set to 0 to force namespace declarations in ICU usage.
    -+#       define U_USING_ICU_NAMESPACE 0
    - #   endif
    - #   if U_USING_ICU_NAMESPACE
    -         U_NAMESPACE_USE
    -
    - ICU call sites then either qualify ICU types explicitly, - for example icu::UnicodeString, - or do using icu::UnicodeString; where appropriate.
  • -
  • Hardcode the default charset to UTF-8: On platforms where - the default charset is always UTF-8, - like MacOS X and some Linux distributions, - we recommend hardcoding ICU's default charset to UTF-8. - This means that some implementation code becomes simpler and faster, - and statically linked ICU libraries become smaller. - (See the U_CHARSET_IS_UTF8 - API documentation for more details.)
    - You can -DU_CHARSET_IS_UTF8=1 or - modify unicode/utypes.h (in ICU 4.8 and below) - or modify unicode/platform.h (in ICU 49 and higher): -
    Index: source/common/unicode/utypes.h
    -===================================================================
    ---- source/common/unicode/utypes.h      (revision 26606)
    -+++ source/common/unicode/utypes.h      (working copy)
    -@@ -160,7 +160,7 @@
    -  * @see UCONFIG_NO_CONVERSION
    -  */
    - #ifndef U_CHARSET_IS_UTF8
    --#   define U_CHARSET_IS_UTF8 0
    -+#   define U_CHARSET_IS_UTF8 1
    - #endif
    -
    - /*===========================================================================*/
    -
  • -
  • UnicodeString constructors: The UnicodeString class has - several single-argument constructors that are not marked "explicit" - for historical reasons. - This can lead to inadvertent construction of a UnicodeString - with a single character by using an integer, - and it can lead to inadvertent dependency on the conversion framework - by using a C string literal.
    - Beginning with ICU 49, you should do the following: -
      -
    • Consider marking the from-UChar - and from-UChar32 constructors explicit via - -DUNISTR_FROM_CHAR_EXPLICIT=explicit or similar.
    • -
    • Consider marking the from-const char* and - from-const UChar* constructors explicit via - -DUNISTR_FROM_STRING_EXPLICIT=explicit or similar.
    • -
    - Note: The ICU test suites cannot be compiled with these settings. -
  • -
  • utf.h, utf8.h, utf16.h, utf_old.h: - By default, utypes.h (and thus almost every public ICU header) - includes all of these header files. - Often, none of them are needed, or only one or two of them. - All of utf_old.h is deprecated or obsolete.
    - Beginning with ICU 49, - you should define U_NO_DEFAULT_INCLUDE_UTF_HEADERS to 1 - (via -D or uconfig.h, as above) - and include those header files explicitly that you actually need.
    - Note: The ICU test suites cannot be compiled with this setting.
  • -
  • .dat file: By default, the ICU data is built into - a shared library (DLL). This is convenient because it requires no - install-time or runtime configuration, - but the library is platform-specific and cannot be modified. - A .dat package file makes the opposite trade-off: - Platform-portable (except for endianness and charset family, which - can be changed with the icupkg tool) - and modifiable (also with the icupkg tool). - If a path is set, then single data files (e.g., .res files) - can be copied to that location to provide new locale data - or conversion tables etc.
    - The only drawback with a .dat package file is that the application - needs to provide ICU with the file system path to the package file - (e.g., by calling u_setDataDirectory()) - or with a pointer to the data (udata_setCommonData()) - before other ICU API calls. - This is usually easy if ICU is used from an application where - main() takes care of such initialization. - It may be hard if ICU is shipped with - another shared library (such as the Xerces-C++ XML parser) - which does not control main().
    - See the User Guide ICU Data - chapter for more details.
    - If possible, we recommend building the .dat package. - Specify --with-data-packaging=archive - on the configure command line, as in
    - runConfigureICU Linux --with-data-packaging=archive
    - (Read the configure script's output for further instructions. - On Windows, the Visual Studio build generates both the .dat package - and the data DLL.)
    - Be sure to install and use the tiny stubdata library - rather than the large data DLL.
  • -
  • Static libraries: It may make sense to build the ICU code - into static libraries (.a) rather than shared libraries (.so/.dll). - Static linking reduces the overall size of the binary by removing - code that is never called.
    - Example configure command line:
    - runConfigureICU Linux --enable-static --disable-shared
  • -
  • Out-of-source build: It is usually desirable to keep the ICU - source file tree clean and have build output files written to - a different location. This is called an "out-of-source build". - Simply invoke the configure script from the target location: -
    ~/icu$ svn export http://source.icu-project.org/repos/icu/icu/trunk
    -~/icu$ mkdir trunk-dev
    -~/icu$ cd trunk-dev
    -~/icu/trunk-dev$ ../trunk/source/runConfigureICU Linux
    -~/icu/trunk-dev$ make check
  • -
-

ICU as a System-Level Library

-

If ICU is installed as a system-level library, there are further - opportunities and restrictions to consider. - For details, see the Using ICU as an Operating System Level Library - section of the User Guide ICU Architectural Design chapter.

-
    -
  • Data path: For a system-level library, it is best to load - ICU data from the .dat package file because the file system path - to the .dat package file can be hardcoded. ICU will automatically set - the path to the final install location using U_ICU_DATA_DEFAULT_DIR. - Alternatively, you can set -DICU_DATA_DIR=/path/to/icu/data - when building the ICU code. (Used by source/common/putil.c.)
    - Consider also setting -DICU_NO_USER_DATA_OVERRIDE - if you do not want the "ICU_DATA" environment variable to be used. - (An application can still override the data path via - u_setDataDirectory() or - udata_setCommonData().
  • -
  • Hide draft API: API marked with @draft - is new and not yet stable. Applications must not rely on unstable - APIs from a system-level library. - Define U_HIDE_DRAFT_API, U_HIDE_INTERNAL_API - and U_HIDE_SYSTEM_API - by modifying unicode/utypes.h before installing it.
  • -
  • Only C APIs: Applications must not rely on C++ APIs from a - system-level library because binary C++ compatibility - across library and compiler versions is very hard to achieve. - Most ICU C++ APIs are in header files that contain a comment with - \brief C++ API. - Consider not installing these header files.
  • -
  • Disable renaming: By default, ICU library entry point names - have an ICU version suffix. Turn this off for a system-level installation, - to enable upgrading ICU without breaking applications. For example:
    - runConfigureICU Linux --disable-renaming
    - The public header files from this configuration must be installed - for applications to include and get the correct entry point names.
  • -
- -

User-Configurable Settings

-

ICU4C can be customized via a number of user-configurable settings. - Many of them are controlled by preprocessor macros which are - defined in the source/common/unicode/uconfig.h header file. - Some turn off parts of ICU, for example conversion or collation, - trading off a smaller library for reduced functionality. - Other settings are recommended (see previous section) - but their default values are set for better source code compatibility.

- -

In order to change such user-configurable settings, you can - either modify the uconfig.h header file by adding - a specific #define ... for one or more of the macros - before they are first tested, - or set the compiler's preprocessor flags (CPPFLAGS) to include - an equivalent -D macro definition.

- -

How To Build And Install On Windows

- -

Building International Components for Unicode requires:

- -
    -
  • Microsoft Windows
  • - -
  • Microsoft Visual C++
  • - -
  • Cygwin is required when other versions - of Microsoft Visual C++ and other compilers are used to build ICU.
  • -
- -

The steps are:

- -
    -
  1. Unzip the icu-XXXX.zip file into any convenient location. Using command - line zip, type "unzip -a icu-XXXX.zip -d drive:\directory", or just use - WinZip.
  2. - -
  3. Be sure that the ICU binary directory, <ICU>\bin\, is - included in the PATH environment variable. The tests will - not work without the location of the ICU DLL files in the path.
  4. - -
  5. Open the "<ICU>\source\allinone\allinone.sln" workspace - file in Microsoft Visual Studio. (This solution includes all the - International Components for Unicode libraries, necessary ICU building - tools, and the test suite projects). Please see the command line note below if you want to - build from the command line instead.
  6. - -
  7. Set the active platform to "Win32" or "x64" (See Windows platform note below) - and configuration to "Debug" or "Release" (See Windows configuration note below).
  8. - -
  9. Choose the "Build" menu and select "Rebuild Solution". If you want to - build the Debug and Release at the same time, see the batch configuration note below.
  10. - - -
  11. Run the tests. They can be run from the command line or from within Visual Studio. - -

    Running the Tests from the Windows Command Line (cmd)

    -
      -
    • For x86 (32 bit) and Debug, use:
      - - <ICU>\source\allinone\icucheck.bat Platform Configuration -
      -
    • -
    • So, for example: -
      - <ICU>\source\allinone\icucheck.bat x86 Debug - -
      or
      - <ICU>\source\allinone\icucheck.bat x86 Release - -
      or
      - <ICU>\source\allinone\icucheck.bat x64 Release -
    • -
    - -

    Running the Tests from within Visual Studio

    - -
      -
    1. Run the C++ test suite, "intltest". To do this: set the active startup - project to "intltest", and press Ctrl+F5 to run it. Make sure that it - passes without any errors.
    2. - -
    3. Run the C test suite, "cintltst". To do this: set the active startup - project to "cintltst", and press Ctrl+F5 to run it. Make sure that it - passes without any errors.
    4. - -
    5. Run the I/O test suite, "iotest". To do this: set the active startup - project to "iotest", and press Ctrl+F5 to run it. Make sure that it passes - without any errors.
    6. - -
    - -
  12. - -
  13. You are now able to develop applications with ICU by using the - libraries and tools in <ICU>\bin\. The headers are in - <ICU>\include\ and the link libraries are in - <ICU>\lib\. To install the ICU runtime on a machine, or ship - it with your application, copy the needed components from - <ICU>\bin\ to a location on the system PATH or to your - application directory.
  14. -
- -

Using MSDEV At The Command Line - Note: You can build ICU from the command line. Assuming that you - have properly installed Microsoft Visual C++ to support command line - execution, you can run the following command, 'devenv.com - <ICU>\source\allinone\allinone.sln /build "Win32|Release"'. You can also - use Cygwin with this compiler to build ICU, and you can refer to the How To Build And Install On Windows with Cygwin - section for more details.

- -

Setting Active Platform - Note: Even though you are able to select "x64" as the active platform, if your operating system is - not a 64 bit version of Windows, the build will fail. To set the active platform, two different possibilities are:

- -
    -
  • Choose "Build" menu, select "Configuration Manager...", and select - "Win32" or "x64" for the Active Platform Solution.
  • - -
  • Another way is to select the desired build configuration from "Solution - Platforms" dropdown menu from the standard toolbar. It will say - "Win32" or "x64" in the dropdown list.
  • -
- -

Setting Active Configuration - Note: To set the active configuration, two different - possibilities are:

- -
    -
  • Choose "Build" menu, select "Configuration Manager...", and select - "Release" or "Debug" for the Active Configuration Solution.
  • - -
  • Another way is to select the desired build configuration from "Solution - Configurations" dropdown menu from the standard toolbar. It will say - "Release" or "Debug" in the dropdown list.
  • -
- -

Batch - Configuration Note: If you want to build the Win32 and x64 platforms and - Debug and Release configurations at the same time, choose "Build" menu, and select "Batch - Build...". Click the "Select All" button, and then click the "Rebuild" - button.

- -

How To Build And Install On Windows with Cygwin

- -

Building International Components for Unicode with this configuration - requires:

- -
    -
  • Microsoft Windows
  • - -
  • Microsoft Visual C++ (when gcc isn't used).
  • - -
  • - Cygwin with the following installed: - -
      -
    • bash
    • - -
    • GNU make
    • - -
    • ar
    • - -
    • ranlib
    • - -
    • man (if you plan to look at the man pages)
    • -
    -
  • -
- -

There are two ways you can build ICU with Cygwin. You can build with gcc - or Microsoft Visual C++. If you use gcc, the resulting libraries and tools - will depend on the Cygwin environment. If you use Microsoft Visual C++, the - resulting libraries and tools do not depend on Cygwin and can be more easily - distributed to other Windows computers (the generated man pages and shell - scripts still need Cygwin). To build with gcc, please follow the "How To Build And Install On UNIX" instructions, while - you are inside a Cygwin bash shell. To build with Microsoft Visual C++, - please use the following instructions:

- -
    -
  1. Start the Windows "Command Prompt" window. This is different from the - gcc build, which requires the Cygwin Bash command prompt. The Microsoft - Visual C++ compiler will not work with a bash command prompt.
  2. - -
  3. If the computer isn't set up to use Visual C++ from the command line, - you need to run vcvars32.bat.
    For example:
    "C:\Program Files\Microsoft - Visual Studio 8\VC\bin\vcvars32.bat" can be used for 32-bit builds - or
    "C:\Program Files (x86)\Microsoft Visual Studio - 8\VC\bin\amd64\vcvarsamd64.bat" can be used for 64-bit builds on - Windows x64.
  4. - -
  5. Unzip the icu-XXXX.zip file into any convenient location. Using command - line zip, type "unzip -a icu-XXXX.zip -d drive:\directory", or just use - WinZip.
  6. - -
  7. Change directory to "icu/source", which is where you unzipped ICU.
  8. - -
  9. Run "bash ./runConfigureICU - Cygwin/MSVC" (See Windows - configuration note and non-functional configure options below).
  10. - -
  11. Type "make" to compile the libraries and all the data files. - This make command should be GNU make.
  12. - -
  13. Optionally, type "make check" to run the test suite, which - checks for ICU's functionality integrity (See testing note below).
  14. - -
  15. Type "make install" to install ICU. If you used the --prefix= - option on configure or runConfigureICU, ICU will be installed to the - directory you specified. (See installation - note below).
  16. -
- -

Configuring ICU on Windows - NOTE:

-

- Ensure that the order of the PATH is MSVC, Cygwin, and then other PATHs. The configure - script needs certain tools in Cygwin (e.g. grep). -

-

- Also, you may need to run "dos2unix.exe" on all of the scripts (e.g. configure) - in the top source directory of ICU. To avoid this issue, you can download - the ICU source for Unix platforms (icu-xxx.tgz). -

-

In addition to the Unix configuration note the following configure options - currently do not work on Windows with Microsoft's compiler. Some options can - work by manually editing icu/source/common/unicode/pwin32.h, but - manually editing the files is not recommended.

- -
    -
  • --disable-renaming
  • - -
  • --enable-tracing
  • - -
  • --enable-rpath
  • - -
  • --enable-static (Requires that U_STATIC_IMPLEMENTATION be - defined in user code that links against ICU's static libraries.)
  • - -
  • --with-data-packaging=files (The pkgdata tool currently does - not work in this mode. Manual packaging is required to use this mode.)
  • -
- -

How - To Build And Install On UNIX

- -

Building International Components for Unicode on UNIX requires:

- -
    -
  • A C++ compiler installed on the target machine (for example: gcc, CC, - xlC_r, aCC, cxx, etc...).
  • - -
  • An ANSI C compiler installed on the target machine (for example: - cc).
  • - -
  • A recent version of GNU make (3.80+).
  • - -
  • For a list of z/OS tools please view the z/OS - build section of this document for further details.
  • -
- -

Here are the steps to build ICU:

- -
    -
  1. Decompress the icu-X.Y.tgz (or - icu-X.Y.tar.gz) file. For example, "gunzip -d < - icu-X.Y.tgz | tar xvf -"
  2. - -
  3. Change directory to the "icu/source".
  4. - -
  5. Run "chmod +x runConfigureICU configure install-sh" because - these files may have the wrong permissions.
  6. - -
  7. Run the runConfigureICU - script for your platform. (See configuration - note below).
  8. - -
  9. Type "gmake" (or "make" if GNU make is the default make on - your platform) to compile the libraries and all the data files. The proper - name of the GNU make command is printed at the end of the configuration - run, as in "You must use gmake to compile ICU". -
    - Note that the compilation command output may be simplified on your platform. If this is the case, you will see just: -

    gcc ... stubdata.c

    - rather than -

    gcc -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -D_REENTRANT -I../common -DU_ATTRIBUTE_DEPRECATED= -O2 -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -c -DPIC -fPIC -o stubdata.o stubdata.c

    - .
    - If you need to see the whole compilation line, use "gmake VERBOSE=1". The full compilation line will print if an error occurs. -
  10. - -
  11. Optionally, type "gmake check" to run the test suite, which - checks for ICU's functionality integrity (See testing note below).
  12. - -
  13. Type "gmake install" to install ICU. If you used the --prefix= - option on configure or runConfigureICU, ICU will be installed to the - directory you specified. (See installation - note below).
  14. -
- -

Configuring ICU - NOTE: Type "./runConfigureICU --help" for help on how - to run it and a list of supported platforms. You may also want to type - "./configure --help" to print the available configure options that - you may want to give runConfigureICU. If you are not using the - runConfigureICU script, or your platform is not supported by the script, you - may need to set your CC, CXX, CFLAGS and CXXFLAGS environment variables, and - type "./configure". - HP-UX users, please see this note regarding - HP-UX multithreaded build issues with newer compilers. Solaris users, - please see this note regarding Solaris - multithreaded build issues.

- -

ICU is built with strict compiler warnings enabled by default. If this - causes excessive numbers of warnings on your platform, use the --disable-strict - option to configure to reduce the warning level.

- -

Running - The Tests From The Command Line NOTE: You may have to set - certain variables if you with to run test programs individually, that is - apart from "gmake check". The environment variable ICU_DATA - can be set to the full pathname of the data directory to indicate where the - locale data files and conversion mapping tables are when you are not using - the shared library (e.g. by using the .dat archive or the individual data - files). The trailing "/" is required after the directory name (e.g. - "$Root/source/data/out/" will work, but the value "$Root/source/data/out" is - not acceptable). You do not need to set ICU_DATA if the - complete shared data library is in your library path.

- -

Installing ICU - NOTE: Some platforms use package management tools to control the - installation and uninstallation of files on the system, as well as the - integrity of the system configuration. You may want to check if ICU can be - packaged for your package management tools by looking into the "packaging" - directory. (Please note that if you are using a snapshot of ICU from Subversion, it - is probable that the packaging scripts or related files are not up to date - with the contents of ICU at this time, so use them with caution).

- -

How To - Build And Install On z/OS (OS/390)

- -

You can install ICU on z/OS or OS/390 (the previous name of z/OS), but IBM - tests only the z/OS installation. You install ICU in a z/OS UNIX system - services file system such as HFS or zFS. On this platform, it is important - that you understand a few details:

- -
    -
  • The makedep and GNU make tools are required for building ICU. If it - is not already installed on your system, it is available at the z/OS UNIX - - Tools and Toys site. The PATH environment variable should be updated to - contain the location of this executable prior to build. Failure to add these - tools to your PATH will cause ICU build failures or cause pkgdata to fail - to run.
  • - -
  • Since USS does not support using the mmap() function over NFS, it is - recommended that you build ICU on a local filesystem. Once ICU has been - built, you should not have this problem while using ICU when the data - library has been built as a shared library, which is this is the default - setting.
  • - -
  • Encoding considerations: The source code assumes that it is compiled - with codepage ibm-1047 (to be exact, the UNIX System Services variant of - it). The pax command converts all of the source code files from ASCII to - codepage ibm-1047 (USS) EBCDIC. However, some files are binary files and - must not be converted, or must be converted back to their original state. - You can use the unpax-icu.sh script - to do this for you automatically. It will unpackage the tar file and - convert all the necessary files for you automatically.
  • - -
  • z/OS supports both native S/390 hexadecimal floating point and (with - OS/390 2.6 and later) IEEE 754 binary floating point. This is a compile - time option. Applications built with IEEE should use ICU DLLs that are - built with IEEE (and vice versa). The environment variable IEEE390=0 will - cause the z/OS version of ICU to be built without IEEE floating point - support and use the native hexadecimal floating point. By default ICU is - built with IEEE 754 support. Native floating point support is sufficient - for codepage conversion, resource bundle and UnicodeString operations, but - the Format APIs require IEEE binary floating point.
  • - -
  • z/OS introduced the concept of Extra Performance Linkage (XPLINK) to - bring performance improvement opportunities to call-intensive C and C++ - applications such as ICU. XPLINK is enabled on a DLL-by-DLL basis, so if - you are considering using XPLINK in your application that uses ICU, you - should consider building the XPLINK-enabled version of ICU. You need to - set ICU's environment variable OS390_XPLINK=1 prior to - invoking the make process to produce binaries that are enabled for - XPLINK. The XPLINK option, which is available for z/OS 1.2 and later, - requires the PTF PQ69418 to build XPLINK enabled binaries.
  • - -
  • ICU requires XPLINK for the icuio library. If you want to use the - rest of ICU without XPLINK, then you must use the --disable-icuio - configure option.
  • - -
  • The latest versions of z/OS use XPLINK - version (C128) of the C++ standard library by default. You may see an - error when running with XPLINK disabled. To avoid this error, - set the following environment variable or similar: - -
    export _CXX_PSYSIX="CEE.SCEELIB(C128N)":"CBC.SCLBSID(IOSTREAM,COMPLEX)"
    -
  • - - -
  • The rest of the instructions for building and testing ICU on z/OS with - UNIX System Services are the same as the How To - Build And Install On UNIX section.
  • -
- -

z/OS (Batch/PDS) support outside the UNIX system services - environment

- -

By default, ICU builds its libraries into the UNIX file system (HFS). In - addition, there is a z/OS specific environment variable (OS390BATCH) to build - some libraries into the z/OS native file system. This is useful, for example, - when your application is externalized via Job Control Language (JCL).

- -

The OS390BATCH environment variable enables non-UNIX support including the - batch environment. When OS390BATCH is set, the libicui18nXX.dll, - libicuucXX.dll, and libicudtXXe.dll binaries are built into - data sets (the native file system). Turning on OS390BATCH does not turn off - the normal z/OS UNIX build. This means that the z/OS UNIX (HFS) DLLs will - always be created.

- -

Two additional environment variables indicate the names of the z/OS data - sets to use. The LOADMOD environment variable identifies the name of the data - set that contains the dynamic link libraries (DLLs) and the LOADEXP - environment variable identifies the name of the data set that contains the - side decks, which are normally the files with the .x suffix in the UNIX file - system.

- -

A data set is roughly equivalent to a UNIX or Windows file. For most kinds - of data sets the operating system maintains record boundaries. UNIX and - Windows files are byte streams. Two kinds of data sets are PDS and PDSE. Each - data set of these two types contains a directory. It is like a UNIX - directory. Each "file" is called a "member". Each member name is limited to - eight bytes, normally EBCDIC.

- -

Here is an example of some environment variables that you can set prior to - building ICU:

-
-OS390BATCH=1
-LOADMOD=USER.ICU.LOAD
-LOADEXP=USER.ICU.EXP
-
- -

The PDS member names for the DLL file names are as follows:

-
-IXMIXXIN --> libicui18nXX.dll
-IXMIXXUC --> libicuucXX.dll
-IXMIXXDA --> libicudtXXe.dll
-
- -

You should point the LOADMOD environment variable at a partitioned data - set extended (PDSE) and point the LOADEXP environment variable at a - partitioned data set (PDS). The PDSE can be allocated with the following - attributes:

-
-Data Set Name . . . : USER.ICU.LOAD
-Management class. . : **None**
-Storage class . . . : BASE
-Volume serial . . . : TSO007
-Device type . . . . : 3390
-Data class. . . . . : LOAD
-Organization  . . . : PO
-Record format . . . : U
-Record length . . . : 0
-Block size  . . . . : 32760
-1st extent cylinders: 1
-Secondary cylinders : 5
-Data set name type  : LIBRARY
-
- -

The PDS can be allocated with the following attributes:

-
-Data Set Name . . . : USER.ICU.EXP
-Management class. . : **None**
-Storage class . . . : BASE
-Volume serial . . . : TSO007
-Device type . . . . : 3390
-Data class. . . . . : **None**
-Organization  . . . : PO
-Record format . . . : FB
-Record length . . . : 80
-Block size  . . . . : 3200
-1st extent cylinders: 3
-Secondary cylinders : 3
-Data set name type  : PDS
-
- -

How To Build And Install On The IBM i Family (IBM i, i5/OS OS/400)

- -

Before you start building ICU, ICU requires the following:

- - - -

The following describes how to setup and build ICU. For background - information, you should look at the UNIX build - instructions.

- -
    -
  1. - Create target library. This library will be the target for the - resulting modules, programs and service programs. You will specify this - library on the OUTPUTDIR environment variable. -
    -CRTLIB LIB(libraryname)
    -ADDENVVAR ENVVAR(OUTPUTDIR) VALUE('libraryname') REPLACE(*YES)   
    -
    -
  2. - -
  3. - Set up the following environment variables and job characteristics in your build process -
    -ADDENVVAR ENVVAR(MAKE) VALUE('gmake') REPLACE(*YES)
    -CHGJOB CCSID(37)
    -
  4. - -
  5. Run 'QSH'
  6. - -
  7. Run:
    export PATH=/QIBM/ProdData/DeveloperTools/qsh/bin:$PATH:/QOpenSys/usr/bin -
  8. - -
  9. Run gzip -d on the ICU source code compressed tar archive - (icu-X.Y.tgz).
  10. - -
  11. Run unpax-icu.sh on the tar file generated from the previous step.
  12. - -
  13. Change your current directory to icu/as_is/os400.
  14. -
  15. Run qsh bldiculd.sh to build the program ICULD which ICU will use for linkage.
  16. - -
  17. Change your current directory to icu/source.
  18. - -
  19. Run './runConfigureICU IBMi' (See configuration - note for details). Note that --with-data-packaging=archive and setting the --prefix are recommended, building in default (dll) mode is currently not supported.
  20. - -
  21. Run 'gmake' to build ICU. (Do not use the -j option)
  22. - -
  23. Run 'gmake check QIBM_MULTI_THREADED=Y' to build and run the tests. - You can look at the - iSeries Information Center for more details regarding the running of multiple threads - on IBM i.
  24. -
- - -

How To Cross Compile ICU

-

This section will explain how to build ICU on one platform, but to produce binaries intended to run on another. This is commonly known as a cross compile.

-

Normally, in the course of a build, ICU needs to run the tools that it builds in order to generate and package data and test-data.In a cross compilation setting, ICU is built on a different system from that which it eventually runs on. An example might be, if you are building for a small/headless system (such as an embedded device), or a system where you can't easily run the ICU command line tools (any non-UNIX-like system).

-

To reduce confusion, we will here refer to the "A" and the "B" system.System "A" is the actual system we will be running on- the only requirements on it is are it is able to build ICU from the command line targetting itself (with configure or runConfigureICU), and secondly, that it also contain the correct toolchain for compiling and linking for the resultant platform, referred to as the "B" system.

-

The autoconf docs use the term "build" for A, and "host" for B. More details at: http://www.gnu.org/software/autoconf/manual/html_node/Specifying-Names.html

-

Three initially-empty directories will be used in this example:

- - - - - - - - - - -
/icua copy of the ICU source
/buildAan empty directory, it will contain ICU built for A
(MacOSX in this case)
/buildBan empty directory, it will contain ICU built for B
(HaikuOS in this case)
- -
    -
  1. Check out or unpack the ICU source code into the /icu directory.You will have the directories /icu/source, etc.
  2. -
  3. Build ICU in /buildA normally (using runConfigureICU or configure): -
    cd /buildA
    -sh /icu/source/runConfigureICU MacOSX
    -gnumake
    -
    -
  4. -
  5. Set PATH or other variables as needed, such as CPPFLAGS.
  6. -
  7. Build ICU in /buildB
    -
    Note: "--with-cross-build" takes an absolute path.
    -
    cd /buildB
    -sh /icu/source/configure --host=i586-pc-haiku --with-cross-build=/buildA
    -gnumake
    -
  8. -
  9. Tests and testdata can be built with "gnumake tests".
  10. -
- - - - -

How To - Package ICU

- -

There are many ways that a person can package ICU with their software - products. Usually only the libraries need to be considered for packaging.

- -

On UNIX, you should use "gmake install" to make it easier to - develop and package ICU. The bin, lib and include directories are needed to - develop applications that use ICU. These directories will be created relative - to the "--prefix=dir" configure option (See the UNIX build instructions). When ICU is built on Windows, - a similar directory structure is built.

- -

When changes have been made to the standard ICU distribution, it is - recommended that at least one of the following guidelines be followed for - special packaging.

- -
    -
  1. Add a suffix name to the library names. This can be done with the - --with-library-suffix configure option.
  2. - -
  3. The installation script should install the ICU libraries into the - application's directory.
  4. -
- -

Following these guidelines prevents other applications that use a standard - ICU distribution from conflicting with any libraries that you need. On - operating systems that do not have a standard C++ ABI (name mangling) for - compilers, it is recommended to do this special packaging anyway. More - details on customizing ICU are available in the User's Guide. The ICU Source Code Organization section of this readme.html - gives a more complete description of the libraries.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Here is an example of libraries that are frequently packaged. -
Library NameWindows FilenameLinux FilenameComment
Data LibraryicudtXYl.dlllibicudata.so.XY.ZData required by the Common and I18n libraries. There are many ways - to package and customize this - data, but by default this is all you need.
Common LibraryicuucXY.dlllibicuuc.so.XY.ZBase library required by all other ICU libraries.
Internationalization (i18n) LibraryicuinXY.dlllibicui18n.so.XY.ZA library that contains many locale based internationalization (i18n) - functions.
Layout EngineiculeXY.dlllibicule.so.XY.ZAn optional engine for doing font layout.
Layout Extensions EngineiculxXY.dlllibiculx.so.XY.ZAn optional engine for doing font layout that uses parts of ICU.
ICU I/O (Unicode stdio) LibraryicuioXY.dlllibicuio.so.XY.ZAn optional library that provides a stdio like API with Unicode - support.
Tool Utility LibraryicutuXY.dlllibicutu.so.XY.ZAn internal library that contains internal APIs that are only used by - ICU's tools. If you do not use ICU's tools, you do not need this - library.
- -

Normally only the above ICU libraries need to be considered for packaging. - The versionless symbolic links to these libraries are only needed for easier - development. The X, Y and Z parts of the name are the - version numbers of ICU. For example, ICU 2.0.2 would have the name - libicuuc.so.20.2 for the common library. The exact format of the library - names can vary between platforms due to how each platform can handles library - versioning.

- -

Important Notes About Using ICU

- -

Using ICU in a Multithreaded - Environment

- -

Some versions of ICU require calling the u_init() function - from uclean.h to ensure that ICU is initialized properly. In - those ICU versions, u_init() must be called before ICU is used - from multiple threads. There is no harm in calling u_init() in a - single-threaded application, on a single-CPU machine, or in other cases where - u_init() is not required.

- -

In addition to ensuring thread safety, u_init() also attempts - to load at least one ICU data file. Assuming that all data files are packaged - together (or are in the same folder in files mode), a failure code from - u_init() usually means that the data cannot be found. In this - case, the data may not be installed properly, or the application may have - failed to call udata_setCommonData() or - u_setDataDirectory() which specify to ICU where it can find its - data.

- -

Since u_init() will load only one or two data files, it - cannot guarantee that all of the data that an application needs is available. - It cannot check for all data files because the set of files is customizable, - and some ICU services work without loading any data at all. An application - should always check for error codes when opening ICU service objects (using - ucnv_open(), ucol_open(), C++ constructors, - etc.).

- -

ICU 3.4 and later

- -

ICU 3.4 self-initializes properly for multi-threaded use. It achieves this - without performance penalty by hardcoding the core Unicode properties data, - at the cost of some flexibility. (For details see Jitterbug 4497.)

- -

u_init() can be used to check for data loading. It tries to - load the converter alias table (cnvalias.icu).

- -

ICU 2.6..3.2

- -

These ICU versions require a call to u_init() before - multi-threaded use. The services that are directly affected are those that - don't have a service object and need to be fast: normalization and character - properties.

- -

u_init() loads and initializes the data files for - normalization and character properties (unorm.icu and - uprops.icu) and can therefore also be used to check for data - loading.

- -

ICU 2.4 and earlier

- -

ICU 2.4 and earlier versions were not prepared for multithreaded use on - multi-CPU platforms where the CPUs implement weak memory coherency. These - CPUs include: Power4, Power5, Alpha, Itanium. u_init() was not - defined yet.

- -

Using ICU in a Multithreaded Environment on - HP-UX

- -

When ICU is built with aCC on HP-UX, the -AA - compiler flag is used. It is required in order to use the latest - <iostream> API in a thread safe manner. This compiler flag affects the - version of the C++ library being used. Your applications will also need to - be compiled with -AA in order to use ICU.

- -

Using ICU in a Multithreaded Environment on - Solaris

- -
Linking on Solaris
- -

In order to avoid synchronization and threading issues, developers are - suggested to strictly follow the compiling and linking - guidelines for multithreaded applications, specified in the following - document from Sun Microsystems. Most notably, pay strict attention to the - following statements from Sun:

- -
-

To use libthread, specify -lthread before -lc on the ld command line, or - last on the cc command line.

- -

To use libpthread, specify -lpthread before -lc on the ld command line, - or last on the cc command line.

-
- -

Failure to do this may cause spurious lock conflicts, recursive mutex - failure, and deadlock.

- -

Source: "Solaris Multithreaded Programming Guide, Compiling and - Debugging", Sun Microsystems, Inc., Apr 2004
- http://docs.sun.com/app/docs/doc/816-5137/6mba5vpke?a=view

- -

Windows Platform

- -

If you are building on the Win32 platform, it is important that you - understand a few of the following build details.

- -

DLL directories and the PATH setting

- -

As delivered, the International Components for Unicode build as several - DLLs, which are placed in the "<ICU>\bin" directory. You must - add this directory to the PATH environment variable in your system, or any - executables you build will not be able to access International Components for - Unicode libraries. Alternatively, you can copy the DLL files into a directory - already in your PATH, but we do not recommend this. You can wind up with - multiple copies of the DLL and wind up using the wrong one.

- -

Changing your PATH

- -

Windows 2000/XP: Use the System Icon in the Control - Panel. Pick the "Advanced" tab. Select the "Environment Variables..." - button. Select the variable PATH in the lower box, and select the lower - "Edit..." button. In the "Variable Value" box, append the string - ";<ICU>\bin" to the end of the path string. If there is - nothing there, just type in "<ICU>\bin". Click the Set button, - then the OK button.

- -

Note: When packaging a Windows application for distribution and - installation on user systems, copies of the ICU DLLs should be included with - the application, and installed for exclusive use by the application. This is - the only way to insure that your application is running with the same version - of ICU, built with exactly the same options, that you developed and tested - with. Refer to Microsoft's guidelines on the usage of DLLs, or search for the - phrase "DLL hell" on msdn.microsoft.com.

- -

UNIX Type Platform

- -

If you are building on a UNIX platform, and if you are installing ICU in a - non-standard location, you may need to add the location of your ICU libraries - to your LD_LIBRARY_PATH or LIBPATH - environment variable (or the equivalent runtime library path environment - variable for your system). The ICU libraries may not link or load properly - without doing this.

- -

Note that if you do not want to have to set this variable, you may instead - use the --enable-rpath option at configuration time. This option will - instruct the linker to always look for the libraries where they are - installed. You will need to use the appropriate linker options when linking - your own applications and libraries against ICU, too. Please refer to your - system's linker manual for information about runtime paths. The use of rpath - also means that when building a new version of ICU you should not have an - older version installed in the same place as the new version's installation - directory, as the older libraries will used during the build, instead of the - new ones, likely leading to an incorrectly build ICU. This is the proper - behavior of rpath.

- -

Platform Dependencies

- -

Porting To A New Platform

- -

If you are using ICU's Makefiles to build ICU on a new platform, there are - a few places where you will need to add or modify some files. If you need - more help, you can always ask the icu-support mailing list. Once - you have finished porting ICU to a new platform, it is recommended that you - contribute your changes back to ICU via the icu-support mailing list. This - will make it easier for everyone to benefit from your work.

- -

Data For a New Platform

- -

For some people, it may not be necessary for completely build ICU. Most of - the makefiles and build targets are for tools that are used for building - ICU's data, and an application's data (when an application uses ICU resource - bundles for its data).

- -

Data files can be built on a different platform when both platforms share - the same endianness and the same charset family. This assertion does not - include platform dependent DLLs/shared/static libraries. For details see the - User Guide ICU - Data chapter.

- -

ICU 3.6 removes the requirement that ICU be completely built in the native - operating environment. It adds the icupkg tool which can be run on any - platform to turn binary ICU data files from any one of the three formats into - any one of the other data formats. This allows a application to use ICU data - built anywhere to be used for any other target platform.

- -

WARNING! Building ICU without running the tests is not - recommended. The tests verify that ICU is safe to use. It is recommended that - you try to completely port and test ICU before using the libraries for your - own application.

- -

Adapting Makefiles For a New Platform

- -

Try to follow the build steps from the UNIX - build instructions. If the configure script fails, then you will need to - modify some files. Here are the usual steps for porting to a new - platform:
-

- -
    -
  1. Create an mh file in icu/source/config/. You can use mh-linux or a - similar mh file as your base configuration.
  2. - -
  3. Modify icu/source/aclocal.m4 to recognize your platform's mh file.
  4. - -
  5. Modify icu/source/configure.in to properly set your platform C - Macro define.
  6. - -
  7. Run autoconf in - icu/source/ without any options. The autoconf tool is standard on most - Linux systems.
  8. - -
  9. If you have any optimization options that you want to normally use, you - can modify icu/source/runConfigureICU to specify those options for your - platform.
  10. - -
  11. Build and test ICU on your platform. It is very important that you run - the tests. If you don't run the tests, there is no guarentee that you have - properly ported ICU.
  12. -
- -

Platform Dependent Implementations

- -

The platform dependencies have been mostly isolated into the following - files in the common library. This information can be useful if you are - porting ICU to a new platform.

- -
    -
  • - unicode/platform.h.in (autoconf'ed platforms)
    - unicode/pXXXX.h (others: pwin32.h, ppalmos.h, - ..): Platform-dependent typedefs and defines:
    -
    - - -
      -
    • Generic types like UBool, int8_t, int16_t, int32_t, int64_t, - uint64_t etc.
    • - -
    • U_EXPORT and U_IMPORT for specifying dynamic library import and - export
    • - -
    • String handling support for the char16_t and wchar_t types.
    • -
    -
    -
  • - -
  • - unicode/putil.h, putil.c: platform-dependent - implementations of various functions that are platform dependent:
    -
    - - -
      -
    • uprv_isNaN, uprv_isInfinite, uprv_getNaN and uprv_getInfinity for - handling special floating point values.
    • - -
    • uprv_tzset, uprv_timezone, uprv_tzname and time for getting - platform specific time and time zone information.
    • - -
    • u_getDataDirectory for getting the default data directory.
    • - -
    • uprv_getDefaultLocaleID for getting the default locale - setting.
    • - -
    • uprv_getDefaultCodepage for getting the default codepage - encoding.
    • -
    -
    -
  • - -
  • - umutex.h, umutex.c: Code for doing synchronization in - multithreaded applications. If you wish to use International Components - for Unicode in a multithreaded application, you must provide a - synchronization primitive that the classes can use to protect their - global data against simultaneous modifications. We already supply working - implementations for many platforms that ICU builds on.
    -
    -
  • - -
  • umapfile.h, umapfile.c: functions for mapping or - otherwise reading or loading files into memory. All access by ICU to data - from files makes use of these functions.
    -
    -
  • - -
  • Using platform specific #ifdef macros are highly discouraged outside of - the scope of these files. When the source code gets updated in the future, - these #ifdef's can cause testing problems for your platform.
  • -
-
- -

Copyright © 1997-2012 International Business Machines Corporation and - others. All Rights Reserved.
- IBM Globalization Center of Competency - San José
- 4400 North First Street
- San José, CA 95134
- USA

- - - diff --git a/intl/update-icu.sh b/intl/update-icu.sh --- a/intl/update-icu.sh +++ b/intl/update-icu.sh @@ -3,6 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +set -e + # Usage: update-icu.sh # E.g., for ICU 52.1: update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-52-1/ @@ -12,8 +14,10 @@ fi icu_dir=`dirname $0`/icu -rm -rf ${icu_dir} -svn export $1 ${icu_dir} + +# Remove intl/icu/source, then replace it with a clean export. +rm -rf ${icu_dir}/source +svn export --force $1/source/ ${icu_dir}/source # remove layout, tests, and samples, but leave makefiles in place find ${icu_dir}/source/layout -name '*Makefile.in' -prune -or -type f -print | xargs rm