]> granicus.if.org Git - icu/log
icu
2 years agoICU-21763 UVector cleanup, remove old funcs.
Andy Heninger [Sun, 19 Dec 2021 19:51:21 +0000 (11:51 -0800)]
ICU-21763 UVector cleanup, remove old funcs.

Remove the functions UVector::addElementX() and UVector::ensureCapacityX() that
were temporarily added to aid in the cleaning up of UVector's out-of-memory
error handling.

2 years agoICU-21815 Bump xercesImpl from 2.12.0 to 2.12.2 in /tools/release/java
dependabot[bot] [Thu, 27 Jan 2022 16:20:07 +0000 (16:20 +0000)]
ICU-21815 Bump xercesImpl from 2.12.0 to 2.12.2 in /tools/release/java

Bumps xercesImpl from 2.12.0 to 2.12.2.

---
updated-dependencies:
- dependency-name: xerces:xercesImpl
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoICU-21894 A modern version of ucol_safeClone and ucnv_safeClone API
Victor Chang [Fri, 21 Jan 2022 14:52:55 +0000 (14:52 +0000)]
ICU-21894 A modern version of ucol_safeClone and ucnv_safeClone API

2 years agoICU-21699 Refactor codeunit handling
allenwtsu [Tue, 25 Jan 2022 11:27:47 +0000 (11:27 +0000)]
ICU-21699 Refactor codeunit handling

See #1965

2 years agoICU-21896 Use double base in pow()
Mojca Miklavec [Mon, 17 Jan 2022 23:13:27 +0000 (00:13 +0100)]
ICU-21896 Use double base in pow()

gcc 5.5 on Solaris refuses to recognise pow(int, int32_t)

2 years agoICU-21699 Phrase based breaking(Java)
allenwtsu [Mon, 27 Dec 2021 04:20:19 +0000 (04:20 +0000)]
ICU-21699 Phrase based breaking(Java)

See #1955

2 years agoICU-13543 Do not remove -std=c++11 from compiler flags on Solaris
Mojca Miklavec [Mon, 17 Jan 2022 23:04:24 +0000 (00:04 +0100)]
ICU-13543 Do not remove -std=c++11 from compiler flags on Solaris

2 years agoICU-21699 Concatenate Katakana chars
allensu05 [Wed, 19 Jan 2022 17:25:45 +0000 (17:25 +0000)]
ICU-21699 Concatenate Katakana chars

See #1962

2 years agoICU-21699 Separate lb and lw
allenwtsu [Mon, 17 Jan 2022 02:14:22 +0000 (02:14 +0000)]
ICU-21699 Separate lb and lw

See #1959

2 years agoICU-21699 Phrase based breaking(C++)
allenwtsu [Thu, 21 Oct 2021 06:57:21 +0000 (06:57 +0000)]
ICU-21699 Phrase based breaking(C++)

See #1936

2 years agoICU-21353 Implement DateTimePatternGenerator use of correct datetime pattern;
Peter Edberg [Tue, 11 Jan 2022 04:04:58 +0000 (20:04 -0800)]
ICU-21353 Implement DateTimePatternGenerator use of correct datetime pattern;
includes new getter/setter API per TC discussion.

2 years agoICU-21699 Fix CjkBreakEngine performance issue
allenwtsu [Mon, 10 Jan 2022 14:07:13 +0000 (22:07 +0800)]
ICU-21699 Fix CjkBreakEngine performance issue

1. vector.contains() uses sequential comparison, O(n).
   As the vector size is great, the performance will be impacted.
   Remove this unnecessary check, vector.contains(), in C++.

