Kaydet (Commit) 8ab47528 authored tarafından Robert M Campbell's avatar Robert M Campbell Kaydeden (comit) Eike Rathke

upgrade to ICU 52.1, fdo#70995

Change-Id: I25e4b630c9029749cc459c0b65da287d6f0ba95e
Reviewed-on: https://gerrit.libreoffice.org/6666Tested-by: 's avatarLibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst b7b4ce70
...@@ -8911,7 +8911,7 @@ SYSTEM_GENBRK= ...@@ -8911,7 +8911,7 @@ SYSTEM_GENBRK=
SYSTEM_GENCCODE= SYSTEM_GENCCODE=
SYSTEM_GENCMN= SYSTEM_GENCMN=
ICU_MAJOR=51 ICU_MAJOR=52
ICU_MINOR=1 ICU_MINOR=1
ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES" ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
ICU_RECLASSIFIED_PREPEND_SET_EMPTY="YES" ICU_RECLASSIFIED_PREPEND_SET_EMPTY="YES"
......
...@@ -58,8 +58,7 @@ export GRAPHITE_TARBALL := 7042305e4208af4c2d5249d814ccce58-graphite2-1.2.3.tgz ...@@ -58,8 +58,7 @@ export GRAPHITE_TARBALL := 7042305e4208af4c2d5249d814ccce58-graphite2-1.2.3.tgz
export HSQLDB_TARBALL := 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip export HSQLDB_TARBALL := 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
export HUNSPELL_TARBALL := 3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz export HUNSPELL_TARBALL := 3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz
export HYPHEN_TARBALL := a2f6010987e1c601274ab5d63b72c944-hyphen-2.8.4.tar.gz export HYPHEN_TARBALL := a2f6010987e1c601274ab5d63b72c944-hyphen-2.8.4.tar.gz
export ICU_TARBALL := 6eef33b229d0239d654983028c9c7053-icu4c-51_1-src.tgz export ICU_TARBALL := 9e96ed4c1d99c0d14ac03c140f9f346c-icu4c-52_1-src.tgz
export ICU_51_LAYOUT_FIX_TARBALL := 7650341b04f05ff2595bf064f3e41f41-icu-51-layout-fix-10107.tgz
export JFREEREPORT_FLOW_ENGINE_TARBALL := ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip export JFREEREPORT_FLOW_ENGINE_TARBALL := ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
export JFREEREPORT_FLUTE_TARBALL := d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip export JFREEREPORT_FLUTE_TARBALL := d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
export JFREEREPORT_LIBBASE_TARBALL := eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip export JFREEREPORT_LIBBASE_TARBALL := eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
......
...@@ -11,15 +11,7 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,icu)) ...@@ -11,15 +11,7 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,icu))
$(eval $(call gb_UnpackedTarball_set_tarball,icu,$(ICU_TARBALL))) $(eval $(call gb_UnpackedTarball_set_tarball,icu,$(ICU_TARBALL)))
# *ONLY* for ICU 51(.1)!
# http://site.icu-project.org/download/51#TOC-Known-Issues
$(eval $(call gb_UnpackedTarball_set_pre_action,icu,\
$(GNUTAR) -x -z -f $(gb_UnpackedTarget_TARFILE_LOCATION)/$(ICU_51_LAYOUT_FIX_TARBALL) \
))
$(eval $(call gb_UnpackedTarball_add_patches,icu,\ $(eval $(call gb_UnpackedTarball_add_patches,icu,\
external/icu/icu4c.10318.CVE-2013-2924_changeset_34076.patch \
external/icu/icu4c.10129.wintz.patch \
external/icu/icu4c-build.patch \ external/icu/icu4c-build.patch \
external/icu/icu4c-aix.patch \ external/icu/icu4c-aix.patch \
external/icu/icu4c-wchar_t.patch \ external/icu/icu4c-wchar_t.patch \
......
--- misc/icu/source/config/mh-aix-gcc 2009-01-15 01:46:10.000000000 -0600 --- misc/icu/source/config/mh-aix-gcc 2010-06-24 20:58:16.000000000 -0500
+++ misc/build/icu/source/config/mh-aix-gcc 2010-06-24 20:58:16.000000000 -0500 +++ misc/build/icu/source/config/mh-aix-gcc 2013-10-31 20:34:16.607982310 +0700
@@ -1,10 +1,7 @@ @@ -13,84 +13,29 @@
## -*-makefile-*-
-## Copyright (c) 2003-2009 IBM, Ken Foskey, and others. All rights reserved.
-##
-## Aix-specific setup (for gcc)
-##
-## Please note: AIX does NOT have library versioning per se (there is no 'SONAME' capability).
-## So, we are using 'windows' style library names, that is, libicuuc20.1.so instead of libicuuc.so.20.1
+## Linux-specific setup
+## Copyright (c) 1999-2006, International Business Machines Corporation and
+## others. All Rights Reserved.
# Certain files don't compile in -ansi mode (e.g. umutex.c, toolutil.c, and cdatatst.c)
CFLAGS += -D_ALL_SOURCE
@@ -13,84 +10,30 @@
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
...@@ -30,6 +16,10 @@ ...@@ -30,6 +16,10 @@
-## Commands to make a shared library -## Commands to make a shared library
-SHLIB.c= $(AIX_PREDELETE) $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-bexpall $(LD_SOOPTIONS) -SHLIB.c= $(AIX_PREDELETE) $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-bexpall $(LD_SOOPTIONS)
-SHLIB.cc= $(AIX_PREDELETE) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-bexpall $(LD_SOOPTIONS) -SHLIB.cc= $(AIX_PREDELETE) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-bexpall $(LD_SOOPTIONS)
-
-## Compiler switch to embed a runtime search path
-LD_RPATH= -I
-LD_RPATH_PRE=
+## Flags for position independent code +## Flags for position independent code
+SHAREDLIBCFLAGS = -fPIC +SHAREDLIBCFLAGS = -fPIC
+SHAREDLIBCXXFLAGS = -fPIC +SHAREDLIBCXXFLAGS = -fPIC
...@@ -39,10 +29,6 @@ ...@@ -39,10 +29,6 @@
+THREADSCPPFLAGS = -D_REENTRANT -D_THREAD_SAFE +THREADSCPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
+LIBCPPFLAGS = +LIBCPPFLAGS =
## Compiler switch to embed a runtime search path
-LD_RPATH= -I
-LD_RPATH_PRE=
-
-## enable the shared lib loader -## enable the shared lib loader
-LDFLAGS += -Wl,-bbigtoc -LDFLAGS += -Wl,-bbigtoc
+LD_RPATH= +LD_RPATH=
...@@ -86,7 +72,7 @@ ...@@ -86,7 +72,7 @@
-# without the -brtl option, the library names use .a. AIX is funny that way. -# without the -brtl option, the library names use .a. AIX is funny that way.
-SO= a -SO= a
-A= a -A= a
+SO = so +SO= so
## Non-shared intermediate object suffix ## Non-shared intermediate object suffix
-STATIC_O = o -STATIC_O = o
...@@ -111,7 +97,7 @@ ...@@ -111,7 +97,7 @@
## Compilation rules ## Compilation rules
%.$(STATIC_O): $(srcdir)/%.c %.$(STATIC_O): $(srcdir)/%.c
@@ -118,10 +61,10 @@ @@ -118,10 +63,10 @@
[ -s $@ ] || rm -f $@' [ -s $@ ] || rm -f $@'
## Versioned libraries rules ## Versioned libraries rules
...@@ -126,8 +112,8 @@ ...@@ -126,8 +112,8 @@
## BIR - bind with internal references [so app data and icu data doesn't collide] ## BIR - bind with internal references [so app data and icu data doesn't collide]
--- misc/icu/source/tools/pkgdata/pkgdata.cpp 2013-03-15 22:12:06.000000000 +0000 --- misc/icu/source/tools/pkgdata/pkgdata.cpp 2013-04-06 20:56:00.935656635 +0100
+++ misc/build/icu/source/tools/pkgdata/pkgdata.cpp 2013-04-06 20:56:00.935656635 +0100 +++ misc/build/icu/source/tools/pkgdata/pkgdata.cpp 2013-10-31 20:38:10.623984554 +0700
@@ -888,7 +888,7 @@ @@ -888,7 +888,7 @@
uprv_strcat(pkgDataFlags[SO_EXT], "."); uprv_strcat(pkgDataFlags[SO_EXT], ".");
...@@ -137,7 +123,7 @@ ...@@ -137,7 +123,7 @@
sprintf(libFileNames[LIB_FILE_VERSION_TMP], "%s.%s", sprintf(libFileNames[LIB_FILE_VERSION_TMP], "%s.%s",
libFileNames[LIB_FILE], libFileNames[LIB_FILE],
pkgDataFlags[SOBJ_EXT]); pkgDataFlags[SOBJ_EXT]);
@@ -1302,15 +1298,6 @@ @@ -1302,15 +1302,6 @@
pkgDataFlags[LDICUDTFLAGS], pkgDataFlags[LDICUDTFLAGS],
targetDir, targetDir,
libFileNames[LIB_FILE_CYGWIN_VERSION], libFileNames[LIB_FILE_CYGWIN_VERSION],
...@@ -153,3 +139,4 @@ ...@@ -153,3 +139,4 @@
#else #else
sprintf(cmd, "%s %s -o %s%s %s %s%s %s %s", sprintf(cmd, "%s %s -o %s%s %s %s%s %s %s",
pkgDataFlags[GENLIB], pkgDataFlags[GENLIB],
--- misc/icu/source/config/mh-linux --- misc/icu/source/config/mh-linux 2013-10-05 03:50:00.000000000 +0700
+++ misc/build/icu/source/config/mh-linux +++ misc/build/icu/source/config/mh-linux 2013-11-10 17:11:46.856222557 +0700
@@ -30,7 +30,7 @@ @@ -25,7 +25,7 @@
## Compiler switch to embed a library name ## Compiler switch to embed a library name
# The initial tab in the next line is to prevent icu-config from reading it. # The initial tab in the next line is to prevent icu-config from reading it.
- LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) - LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
+# LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) + #LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
#SH# # We can't depend on MIDDLE_SO_TARGET being set. #SH# # We can't depend on MIDDLE_SO_TARGET being set.
#SH# LD_SONAME= #SH# LD_SONAME=
--- misc/icu/source/configure --- misc/icu/source/configure 2013-10-05 03:54:58.000000000 +0700
+++ misc/build/icu/source/configure +++ misc/build/icu/source/configure 2013-11-10 17:19:19.200218763 +0700
@@ -5053,7 +5053,7 @@ @@ -4872,7 +4872,7 @@
else else
icu_cv_host_frag=mh-linux-va icu_cv_host_frag=mh-linux-va
fi ;; fi ;;
...@@ -20,17 +20,18 @@ ...@@ -20,17 +20,18 @@
*-*-cygwin|*-*-mingw32|*-*-mingw64) *-*-cygwin|*-*-mingw32|*-*-mingw64)
if test "$GCC" = yes; then if test "$GCC" = yes; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -6127,6 +6127,9 @@ @@ -6032,6 +6032,10 @@
# Check to see if genccode can generate simple assembly. # Check to see if genccode can generate simple assembly.
GENCCODE_ASSEMBLY= GENCCODE_ASSEMBLY=
case "${host}" in case "${host}" in
+arm-*-linux-androideabi) +arm-*-linux-androideabi)
+ GENCCODE_ASSEMBLY="-a gcc-android-arm" + if test "$GCC" = yes; then
+ ;; + GENCCODE_ASSEMBLY="-a gcc-android-arm"
+ fi ;;
*-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
if test "$GCC" = yes; then if test "$GCC" = yes; then
# We're using gcc, and the simple -a gcc command line works for genccode # We're using gcc, and the simple -a gcc command line works for genccode
@@ -7200,6 +7203,10 @@ @@ -7104,6 +7108,10 @@
# wchar_t can be used # wchar_t can be used
CHECK_UTF16_STRING_RESULT="available" CHECK_UTF16_STRING_RESULT="available"
;; ;;
...@@ -41,9 +42,10 @@ ...@@ -41,9 +42,10 @@
*) *)
;; ;;
esac esac
--- misc/icu/source/common/putilimp.h
+++ misc/build/icu/source/common/putilimp.h --- misc/icu/source/common/putilimp.h 2013-10-05 03:49:30.000000000 +0700
@@ -86,6 +86,8 @@ +++ misc/build/icu/source/common/putilimp.h 2013-11-10 17:21:26.224217698 +0700
@@ -87,6 +87,8 @@
/* Use the predefined value. */ /* Use the predefined value. */
#elif U_PLATFORM_HAS_WIN32_API #elif U_PLATFORM_HAS_WIN32_API
# define U_HAVE_NL_LANGINFO_CODESET 0 # define U_HAVE_NL_LANGINFO_CODESET 0
...@@ -52,9 +54,10 @@ ...@@ -52,9 +54,10 @@
#else #else
# define U_HAVE_NL_LANGINFO_CODESET 1 # define U_HAVE_NL_LANGINFO_CODESET 1
#endif #endif
--- misc/icu/source/common/unicode/platform.h
+++ misc/build/icu/source/common/unicode/platform.h --- misc/icu/source/common/unicode/platform.h 2013-10-05 03:49:10.000000000 +0700
@@ -641,7 +641,7 @@ +++ misc/build/icu/source/common/unicode/platform.h 2013-11-10 17:22:27.160217186 +0700
@@ -703,7 +703,7 @@
#elif defined(U_STATIC_IMPLEMENTATION) #elif defined(U_STATIC_IMPLEMENTATION)
# define U_EXPORT # define U_EXPORT
#elif defined(__GNUC__) #elif defined(__GNUC__)
...@@ -63,3 +66,4 @@ ...@@ -63,3 +66,4 @@
#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \ #elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \
|| (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550) || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550)
# define U_EXPORT __global # define U_EXPORT __global
...@@ -11,7 +11,7 @@ Index: icu/source/tools/pkgdata/pkgdata.cpp ...@@ -11,7 +11,7 @@ Index: icu/source/tools/pkgdata/pkgdata.cpp
=================================================================== ===================================================================
--- build/icu.orig/source/tools/pkgdata/pkgdata.cpp --- build/icu.orig/source/tools/pkgdata/pkgdata.cpp
+++ build/icu/source/tools/pkgdata/pkgdata.cpp +++ build/icu/source/tools/pkgdata/pkgdata.cpp
@@ -1914,12 +1914,12 @@ static void loadLists(UPKGOptions *o, UE @@ -1980,12 +1980,12 @@
const char cmd[] = "icu-config --incpkgdatafile"; const char cmd[] = "icu-config --incpkgdatafile";
/* #1 try the same path where pkgdata was called from. */ /* #1 try the same path where pkgdata was called from. */
...@@ -27,3 +27,4 @@ Index: icu/source/tools/pkgdata/pkgdata.cpp ...@@ -27,3 +27,4 @@ Index: icu/source/tools/pkgdata/pkgdata.cpp
if(verbose) { if(verbose) {
fprintf(stdout, "# Calling icu-config: %s\n", cmdBuf); fprintf(stdout, "# Calling icu-config: %s\n", cmdBuf);
--- misc/icu/source/common/umutex.h
+++ misc/icu/source/common/umutex.h
@@ -48,16 +48,8 @@
#endif /* win32 */
#if U_PLATFORM_IS_DARWIN_BASED
-#if defined(__STRICT_ANSI__)
-#define UPRV_REMAP_INLINE
-#define inline
-#endif
#include <libkern/OSAtomic.h>
#define USE_MAC_OS_ATOMIC_INCREMENT 1
-#if defined(UPRV_REMAP_INLINE)
-#undef inline
-#undef UPRV_REMAP_INLINE
-#endif
#endif
/*
--- misc/icu/source/tools/toolutil/pkg_genc.h --- misc/icu/source/tools/toolutil/pkg_genc.h
+++ misc/build/icu/source/tools/toolutil/pkg_genc.h +++ misc/build/icu/source/tools/toolutil/pkg_genc.h
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
...@@ -27,10 +8,10 @@ ...@@ -27,10 +8,10 @@
+#define SMALL_BUFFER_MAX_SIZE 2048 +#define SMALL_BUFFER_MAX_SIZE 2048
#define SMALL_BUFFER_FLAG_NAMES 32 #define SMALL_BUFFER_FLAG_NAMES 32
#define BUFFER_PADDING_SIZE 20 #define BUFFER_PADDING_SIZE 20
--- misc/icu/source/tools/toolutil/pkg_genc.c --- misc/icu/source/tools/toolutil/pkg_genc.c
+++ misc/build/icu/source/tools/toolutil/pkg_genc.c +++ misc/build/icu/source/tools/toolutil/pkg_genc.c
@@ -145,6 +145,28 @@ @@ -152,6 +152,28 @@
".long ","",HEX_0X ".long ","",HEX_0X
}, },
...@@ -56,13 +37,13 @@ ...@@ -56,13 +37,13 @@
+ "\t.section .note.GNU-stack,\"\",%%progbits\n", + "\t.section .note.GNU-stack,\"\",%%progbits\n",
+ HEX_0X + HEX_0X
+ }, + },
// 16 bytes alignment.
// http://docs.oracle.com/cd/E19641-01/802-1947/802-1947.pdf
{"sun", {"sun",
"\t.section \".rodata\"\n"
"\t.align 8\n"
--- misc/icu/source/config/mh-darwin 2010-09-29 20:37:36.000000000 +0200 --- misc/icu/source/config/mh-darwin 2010-09-29 20:37:36.000000000 +0200
+++ misc/build/icu/source/config/mh-darwin 2011-03-15 10:56:26.653056004 +0100 +++ misc/build/icu/source/config/mh-darwin 2011-03-15 10:56:26.653056004 +0100
@@ -25,11 +25,7 @@ @@ -28,11 +28,7 @@
SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS)
## Compiler switches to embed a library name and version information ## Compiler switches to embed a library name and version information
...@@ -75,7 +56,7 @@ ...@@ -75,7 +56,7 @@
## Compiler switch to embed a runtime search path ## Compiler switch to embed a runtime search path
LD_RPATH= LD_RPATH=
@@ -45,10 +41,6 @@ @@ -48,10 +44,6 @@
## Non-shared intermediate object suffix ## Non-shared intermediate object suffix
STATIC_O = ao STATIC_O = ao
...@@ -85,8 +66,8 @@ ...@@ -85,8 +66,8 @@
- -
## Compilation and dependency rules ## Compilation and dependency rules
%.$(STATIC_O): $(srcdir)/%.c %.$(STATIC_O): $(srcdir)/%.c
$(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<)
@@ -80,16 +72,10 @@ @@ -65,16 +57,10 @@
## Versioned libraries rules ## Versioned libraries rules
......
--- misc/icu/source/common/putil.cpp --- misc/icu/source/common/putil.cpp
+++ misc/build/icu/source/common/putil.cpp +++ misc/build/icu/source/common/putil.cpp
@@ -1080,8 +1080,16 @@ @@ -1111,8 +1111,16 @@
static const time_t decemberSolstice=1198332540; /*2007-12-22 06:09 UT*/ static const time_t decemberSolstice=1198332540; /*2007-12-22 06:09 UT*/
/* This probing will tell us when daylight savings occurs. */ /* This probing will tell us when daylight savings occurs. */
...@@ -17,3 +17,4 @@ ...@@ -17,3 +17,4 @@
if(decemberSol.tm_isdst > 0) { if(decemberSol.tm_isdst > 0) {
daylightType = U_DAYLIGHT_DECEMBER; daylightType = U_DAYLIGHT_DECEMBER;
} else if(juneSol.tm_isdst > 0) { } else if(juneSol.tm_isdst > 0) {
--- misc/icu/source/dataMakefile.in.sav 2012-04-05 22:49:20.000000000 +0200 --- misc/icu/source/dataMakefile.in.sav 2012-04-05 22:49:20.000000000 +0200
+++ build/icu/source/data/Makefile.in 2012-12-04 14:24:40.548026700 +0100 +++ build/icu/source/data/Makefile.in 2012-12-04 14:24:40.548026700 +0100
@@ -346,6 +346,7 @@ @@ -350,6 +350,7 @@
ifeq ($(PKGDATA_MODE),dll) ifeq ($(PKGDATA_MODE),dll)
SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res
$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc $(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc
...@@ -8,3 +8,4 @@ ...@@ -8,3 +8,4 @@
rc.exe /i$(srcdir)/../common /i$(top_builddir)/common /fo$@ $(CPPFLAGS) $(SOURCE_FILE) rc.exe /i$(srcdir)/../common /i$(top_builddir)/common /fo$@ $(CPPFLAGS) $(SOURCE_FILE)
endif endif
endif endif
...@@ -33,3 +33,4 @@ ...@@ -33,3 +33,4 @@
## These are the library specific LDFLAGS ## These are the library specific LDFLAGS
LDFLAGSICUDT=-nodefaultlibs -nostdlib LDFLAGSICUDT=-nodefaultlibs -nostdlib
diff -uriwb build/icu.old/source/common/uposixdefs.h misc/build/icu/source/common/uposixdefs.h --- build/icu.old/source/common/uposixdefs.h
--- build/icu.old/source/common/uposixdefs.h 2012-04-05 21:46:18.000000000 +0100 +++ build/icu/source/common/uposixdefs.h
+++ build/icu/source/common/uposixdefs.h 2012-06-21 15:45:17.613369477 +0100
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
* *
* z/OS needs this definition for timeval and to get usleep. * z/OS needs this definition for timeval and to get usleep.
...@@ -10,3 +9,4 @@ diff -uriwb build/icu.old/source/common/uposixdefs.h misc/build/icu/source/commo ...@@ -10,3 +9,4 @@ diff -uriwb build/icu.old/source/common/uposixdefs.h misc/build/icu/source/commo
# define _XOPEN_SOURCE_EXTENDED 1 # define _XOPEN_SOURCE_EXTENDED 1
#endif #endif
--- misc/icu/source/common/unicode/utf16.h --- misc/icu/source/common/unicode/utf16.h
+++ misc/build/icu/source/common/unicode/utf16.h +++ misc/build/icu/source/common/unicode/utf16.h
@@ -316,6 +316,7 @@ @@ -319,6 +319,7 @@
(s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \ (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
} else /* c>0x10ffff or not enough space */ { \ } else /* c>0x10ffff or not enough space */ { \
(isError)=TRUE; \ (isError)=TRUE; \
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
--- misc/icu/source/common/unicode/utypes.h --- misc/icu/source/common/unicode/utypes.h
+++ misc/build/icu/source/common/unicode/utypes.h +++ misc/build/icu/source/common/unicode/utypes.h
@@ -399,7 +399,7 @@ typedef double UDate; @@ -399,7 +399,7 @@
* some Linux/Unix compilers have problems with defining global new/delete. * some Linux/Unix compilers have problems with defining global new/delete.
* On Windows, it is _MSC_VER>=1200 for MSVC 6.0 and higher. * On Windows, it is _MSC_VER>=1200 for MSVC 6.0 and higher.
*/ */
...@@ -19,3 +19,4 @@ ...@@ -19,3 +19,4 @@
#ifndef U_HIDE_INTERNAL_API #ifndef U_HIDE_INTERNAL_API
/** /**
--- misc/icu/source/config/mh-cygwin-msvc 2012-05-10 11:42:22.886869800 +0100 --- misc/icu/source/config/mh-cygwin-msvc
+++ misc/build/icu/source/config/mh-cygwin-msvc 2012-05-10 11:42:45.110227500 +0100 +++ misc/build/icu/source/config/mh-cygwin-msvc
@@ -43,10 +43,9 @@ @@ -43,10 +43,9 @@
# /GF pools strings and places them into read-only memory # /GF pools strings and places them into read-only memory
...@@ -13,3 +13,4 @@ ...@@ -13,3 +13,4 @@
CPPFLAGS+=-D_CRT_SECURE_NO_DEPRECATE CPPFLAGS+=-D_CRT_SECURE_NO_DEPRECATE
DEFS+=-DWIN32 -DCYGWINMSVC DEFS+=-DWIN32 -DCYGWINMSVC
LDFLAGS+=/nologo LDFLAGS+=/nologo
# Fix for fdo#59850
# Patch was also submitted with https://ssl.icu-project.org/trac/ticket/10129
# of which the outcome should be monitored.
--- misc/icu/source/common/wintz.c
+++ misc/build/icu/source/common/wintz.c
@@ -254,7 +254,6 @@
char apiStdName[MAX_LENGTH_ID];
char regStdName[MAX_LENGTH_ID];
char tmpid[MAX_LENGTH_ID];
- int32_t apiStdLength = 0;
int32_t len;
int id;
int errorCode;
@@ -280,8 +279,8 @@
/* Convert the wchar_t* standard name to char* */
uprv_memset(apiStdName, 0, sizeof(apiStdName));
- u_strFromWCS(apiStd, MAX_LENGTH_ID, &apiStdLength, apiTZI.StandardName, -1, &status);
- u_austrncpy(apiStdName, apiStd, apiStdLength);
+ u_strFromWCS(apiStd, MAX_LENGTH_ID, NULL, apiTZI.StandardName, -1, &status);
+ u_austrncpy(apiStdName, apiStd, sizeof(apiStdName) - 1);
tmpid[0] = 0;
Index: /icu/trunk/source/i18n/csrucode.cpp
===================================================================
--- a/orig.icu/source/i18n/csrucode.cpp (revision 34075)
+++ b/icu/source/i18n/csrucode.cpp (revision 34076)
@@ -1,5 +1,5 @@
/*
**********************************************************************
- * Copyright (C) 2005-2012, International Business Machines
+ * Copyright (C) 2005-2013, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
@@ -34,6 +34,7 @@
const uint8_t *input = textIn->fRawInput;
int32_t confidence = 0;
+ int32_t length = textIn->fRawLength;
- if (input[0] == 0xFE && input[1] == 0xFF) {
+ if (length >=2 && input[0] == 0xFE && input[1] == 0xFF) {
confidence = 100;
}
@@ -58,6 +59,7 @@
const uint8_t *input = textIn->fRawInput;
int32_t confidence = 0;
+ int32_t length = textIn->fRawLength;
- if (input[0] == 0xFF && input[1] == 0xFE && (input[2] != 0x00 || input[3] != 0x00)) {
+ if (length >= 4 && input[0] == 0xFF && input[1] == 0xFE && (input[2] != 0x00 || input[3] != 0x00)) {
confidence = 100;
}
@@ -82,5 +84,5 @@
int32_t confidence = 0;
- if (getChar(input, 0) == 0x0000FEFFUL) {
+ if (limit > 0 && getChar(input, 0) == 0x0000FEFFUL) {
hasBOM = TRUE;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment