* updated ICU build packages with newer builds that try a bit harder to avoid
warnings and incorporate some of the ICU-patches we had in our repo before we upgraded to 4.4.1 * fixed remaining warnings when building locale kit * activated EnableWerror for locale kit * added 'Unicode' license, which is the second license in use by ICU git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37763 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a28bf6c79d
commit
c090a0fd84
@ -1377,7 +1377,7 @@ if $(HAIKU_NO_WERROR) != 1 {
|
|||||||
EnableWerror src kits device ;
|
EnableWerror src kits device ;
|
||||||
EnableWerror src kits game ;
|
EnableWerror src kits game ;
|
||||||
EnableWerror src kits interface ;
|
EnableWerror src kits interface ;
|
||||||
# EnableWerror src kits locale ;
|
EnableWerror src kits locale ;
|
||||||
EnableWerror src kits mail ;
|
EnableWerror src kits mail ;
|
||||||
# EnableWerror src kits media ; # gcc2
|
# EnableWerror src kits media ; # gcc2
|
||||||
EnableWerror src kits midi ;
|
EnableWerror src kits midi ;
|
||||||
|
@ -50,9 +50,9 @@ if $(HAIKU_BUILD_FEATURE_SSL) {
|
|||||||
# ICU
|
# ICU
|
||||||
|
|
||||||
# Note ICU isn't actually optional, but is still an external package
|
# Note ICU isn't actually optional, but is still an external package
|
||||||
HAIKU_ICU_GCC_2_PACKAGE = icu-4.4.1-x86-gcc2-2010-07-15.zip ;
|
HAIKU_ICU_GCC_2_PACKAGE = icu-4.4.1-x86-gcc2-2010-07-26.zip ;
|
||||||
HAIKU_ICU_GCC_4_PACKAGE = icu-4.4.1-x86-gcc4-2010-07-15.zip ;
|
HAIKU_ICU_GCC_4_PACKAGE = icu-4.4.1-x86-gcc4-2010-07-26.zip ;
|
||||||
HAIKU_ICU_DEVEL_PACKAGE = icu-devel-4.4.1-2010-07-15.zip ;
|
HAIKU_ICU_DEVEL_PACKAGE = icu-devel-4.4.1-2010-07-26.zip ;
|
||||||
|
|
||||||
if $(TARGET_ARCH) != x86 {
|
if $(TARGET_ARCH) != x86 {
|
||||||
Echo "ICU not available for $(TARGET_ARCH)" ;
|
Echo "ICU not available for $(TARGET_ARCH)" ;
|
||||||
|
48
data/system/data/licenses/Unicode
Normal file
48
data/system/data/licenses/Unicode
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
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 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-2009 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.
|
@ -1,3 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2010, Haiku, Inc.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
#ifndef _B_LOCALE_H_
|
#ifndef _B_LOCALE_H_
|
||||||
#define _B_LOCALE_H_
|
#define _B_LOCALE_H_
|
||||||
|
|
||||||
|
@ -184,10 +184,10 @@ collectAllCatalogKeys(BString& inputStr)
|
|||||||
if (fetchKey(in)) {
|
if (fetchKey(in)) {
|
||||||
if (haveID) {
|
if (haveID) {
|
||||||
if (showKeys)
|
if (showKeys)
|
||||||
printf("CatKey(%d)\n", id);
|
printf("CatKey(%ld)\n", id);
|
||||||
res = catalog->SetString(id, "");
|
res = catalog->SetString(id, "");
|
||||||
if (res != B_OK) {
|
if (res != B_OK) {
|
||||||
fprintf(stderr, "couldn't add key %d - error: %s\n",
|
fprintf(stderr, "couldn't add key %ld - error: %s\n",
|
||||||
id, strerror(res));
|
id, strerror(res));
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ main(int argc, char **argv)
|
|||||||
if (showSummary) {
|
if (showSummary) {
|
||||||
int32 count = catalog->CountItems();
|
int32 count = catalog->CountItems();
|
||||||
if (count)
|
if (count)
|
||||||
fprintf(stderr, "%d key%s found and written to %s\n",
|
fprintf(stderr, "%ld key%s found and written to %s\n",
|
||||||
count, (count==1 ? "": "s"), outputFile.String());
|
count, (count==1 ? "": "s"), outputFile.String());
|
||||||
else
|
else
|
||||||
fprintf(stderr, "no keys found\n");
|
fprintf(stderr, "no keys found\n");
|
||||||
|
@ -1063,7 +1063,7 @@ BCountry::GetTimeZones(BList& timezones)
|
|||||||
std::map<BString, BTimeZone*> timeZoneMap;
|
std::map<BString, BTimeZone*> timeZoneMap;
|
||||||
// The map allows us to remove duplicates and get a count of the
|
// The map allows us to remove duplicates and get a count of the
|
||||||
// remaining zones after that
|
// remaining zones after that
|
||||||
while (tzName = icuTimeZoneList->next(NULL, error)) {
|
while ((tzName = icuTimeZoneList->next(NULL, error)) != NULL) {
|
||||||
if (error == U_ZERO_ERROR) {
|
if (error == U_ZERO_ERROR) {
|
||||||
BString readableName;
|
BString readableName;
|
||||||
BTimeZone* timeZone = new BTimeZone(tzName);
|
BTimeZone* timeZone = new BTimeZone(tzName);
|
||||||
|
@ -370,11 +370,6 @@ RosterData::InitializeCatalogAddOns()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fCatalogAddOnInfos.SortItems(CompareInfos);
|
fCatalogAddOnInfos.SortItems(CompareInfos);
|
||||||
|
|
||||||
for (int32 i = 0; i<fCatalogAddOnInfos.CountItems(); ++i) {
|
|
||||||
BCatalogAddOnInfo *info
|
|
||||||
= static_cast<BCatalogAddOnInfo*>(fCatalogAddOnInfos.ItemAt(i));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ DefaultCatalog::ReadFromFile(const char *path)
|
|||||||
}
|
}
|
||||||
if (res < sz) {
|
if (res < sz) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"only got %lu instead of %Lu bytes from catalog-file %s\n", res, sz,
|
"only got %u instead of %Lu bytes from catalog-file %s\n", res, sz,
|
||||||
path);
|
path);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ DefaultCatalog::Unflatten(BDataIO *dataIO)
|
|||||||
if (foundFingerprint != 0 && fFingerprint != 0
|
if (foundFingerprint != 0 && fFingerprint != 0
|
||||||
&& foundFingerprint != fFingerprint) {
|
&& foundFingerprint != fFingerprint) {
|
||||||
fprintf(stderr, "default-catalog(sig=%s, lang=%s) "
|
fprintf(stderr, "default-catalog(sig=%s, lang=%s) "
|
||||||
"has mismatching fingerprint (%ld instead of the requested %ld)"
|
"has mismatching fingerprint (%d instead of the requested %d)"
|
||||||
", so this catalog is skipped.\n",
|
", so this catalog is skipped.\n",
|
||||||
fSignature.String(), fLanguageName.String(), foundFingerprint,
|
fSignature.String(), fLanguageName.String(), foundFingerprint,
|
||||||
fFingerprint);
|
fFingerprint);
|
||||||
@ -369,7 +369,7 @@ DefaultCatalog::Unflatten(BDataIO *dataIO)
|
|||||||
uint32 checkFP = ComputeFingerprint();
|
uint32 checkFP = ComputeFingerprint();
|
||||||
if (fFingerprint != checkFP) {
|
if (fFingerprint != checkFP) {
|
||||||
fprintf(stderr, "default-catalog(sig=%s, lang=%s) "
|
fprintf(stderr, "default-catalog(sig=%s, lang=%s) "
|
||||||
"has wrong fingerprint after load (%ld instead of the %ld). "
|
"has wrong fingerprint after load (%d instead of %d). "
|
||||||
"The catalog data may be corrupted, so this catalog is "
|
"The catalog data may be corrupted, so this catalog is "
|
||||||
"skipped.\n",
|
"skipped.\n",
|
||||||
fSignature.String(), fLanguageName.String(), checkFP,
|
fSignature.String(), fLanguageName.String(), checkFP,
|
||||||
|
@ -231,7 +231,7 @@ PlainTextCatalog::ReadFromFile(const char *path)
|
|||||||
uint32 checkFP = ComputeFingerprint();
|
uint32 checkFP = ComputeFingerprint();
|
||||||
if (fFingerprint != checkFP) {
|
if (fFingerprint != checkFP) {
|
||||||
fprintf(stderr, "plaintext-catalog(sig=%s, lang=%s) "
|
fprintf(stderr, "plaintext-catalog(sig=%s, lang=%s) "
|
||||||
"has wrong fingerprint after load (%lX instead of %lX). "
|
"has wrong fingerprint after load (%X instead of %X). "
|
||||||
"The catalog data may be corrupted, so this catalog is "
|
"The catalog data may be corrupted, so this catalog is "
|
||||||
"skipped.\n",
|
"skipped.\n",
|
||||||
fSignature.String(), fLanguageName.String(), checkFP,
|
fSignature.String(), fLanguageName.String(), checkFP,
|
||||||
|
@ -160,7 +160,7 @@ main(int argc, char **argv)
|
|||||||
if (showSummary) {
|
if (showSummary) {
|
||||||
int32 count = targetCatImpl.CountItems();
|
int32 count = targetCatImpl.CountItems();
|
||||||
if (count) {
|
if (count) {
|
||||||
fprintf(stderr, "%ld key%s found and written to %s\n",
|
fprintf(stderr, "%d key%s found and written to %s\n",
|
||||||
count, (count==1 ? "": "s"), outputFile.String());
|
count, (count==1 ? "": "s"), outputFile.String());
|
||||||
} else
|
} else
|
||||||
fprintf(stderr, "no keys found\n");
|
fprintf(stderr, "no keys found\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user