2. At Java's CjkBreakEngine, replace "vector.contains()" with "if(pos > previous)" to deal with duplicate breakpoint position.
   This way, C++ and Java implementation will be synchronous.
   Test: ant checkTest -Dtestclass='com.ibm.icu.dev.test.rbbi.RBBITest'
   (RBBTest#TestBreakAllChars() can generate duplicate position for word break. It could pass with this change)

2 years agoICU-21862 icu4c unit conversions: support inverting 0 and Infinity (for vehicle-fuel)
Hugo van der Merwe [Fri, 3 Dec 2021 14:36:59 +0000 (14:36 +0000)]
ICU-21862 icu4c unit conversions: support inverting 0 and Infinity (for vehicle-fuel)

See #1947

2 years agoICU-21878 Sync icu4j's CjkBreakEngine to icu4c's
allenwtsu [Wed, 22 Dec 2021 15:50:44 +0000 (15:50 +0000)]
ICU-21878 Sync icu4j's CjkBreakEngine to icu4c's

See #1953

3 years agoICU-21763 UVector cleanup in Formatting Code
Andy Heninger [Sat, 20 Nov 2021 00:33:58 +0000 (16:33 -0800)]
ICU-21763 UVector cleanup in Formatting Code

Revise uses of UVector in Formatting related code to better handle memory
allocation failures.  This is one of an ongoing series of commits to address
similar problems with UVector usage throughout ICU.

The changes primarily involve switching uses of UVector::addElementX() to the
new adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.

3 years agoICU-21796 Rename bazel build files from BUILD to BUILD.bazel. This can
gnrunge [Thu, 16 Dec 2021 00:25:31 +0000 (16:25 -0800)]
ICU-21796 Rename bazel build files from BUILD to BUILD.bazel. This can
prevent conflicts when ICU users have their own BUILD files already.

3 years agoICU-21863 Fix div-by-zero in ICU4J, test inverse unit conversions
Hugo van der Merwe [Mon, 29 Nov 2021 19:01:31 +0000 (20:01 +0100)]
ICU-21863 Fix div-by-zero in ICU4J, test inverse unit conversions

Also cleans up some old icu-units TODOs:
- This PR fixes icu-units#38 and icu-units#63 TODOs (now part of ICU-21862)
- icu-units#21 is obsolete

3 years agoICU-21855 Export case data for ICU4X
Iain Ireland [Mon, 8 Nov 2021 18:17:54 +0000 (10:17 -0800)]
ICU-21855 Export case data for ICU4X

3 years agoICU-21847 Move UnicodeSet to stack in constructor
Frank Tang [Wed, 1 Dec 2021 23:39:35 +0000 (23:39 +0000)]
ICU-21847 Move UnicodeSet to stack in constructor

See #1941

3 years agoICU-21762 Export Script_Extensions data in icuexportdata tool
Elango Cheran [Tue, 30 Nov 2021 21:39:14 +0000 (21:39 +0000)]
ICU-21762 Export Script_Extensions data in icuexportdata tool

See #1933

3 years agoICU-21865 Move include ctgmath to complex
Frank Tang [Tue, 30 Nov 2021 19:49:23 +0000 (19:49 +0000)]
ICU-21865 Move include ctgmath to complex

See #1948

3 years agoICU-21763 UVector cleanup, continued.
Andy Heninger [Fri, 12 Nov 2021 00:12:44 +0000 (16:12 -0800)]
ICU-21763 UVector cleanup, continued.

Revise uses of UVector in the next batch of files to better handle memory
allocation failures.  This is one of an ongoing series of commits to address
similar problems with UVector usage throughout ICU.

The changes primarily involve switching uses of UVector::addElementX() to the
new adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.

3 years agoICU-21613 Fix undefined behaviour in ComplexUnitsConverter::applyRounder
Hugo van der Merwe [Mon, 29 Nov 2021 23:23:30 +0000 (00:23 +0100)]
ICU-21613 Fix undefined behaviour in ComplexUnitsConverter::applyRounder

3 years agoICU-21838 Migrate Azure pipelines win2016 images to win2019 images. Update MacOSX...
Jeff Genovy [Wed, 24 Nov 2021 19:36:39 +0000 (11:36 -0800)]
ICU-21838 Migrate Azure pipelines win2016 images to win2019 images. Update MacOSX to Catalina.

3 years agoICU-21819 Make all comparison operators const.
Fredrik Roubert [Wed, 16 Sep 2020 15:40:42 +0000 (17:40 +0200)]
ICU-21819 Make all comparison operators const.

3 years agoICU-21807 Merge maint-70 to main
Shane F. Carr [Wed, 17 Nov 2021 18:36:59 +0000 (12:36 -0600)]
ICU-21807 Merge maint-70 to main

3 years agoICU-21824 add a basic CONTRIBUTING.md
Steven R. Loomis [Wed, 3 Nov 2021 16:17:41 +0000 (11:17 -0500)]
ICU-21824 add a basic CONTRIBUTING.md

3 years agoICU-21763 UVector cleanup in Locale & Region Code
Andy Heninger [Tue, 9 Nov 2021 20:53:59 +0000 (12:53 -0800)]
ICU-21763 UVector cleanup in Locale & Region Code

Revise uses of UVector in Locale and Region related code to better handle
memory allocation failures.  This is one of an ongoing series of commits to
address similar problems with UVector usage throughout ICU.

The changes involve switching uses of UVector::addElementX() to the new
adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.

In Region::loadRegionData(), improved the overall error detection and recovery.

3 years agoICU-21814 fix typo ConstrainableFieldPosition
Markus Scherer [Mon, 8 Nov 2021 17:48:31 +0000 (09:48 -0800)]
ICU-21814 fix typo ConstrainableFieldPosition

3 years agoICU-21825 Integrate tzdata2021a4 including America/Coral_Harbour Link fix maint/maint-70 1932/head
Yoshito Umaoka [Thu, 4 Nov 2021 17:13:47 +0000 (13:13 -0400)]
ICU-21825 Integrate tzdata2021a4 including America/Coral_Harbour Link fix

3 years agoICU-21820 ucase_toFullXyz() reset output pointer
Markus Scherer [Fri, 5 Nov 2021 19:05:45 +0000 (12:05 -0700)]
ICU-21820 ucase_toFullXyz() reset output pointer

3 years agoICU-21778 UnicodeString::clone error handling fix
Andy Heninger [Sat, 30 Oct 2021 00:17:41 +0000 (17:17 -0700)]
ICU-21778 UnicodeString::clone error handling fix

Change UnicodeString::clone() to return a nullptr if the underlying copy
constructor produces a bogus string. This can happen if the copy constructor
encounters a memory allocation failure in allocating the copy's internal string
buffer, or if the string being copied was already bogus.

The change is consistent with other ICU clone functions, which are generally
defined to return nullptr in case of errors.

3 years agoICU-21793 Fix ucptrietest golden diff
Jérémy Lal [Wed, 3 Nov 2021 01:31:18 +0000 (02:31 +0100)]
ICU-21793 Fix ucptrietest golden diff

3 years agoICU-21763 UVector cleanup in vtzone.cpp
Andy Heninger [Sat, 2 Oct 2021 05:20:18 +0000 (22:20 -0700)]
ICU-21763 UVector cleanup in vtzone.cpp

Revise uses of UVector in vtzone.cpp to better handle memory allocation
failures.  This is one of an ongoing series of commits to address similar
problems with UVector usage throughout ICU.

The changes primarily involve switching uses of UVector::addElementX() to the
new adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.

3 years agoICU-21763 UVector cleanup in time zone code
Andy Heninger [Mon, 11 Oct 2021 18:02:42 +0000 (11:02 -0700)]
ICU-21763 UVector cleanup in time zone code

Revise uses of UVector in time zone related code to better handle memory
allocation failures.  This is one of an ongoing series of commits to address
similar problems with UVector usage throughout ICU.

The changes involve switching uses of UVector::addElementX() to the new
adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.

3 years agoICU-21579 Fix warnings in number formatting code release-70-1
Shane F. Carr [Wed, 27 Oct 2021 22:02:46 +0000 (15:02 -0700)]
ICU-21579 Fix warnings in number formatting code

3 years agoICU-21811 Adding local region mapping for Coral Harbour and integrating revised tz...
Yoshito Umaoka [Wed, 27 Oct 2021 18:17:26 +0000 (14:17 -0400)]
ICU-21811 Adding local region mapping for Coral Harbour and integrating revised tz 2021a3 (2021e) data.

3 years agoICU-21800 Fix ARM64 search path for Windows
Jacky_Yin [Wed, 20 Oct 2021 03:23:16 +0000 (11:23 +0800)]
ICU-21800 Fix ARM64 search path for Windows

3 years agoICU-21776 Update BRS API docs task instructions
Elango Cheran [Tue, 26 Oct 2021 19:48:28 +0000 (12:48 -0700)]
ICU-21776 Update BRS API docs task instructions

3 years agoICU-21811 TZ update 2021a (2021e) cldr/2021-10-25
Yoshito Umaoka [Mon, 25 Oct 2021 13:44:04 +0000 (09:44 -0400)]
ICU-21811 TZ update 2021a (2021e)

3 years agoICU-21797 TZ 2021d equivalent updates based on 2021a (ICU 2021a2)
Yoshito Umaoka [Thu, 21 Oct 2021 19:40:50 +0000 (15:40 -0400)]
ICU-21797 TZ 2021d equivalent updates based on 2021a (ICU 2021a2)

3 years agoICU-21807 Merge maint-70 to main
Shane F. Carr [Fri, 22 Oct 2021 00:21:36 +0000 (17:21 -0700)]
ICU-21807 Merge maint-70 to main

3 years agoICU-21580 change site.icu-project.org to icu.unicode.org etc 1914/head
Markus Scherer [Thu, 21 Oct 2021 01:58:04 +0000 (18:58 -0700)]
ICU-21580 change site.icu-project.org to icu.unicode.org etc

3 years agoICU-21803 Fix Windows build break on MSYS2 with GCC 11
Jeff Genovy [Thu, 21 Oct 2021 19:02:08 +0000 (12:02 -0700)]
ICU-21803 Fix Windows build break on MSYS2 with GCC 11

3 years agoICU-21776 Update double conversion
Shane Carr [Wed, 20 Oct 2021 20:54:13 +0000 (13:54 -0700)]
ICU-21776 Update double conversion

3 years agoICU-21580 fix links to CLDR Language Plural Rules
Markus Scherer [Wed, 20 Oct 2021 16:42:35 +0000 (09:42 -0700)]
ICU-21580 fix links to CLDR Language Plural Rules

3 years agoICU-21524 UnicodeSet.hasStrings(): no complement in toPattern() cldr/2021-10-19
Markus Scherer [Tue, 19 Oct 2021 00:19:15 +0000 (17:19 -0700)]
ICU-21524 UnicodeSet.hasStrings(): no complement in toPattern()

3 years agoICU-21776 integrate CLDR release-40-beta3 to ICU maint/maint-70
Peter Edberg [Thu, 14 Oct 2021 18:13:07 +0000 (11:13 -0700)]
ICU-21776 integrate CLDR release-40-beta3 to ICU maint/maint-70

3 years agoICU-21776 Update versions for GA and regenerate Jar files
Erik Torres [Wed, 6 Oct 2021 21:20:42 +0000 (21:20 +0000)]
ICU-21776 Update versions for GA and regenerate Jar files

See #1902

3 years agoICU-21776 integrate CLDR release-40-beta2 to ICU maint/maint-70
Peter Edberg [Wed, 6 Oct 2021 07:27:34 +0000 (00:27 -0700)]
ICU-21776 integrate CLDR release-40-beta2 to ICU maint/maint-70

3 years agoICU-21777 Move Windows "ICU4C Platform Support" notes to "Building ICU4C" User Guide...
Jeff Genovy [Thu, 30 Sep 2021 01:58:35 +0000 (18:58 -0700)]
ICU-21777 Move Windows "ICU4C Platform Support" notes to "Building ICU4C" User Guide page.

3 years agoICU-21649 Adds build and execution of Unicode update tools to GHA CI.
gnrunge [Thu, 30 Sep 2021 18:25:03 +0000 (11:25 -0700)]
ICU-21649 Adds build and execution of Unicode update tools to GHA CI.
Checks that the build process completes without failure and that the
generated data is identical with the data currently in the repository.

ICU-21649 Fix trigger mechanism.

3 years agoICU-21777 Move Windows "ICU4C Platform Support" notes to "Building ICU4C" User Guide...
Jeff Genovy [Thu, 30 Sep 2021 01:58:35 +0000 (18:58 -0700)]
ICU-21777 Move Windows "ICU4C Platform Support" notes to "Building ICU4C" User Guide page.

3 years agoICU-21581 ICU Change Reports for 70rc cldr/2021-09-29 release-70-rc
Craig Cornelius [Wed, 29 Sep 2021 19:05:52 +0000 (19:05 +0000)]
ICU-21581 ICU Change Reports for 70rc

See #1877

3 years agoICU-21581 Update double-conversion
Shane F. Carr [Wed, 29 Sep 2021 07:24:20 +0000 (02:24 -0500)]
ICU-21581 Update double-conversion

3 years agoICU-21764 icu-data-bin: fix filenames to nn_n
Steven R. Loomis [Tue, 28 Sep 2021 21:18:11 +0000 (16:18 -0500)]
ICU-21764 icu-data-bin: fix filenames to nn_n

ex: icu4c-70_1-data-bin-b.zip
(was incorrectly "70.1" before)

3 years agoICU-21581 check non-stable API macros (mostly U_HIDE_INTERNAL_API)
Peter Edberg [Wed, 29 Sep 2021 05:22:18 +0000 (22:22 -0700)]
ICU-21581 check non-stable API macros (mostly U_HIDE_INTERNAL_API)

3 years agoICU-21581 BRS 70rc, update urename.h pass 2
Peter Edberg [Tue, 28 Sep 2021 19:18:10 +0000 (12:18 -0700)]
ICU-21581 BRS 70rc, update urename.h pass 2

3 years agoICU-21581 Creates a new workflow to be activated upon merge into main or
gnrunge [Mon, 27 Sep 2021 22:31:44 +0000 (15:31 -0700)]
ICU-21581 Creates a new workflow to be activated upon merge into main or
maintenance branches only and adds GHA CI automation of BRS task 'Test ICU4J
with only little-endian ICU4C data', cf.:
https://unicode-org.github.io/icu/processes/release/tasks/integration.html#test-icu4j-with-only-little-endian-icu4c-data.

ICU-21581 Adds copyright notice and comment to new GHA script.

3 years agoICU-21767 Merging tz2021b changes.
yumaoka [Tue, 28 Sep 2021 16:17:51 +0000 (16:17 +0000)]
ICU-21767 Merging tz2021b changes.

Update ICU (main branch and upcoming version 70) halfway to 2021b.

- with Samoa & Jordan rule updates
- with corrected pre-1993 transitions in Malawi (?), Portugal, etc.
- without for now (due to release timing) renaming Pacific/Enderbury to Pacific/Kanton
- without merging many zones whose timestamps agree since 1970

3 years agoICU-21581 BRS70RC Adding ICU4J serialization test data for ICU4J 70
Yoshito Umaoka [Mon, 27 Sep 2021 06:52:59 +0000 (02:52 -0400)]
ICU-21581 BRS70RC Adding ICU4J serialization test data for ICU4J 70

Deleted ICU4J 65 serialization test data.

3 years agoICU-21581 BRS70RC Adding API signature file for ICU4J 70
Yoshito Umaoka [Mon, 27 Sep 2021 06:23:41 +0000 (02:23 -0400)]
ICU-21581 BRS70RC Adding API signature file for ICU4J 70

Also fixed API doc tag problem in DacimalFormatSymbols.java. Deleted ICU4J 60 API signature file.

3 years agoICU-21581 BRS 70RC Clean up import statements
Yoshito Umaoka [Mon, 27 Sep 2021 05:46:07 +0000 (01:46 -0400)]
ICU-21581 BRS 70RC Clean up import statements

3 years agoICU-21545 fix Unicode properties Bazel build
Markus Scherer [Mon, 27 Sep 2021 18:46:06 +0000 (11:46 -0700)]
ICU-21545 fix Unicode properties Bazel build

3 years agoICU-21751 Improves failure reporting of the run-with-stubdata CI target and
gnrunge [Wed, 22 Sep 2021 22:36:03 +0000 (15:36 -0700)]
ICU-21751 Improves failure reporting of the run-with-stubdata CI target and
also updates the instuctions how to reproduce a failur case.

ICU-21751 Review comments worked in.

3 years agoICU-21581 BRSRC 70.1 Version update and regenerate configure for v70.1
Erik Torres [Wed, 22 Sep 2021 22:51:08 +0000 (22:51 +0000)]
ICU-21581 BRSRC 70.1 Version update and regenerate configure for v70.1

In this PR, I am updating the version number from 70.0.1 for the BRS task.
Previously, we had frontloaded part of this, so the diff in this PR are not as numerous.

It has also been decided that we should differentiate frontloaded tasks and RC tasks by having the version numbers being:
Frontload version number: XX.X.X (70.0.1 -> Major.minor.patch)
RC/GA version number: XX.X (70.1 -> Major.minor)

I've added some documentation for this, for future releases :)

3 years agoICU-21714 Use FixedDecimal instead of double for plural samples in tests
Elango Cheran [Wed, 22 Sep 2021 05:21:58 +0000 (05:21 +0000)]
ICU-21714 Use FixedDecimal instead of double for plural samples in tests

See #1875

3 years agoICU-21533 Lazily create the internal break iterator used in StringSearch, and improve...
Jeff Genovy [Wed, 18 Nov 2020 03:02:15 +0000 (19:02 -0800)]
ICU-21533 Lazily create the internal break iterator used in StringSearch, and improve error handling.

Change NULL to nullptr.

3 years agoICU-21662 Userguide on Adoption and UErrorCode
Andy Heninger [Wed, 22 Sep 2021 02:48:58 +0000 (19:48 -0700)]
ICU-21662 Userguide on Adoption and UErrorCode

Update the userguide sections on object adoption and UErrorCode,
expanding on how the two interact.

3 years agoICU-21544 Throw argument error when the units are not convertible.
Younies [Wed, 22 Sep 2021 14:07:43 +0000 (16:07 +0200)]
ICU-21544 Throw argument error when the units are not convertible.

3 years agoICU-21581 Fix calendar list in userguide
Rob Meyer [Thu, 10 Sep 2020 16:55:53 +0000 (09:55 -0700)]
ICU-21581 Fix calendar list in userguide

3 years agoICU-21683 ICU-21674 Clear state from UFormattedNumber[Range] in C API
Shane F. Carr [Tue, 21 Sep 2021 07:56:49 +0000 (07:56 +0000)]
ICU-21683 ICU-21674 Clear state from UFormattedNumber[Range] in C API

See #1862

3 years agoICU-21675 Allow NaN and Infinity to appear in DecNum strings
Shane F. Carr [Tue, 21 Sep 2021 20:09:45 +0000 (20:09 +0000)]
ICU-21675 Allow NaN and Infinity to appear in DecNum strings

See #1871

3 years agoICU-21556 Support currency as decimal separator in patterns
Shane F. Carr [Tue, 21 Sep 2021 09:01:45 +0000 (09:01 +0000)]
ICU-21556 Support currency as decimal separator in patterns

See #1711

3 years agoICU-20425 Strip trailing zeros from Java rounding increment
Shane F. Carr [Tue, 21 Sep 2021 07:33:11 +0000 (07:33 +0000)]
ICU-20425 Strip trailing zeros from Java rounding increment

See #1726

3 years agoICU-21662 UVector cleanup in rbtz.cpp
Andy Heninger [Wed, 15 Sep 2021 21:51:48 +0000 (14:51 -0700)]
ICU-21662 UVector cleanup in rbtz.cpp

Revise uses of UVector in rbtz.cpp to better handle memory allocation failures.
This is one of an ongoing series of commits to address similar problems with
UVector usage throughout ICU.

The changes include

- Use LocalPointers and UVector deleter functions to simplify OOM checking and recovery.
- Fix RuleBasedTimeZone::addTransitionRule(rule) to have standard ICU adopt behavior
  when errors occur, meaning automatic deletion of the incoming rule. This simplifies
  both the implementation of the function and the code at the call sites.
- Update addTransitionRule() call sites. Includes modifying the Dangi calendar initializtion
  to not silently ignore errors.
- struct Transition is changed to derive from UMemory, which allows the use of LocalPointers.

3 years agoICU-21545 Add plumbing for running icuexportdata in BRS
Shane F. Carr [Tue, 21 Sep 2021 05:15:02 +0000 (05:15 +0000)]
ICU-21545 Add plumbing for running icuexportdata in BRS

See #1857

- Renames tool from icuwriteuprops
- Adds more command-line flags

3 years agoICU-21656 fix wrong matching categories.
Younies [Thu, 16 Sep 2021 18:04:34 +0000 (18:04 +0000)]
ICU-21656 fix wrong matching categories.

See #1839

3 years agoICU-21524 UnicodeSet pattern parser: code point complement
Markus Scherer [Tue, 14 Sep 2021 20:04:27 +0000 (13:04 -0700)]
ICU-21524 UnicodeSet pattern parser: code point complement

3 years agoICU-21756 icu4j: port UnicodeKnownIssues.java from CLDR
Steven R. Loomis [Sat, 18 Sep 2021 00:51:23 +0000 (19:51 -0500)]
ICU-21756 icu4j: port UnicodeKnownIssues.java from CLDR

- port of CLDR-14588
- use a fake Consumer<String>
- currently logs after each test class, not ideal but better
- Formerly ICU-12589 but that is not as related
- add unit test

3 years agoICU-11891 UnicodeRegex change supplementary escapes to Java regex syntax
Markus Scherer [Mon, 20 Sep 2021 22:34:28 +0000 (15:34 -0700)]
ICU-11891 UnicodeRegex change supplementary escapes to Java regex syntax

3 years agoICU-21662 UVector cleanup in basictz.cpp
Andy Heninger [Sat, 11 Sep 2021 23:57:03 +0000 (16:57 -0700)]
ICU-21662 UVector cleanup in basictz.cpp

Revise uses of UVector in basictz.cpp to better handle memory allocation failures.
This is one of an ongoing series of commits to address similar problems with
UVector usage throughout ICU.

The changes primarily involve switching to the use of LocalPointers for
the tracking of memory ownership, and to simplify cleanup in case of errors.

In the function BasicTimeZone::getTimeZoneRulesAfter(), also switched some additional
allocated memory to use LocalPointer or LocalMemory, for consistency in
memory handling.

3 years agoICU-11891 make UnicodeSet.toPattern() well-formed & round-trip
Markus Scherer [Fri, 17 Sep 2021 02:51:56 +0000 (19:51 -0700)]
ICU-11891 make UnicodeSet.toPattern() well-formed & round-trip

3 years agoICU-21429 Allow timezones with max 2 digits at the end to
Bernhard Messerklinger [Thu, 19 Aug 2021 10:41:02 +0000 (12:41 +0200)]
ICU-21429 Allow timezones with max 2 digits at the end to

3 years agoICU-21581 integrate CLDR release-40-alpha4 to ICU trunk
Peter Edberg [Thu, 16 Sep 2021 21:52:16 +0000 (14:52 -0700)]
ICU-21581 integrate CLDR release-40-alpha4 to ICU trunk

3 years agoICU-21668 Fix nickel rounding with away-from-zero rounding mode
Shane F. Carr [Tue, 14 Sep 2021 08:08:10 +0000 (08:08 +0000)]
ICU-21668 Fix nickel rounding with away-from-zero rounding mode

See #1814

3 years agoICU-21684 Fix performance issue in NumberRangeFormatter cldr/2021-09-15
Shane F. Carr [Wed, 15 Sep 2021 05:39:06 +0000 (00:39 -0500)]
ICU-21684 Fix performance issue in NumberRangeFormatter

3 years agoICU-21675 Add Infinity and NaN tests for NumberRangeFormatter
Shane F. Carr [Wed, 15 Sep 2021 06:34:01 +0000 (01:34 -0500)]
ICU-21675 Add Infinity and NaN tests for NumberRangeFormatter

3 years agoICU-21749 Fix stack-use-after-scope bug in uloc
Frank Tang [Sat, 11 Sep 2021 03:46:00 +0000 (03:46 +0000)]
ICU-21749 Fix stack-use-after-scope bug in uloc

See #1858

3 years agoICU-21752 fix wrong link of howtouseicu
Jacky_Yin [Fri, 10 Sep 2021 06:34:16 +0000 (14:34 +0800)]
ICU-21752 fix wrong link of howtouseicu

3 years agoICU-21662 UVector Error Handling in Regex
Andy Heninger [Fri, 10 Sep 2021 21:59:46 +0000 (14:59 -0700)]
ICU-21662 UVector Error Handling in Regex

Clean up some oversights from commit 0ec329c. This was triggered by fuzz testing finding
a memory leak with the original commit, see https://oss-fuzz.com/testcase-detail/4656781834452992

I was unable to replicate the fuzzing failure, but reviewing the nearby code showed
some likely problems.

In this commit,
- Fix UStack::pop() to not delete the popped element when a deleter function is present.
  This was a bug, but because there were no stacks with deleters, was not causing trouble.

- Change RegexCompile::compileSet() to delete the set if it cannot be added to the internal
  vector of sets. I suspect this is the cause of the fuzzing leak - 0ec329c changed the
  behavior of UVector in the presence of errors.

- Changed RegexCompile::fSetStack to use an object deleter function. This fixes the
  leak checking at the points new elements are pushed onto this stack.

3 years agoICU-21669 UPRV_UNREACHABLE > UPRV_UNREACHABLE_EXIT/ASSERT, update usages
Peter Edberg [Tue, 14 Sep 2021 05:46:55 +0000 (22:46 -0700)]
ICU-21669 UPRV_UNREACHABLE > UPRV_UNREACHABLE_EXIT/ASSERT, update usages

3 years agoICU-21654 Fix skeleton output for rounding increment in C++
Shane F. Carr [Sat, 11 Sep 2021 06:48:58 +0000 (06:48 +0000)]
ICU-21654 Fix skeleton output for rounding increment in C++

See #1813

3 years agoICU-20870 Fix breakage on UCONFIG_NO_FORMATTING
Frank Tang [Mon, 13 Sep 2021 21:54:42 +0000 (14:54 -0700)]
ICU-20870 Fix breakage on UCONFIG_NO_FORMATTING

3 years agoICU-20870 If locale/lang name lookup fails, canonicalize lang and try again
Peter Edberg [Wed, 8 Sep 2021 22:20:48 +0000 (15:20 -0700)]
ICU-20870 If locale/lang name lookup fails, canonicalize lang and try again

3 years agoICU-21750 Output tail end of the uconfig variation test run in case of failure
gnrunge [Fri, 10 Sep 2021 20:15:17 +0000 (13:15 -0700)]
ICU-21750 Output tail end of the uconfig variation test run in case of failure
to allow easier identification of build or test failures.

3 years agoICU-13353 Fixed several problems preventing horizontal resource inheritance from...
Rich Gillam [Fri, 6 Aug 2021 21:00:41 +0000 (14:00 -0700)]
ICU-13353 Fixed several problems preventing horizontal resource inheritance from working as intended, and added a
Java version of a unit test I'd previously only added on the C++ side.

3 years agoICU-21735 Fixed two old references to UNUM_CURRENCY_CASH, one in a comment, one in...
Rich Gillam [Wed, 8 Sep 2021 22:53:34 +0000 (15:53 -0700)]
ICU-21735 Fixed two old references to UNUM_CURRENCY_CASH, one in a comment, one in a unit-test failure message--
to refer to the now-correct UNUM_CASH_CURRENCY.

3 years agoICU-21581 integrate CLDR release-40-alpha3 to ICU trunk
Peter Edberg [Thu, 9 Sep 2021 04:42:54 +0000 (21:42 -0700)]
ICU-21581 integrate CLDR release-40-alpha3 to ICU trunk

3 years agoICU-21662 Improve UVector error handling.
Andy Heninger [Thu, 2 Sep 2021 23:09:04 +0000 (16:09 -0700)]
ICU-21662 Improve UVector error handling.

This is the next installment of UVector error handling cleanup. It includes:

- Revise UStack to follow the conventions of UVector, to leave the stack
  unmodified when there is an incoming error code. And, for stacks with a
  deleter function, to delete the incoming object if it cannot be
  succesfully pushed.

 - Review all useage of UStack in ICU; adjust call sites as needed.

 - Review all uses of UVector::addElementX() in the implementation of
   - Regular Expressions
   - Break Iteration
   - toolutil/xmlparser

   changing to the updated functions, and adjusting call sites as needed.