Skip to content

Commit 5d0a770

Browse files
committed
deps: ICU 59.1 bump
* No feature changes. * Bug fixes. * Details: http://site.icu-project.org/download/59 Fixes: #12077 PR-URL: #12486 Refs: #7844 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 147048a commit 5d0a770

File tree

899 files changed

+11192
-6834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

899 files changed

+11192
-6834
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The externally maintained libraries used by Node.js are:
100100
"""
101101
COPYRIGHT AND PERMISSION NOTICE (ICU 58 and later)
102102

103-
Copyright © 1991-2016 Unicode, Inc. All rights reserved.
103+
Copyright © 1991-2017 Unicode, Inc. All rights reserved.
104104
Distributed under the Terms of Use in http://www.unicode.org/copyright.html
105105

106106
Permission is hereby granted, free of charge, to any person obtaining

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,8 @@ def glob_to_var(dir_base, dir_sub, patch_dir):
10431043
def configure_intl(o):
10441044
icus = [
10451045
{
1046-
'url': 'https://ssl.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.zip',
1047-
'md5': 'f4fca37508fc5d14390501cf17aef084',
1046+
'url': 'https://ssl.icu-project.org/files/icu4c/59.1/icu4c-59_1-src.zip',
1047+
'md5': '29a41f9bb576b06c7eef0487a84a7674',
10481048
},
10491049
]
10501050
def icu_download(path):

deps/icu-small/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
COPYRIGHT AND PERMISSION NOTICE (ICU 58 and later)
22

3-
Copyright © 1991-2016 Unicode, Inc. All rights reserved.
3+
Copyright © 1991-2017 Unicode, Inc. All rights reserved.
44
Distributed under the Terms of Use in http://www.unicode.org/copyright.html
55

66
Permission is hereby granted, free of charge, to any person obtaining

deps/icu-small/README-SMALL-ICU.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Small ICU sources - auto generated by shrink-icu-src.py
22

33
This directory contains the ICU subset used by --with-intl=small-icu (the default)
4-
It is a strict subset of ICU 58 source files with the following exception(s):
5-
* deps/icu-small/source/data/in/icudt58l.dat : Reduced-size data file
4+
It is a strict subset of ICU 59 source files with the following exception(s):
5+
* deps/icu-small/source/data/in/icudt59l.dat : Reduced-size data file
66

77

88
To rebuild this directory, see ../../tools/icu/README.md

deps/icu-small/source/common/appendable.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************
55
* Copyright (C) 2011-2012, International Business Machines
66
* Corporation and others. All Rights Reserved.
77
*******************************************************************************
88
* file name: appendable.cpp
9-
* encoding: US-ASCII
9+
* encoding: UTF-8
1010
* tab size: 8 (not used)
1111
* indentation:4
1212
*

deps/icu-small/source/common/bmpset.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************
@@ -8,7 +8,7 @@
88
*
99
******************************************************************************
1010
* file name: bmpset.cpp
11-
* encoding: US-ASCII
11+
* encoding: UTF-8
1212
* tab size: 8 (not used)
1313
* indentation:4
1414
*

deps/icu-small/source/common/bmpset.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************
@@ -8,7 +8,7 @@
88
*
99
******************************************************************************
1010
* file name: bmpset.h
11-
* encoding: US-ASCII
11+
* encoding: UTF-8
1212
* tab size: 8 (not used)
1313
* indentation:4
1414
*

deps/icu-small/source/common/brkeng.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
************************************************************************************

deps/icu-small/source/common/brkeng.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/**
44
************************************************************************************

deps/icu-small/source/common/brkiter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************

deps/icu-small/source/common/bytestream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
// Copyright (C) 2009-2011, International Business Machines
44
// Corporation and others. All Rights Reserved.

deps/icu-small/source/common/bytestrie.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************
55
* Copyright (C) 2010-2011, International Business Machines
66
* Corporation and others. All Rights Reserved.
77
*******************************************************************************
88
* file name: bytestrie.cpp
9-
* encoding: US-ASCII
9+
* encoding: UTF-8
1010
* tab size: 8 (not used)
1111
* indentation:4
1212
*

deps/icu-small/source/common/bytestriebuilder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************
55
* Copyright (C) 2010-2012, International Business Machines
66
* Corporation and others. All Rights Reserved.
77
*******************************************************************************
88
* file name: bytestriebuilder.cpp
9-
* encoding: US-ASCII
9+
* encoding: UTF-8
1010
* tab size: 8 (not used)
1111
* indentation:4
1212
*

deps/icu-small/source/common/bytestrieiterator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************
55
* Copyright (C) 2010-2012, International Business Machines
66
* Corporation and others. All Rights Reserved.
77
*******************************************************************************
88
* file name: bytestrieiterator.cpp
9-
* encoding: US-ASCII
9+
* encoding: UTF-8
1010
* tab size: 8 (not used)
1111
* indentation:4
1212
*

deps/icu-small/source/common/caniter.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*****************************************************************************
@@ -311,12 +311,12 @@ void U_EXPORT2 CanonicalIterator::permute(UnicodeString &source, UBool skipZeros
311311

312312
// see what the permutations of the characters before and after this one are
313313
//Hashtable *subpermute = permute(source.substring(0,i) + source.substring(i + UTF16.getCharCount(cp)));
314-
permute(subPermuteString.replace(i, U16_LENGTH(cp), NULL, 0), skipZeros, &subpermute, status);
314+
permute(subPermuteString.remove(i, U16_LENGTH(cp)), skipZeros, &subpermute, status);
315315
/* Test for buffer overflows */
316316
if(U_FAILURE(status)) {
317317
return;
318318
}
319-
// The upper replace is destructive. The question is do we have to make a copy, or we don't care about the contents
319+
// The upper remove is destructive. The question is do we have to make a copy, or we don't care about the contents
320320
// of source at this point.
321321

322322
// prefix this character to all of them

deps/icu-small/source/common/chariter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
**********************************************************************

deps/icu-small/source/common/charstr.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************
55
* Copyright (C) 2010-2015, International Business Machines
66
* Corporation and others. All Rights Reserved.
77
*******************************************************************************
88
* file name: charstr.cpp
9-
* encoding: US-ASCII
9+
* encoding: UTF-8
1010
* tab size: 8 (not used)
1111
* indentation:4
1212
*
@@ -15,6 +15,7 @@
1515
*/
1616

1717
#include "unicode/utypes.h"
18+
#include "unicode/putil.h"
1819
#include "charstr.h"
1920
#include "cmemory.h"
2021
#include "cstring.h"

deps/icu-small/source/common/charstr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
**********************************************************************

deps/icu-small/source/common/cmemory.c deps/icu-small/source/common/cmemory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************

deps/icu-small/source/common/cmemory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************

deps/icu-small/source/common/cpputils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************
@@ -8,7 +8,7 @@
88
*
99
******************************************************************************
1010
* file name: cpputils.h
11-
* encoding: US-ASCII
11+
* encoding: UTF-8
1212
* tab size: 8 (not used)
1313
* indentation:4
1414
*/

deps/icu-small/source/common/cstr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************

deps/icu-small/source/common/cstr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************

deps/icu-small/source/common/cstring.c deps/icu-small/source/common/cstring.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************

deps/icu-small/source/common/cstring.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************

deps/icu-small/source/common/cwchar.c deps/icu-small/source/common/cwchar.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************
@@ -8,7 +8,7 @@
88
*
99
******************************************************************************
1010
* file name: cwchar.c
11-
* encoding: US-ASCII
11+
* encoding: UTF-8
1212
* tab size: 8 (not used)
1313
* indentation:4
1414
*

deps/icu-small/source/common/cwchar.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
******************************************************************************
@@ -8,7 +8,7 @@
88
*
99
******************************************************************************
1010
* file name: cwchar.h
11-
* encoding: US-ASCII
11+
* encoding: UTF-8
1212
* tab size: 8 (not used)
1313
* indentation:4
1414
*

deps/icu-small/source/common/dictbe.cpp

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/**
44
*******************************************************************************
@@ -1385,12 +1385,25 @@ CjkBreakEngine::divideUpDictionaryRange( UText *inText,
13851385
// Now that we're done, convert positions in t_boundary[] (indices in
13861386
// the normalized input string) back to indices in the original input UText
13871387
// while reversing t_boundary and pushing values to foundBreaks.
1388+
int32_t prevCPPos = -1;
1389+
int32_t prevUTextPos = -1;
13881390
for (int32_t i = numBreaks-1; i >= 0; i--) {
13891391
int32_t cpPos = t_boundary.elementAti(i);
1392+
U_ASSERT(cpPos > prevCPPos);
13901393
int32_t utextPos = inputMap.isValid() ? inputMap->elementAti(cpPos) : cpPos + rangeStart;
1391-
// Boundaries are added to foundBreaks output in ascending order.
1392-
U_ASSERT(foundBreaks.size() == 0 ||foundBreaks.peeki() < utextPos);
1393-
foundBreaks.push(utextPos, status);
1394+
U_ASSERT(utextPos >= prevUTextPos);
1395+
if (utextPos > prevUTextPos) {
1396+
// Boundaries are added to foundBreaks output in ascending order.
1397+
U_ASSERT(foundBreaks.size() == 0 || foundBreaks.peeki() < utextPos);
1398+
foundBreaks.push(utextPos, status);
1399+
} else {
1400+
// Normalization expanded the input text, the dictionary found a boundary
1401+
// within the expansion, giving two boundaries with the same index in the
1402+
// original text. Ignore the second. See ticket #12918.
1403+
--numBreaks;
1404+
}
1405+
prevCPPos = cpPos;
1406+
prevUTextPos = utextPos;
13941407
}
13951408

13961409
// inString goes out of scope

deps/icu-small/source/common/dictbe.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/**
44
*******************************************************************************

deps/icu-small/source/common/dictionarydata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************

deps/icu-small/source/common/dictionarydata.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*
44
*******************************************************************************

deps/icu-small/source/common/dtintrv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 and later: Unicode, Inc. and others.
1+
// © 2016 and later: Unicode, Inc. and others.
22
// License & terms of use: http://www.unicode.org/copyright.html
33
/*******************************************************************************
44
* Copyright (C) 2008, International Business Machines Corporation and

0 commit comments

Comments
 (0)