Commit graph

31774 commits

Author SHA1 Message Date
Jeff Genovy
d9043765b0 ICU-21777 Move Windows "ICU4C Platform Support" notes to "Building ICU4C" User Guide page. 2021-09-30 16:23:35 -07:00
Craig Cornelius
60c1857f96 ICU-21581 ICU Change Reports for 70rc
See #1877
2021-09-29 16:17:15 -07:00
Shane F. Carr
6115e58966 ICU-21581 Update double-conversion 2021-09-29 12:41:28 -05:00
Steven R. Loomis
4a8b16056f ICU-21764 icu-data-bin: fix filenames to nn_n
ex: icu4c-70_1-data-bin-b.zip
(was incorrectly "70.1" before)
2021-09-29 10:40:55 -07:00
Peter Edberg
4fd10ba2b7 ICU-21581 check non-stable API macros (mostly U_HIDE_INTERNAL_API) 2021-09-29 09:05:40 -07:00
Peter Edberg
2b76d335fb ICU-21581 BRS 70rc, update urename.h pass 2 2021-09-28 16:48:50 -07:00
gnrunge
7857d7424f 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.
2021-09-28 15:50:44 -07:00
yumaoka
7561cb2857 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
2021-09-28 18:12:00 -04:00
Yoshito Umaoka
4d92a97752 ICU-21581 BRS70RC Adding ICU4J serialization test data for ICU4J 70
Deleted ICU4J 65 serialization test data.
2021-09-28 01:16:35 -04:00
Yoshito Umaoka
4e70788350 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.
2021-09-28 01:16:17 -04:00
Yoshito Umaoka
21169d55cd ICU-21581 BRS 70RC Clean up import statements 2021-09-28 01:16:07 -04:00
Markus Scherer
109a830ed2 ICU-21545 fix Unicode properties Bazel build 2021-09-27 17:49:44 -07:00
gnrunge
4af7d969df 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.
2021-09-23 10:00:37 -07:00
Erik Torres
da5fc8e730 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 :)
2021-09-23 09:54:12 -07:00
Elango Cheran
2660845480 ICU-21714 Use FixedDecimal instead of double for plural samples in tests
See #1875
2021-09-22 18:28:15 -07:00
Jeff Genovy
0a478416d2 ICU-21533 Lazily create the internal break iterator used in StringSearch, and improve error handling.
Change NULL to nullptr.
2021-09-22 15:25:26 -07:00
Andy Heninger
e5502fe862 ICU-21662 Userguide on Adoption and UErrorCode
Update the userguide sections on object adoption and UErrorCode,
expanding on how the two interact.
2021-09-22 11:10:23 -07:00
Younies
f1f0b22a2a ICU-21544 Throw argument error when the units are not convertible. 2021-09-22 19:55:58 +02:00
Rob Meyer
b405c1c8db ICU-21581 Fix calendar list in userguide 2021-09-22 12:39:33 -05:00
Shane F. Carr
63637445d9 ICU-21683 ICU-21674 Clear state from UFormattedNumber[Range] in C API
See #1862
2021-09-22 12:34:29 -05:00
Shane F. Carr
469456604a ICU-21675 Allow NaN and Infinity to appear in DecNum strings
See #1871
2021-09-22 12:34:20 -05:00
Shane F. Carr
f39cf84d62 ICU-21556 Support currency as decimal separator in patterns
See #1711
2021-09-22 12:34:05 -05:00
Shane F. Carr
fd5c76edbd ICU-20425 Strip trailing zeros from Java rounding increment
See #1726
2021-09-21 22:28:06 -05:00
Andy Heninger
35dff23fb5 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.
2021-09-21 16:29:51 -07:00
Shane F. Carr
b2c1dffb70 ICU-21545 Add plumbing for running icuexportdata in BRS
See #1857

- Renames tool from icuwriteuprops
- Adds more command-line flags
2021-09-21 17:40:27 -05:00
Younies
9d26c917f2 ICU-21656 fix wrong matching categories.
See #1839
2021-09-21 21:06:14 +02:00
Markus Scherer
f026e967f6 ICU-21524 UnicodeSet pattern parser: code point complement 2021-09-21 11:09:16 -07:00
Steven R. Loomis
7bc2009f7f 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
2021-09-21 12:16:57 -05:00
Markus Scherer
f5cc0c43d6 ICU-11891 UnicodeRegex change supplementary escapes to Java regex syntax 2021-09-20 17:05:18 -07:00
Andy Heninger
6f1d83cf63 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.
2021-09-17 14:35:18 -07:00
Markus Scherer
3f0e003901 ICU-11891 make UnicodeSet.toPattern() well-formed & round-trip 2021-09-17 13:49:13 -07:00
Bernhard Messerklinger
43276e8c34 ICU-21429 Allow timezones with max 2 digits at the end to 2021-09-17 15:26:06 -04:00
Peter Edberg
d5d0b2d811 ICU-21581 integrate CLDR release-40-alpha4 to ICU trunk 2021-09-16 16:15:49 -07:00
Shane F. Carr
7b1bcdcb61 ICU-21668 Fix nickel rounding with away-from-zero rounding mode
See #1814
2021-09-15 21:57:10 -05:00
Shane F. Carr
13fb584b96 ICU-21684 Fix performance issue in NumberRangeFormatter 2021-09-15 16:59:22 -05:00
Shane F. Carr
aa17f2638f ICU-21675 Add Infinity and NaN tests for NumberRangeFormatter 2021-09-15 14:31:21 -05:00
Frank Tang
adb109f440 ICU-21749 Fix stack-use-after-scope bug in uloc
See #1858
2021-09-15 11:25:45 -07:00
Jacky_Yin
29443b8be7 ICU-21752 fix wrong link of howtouseicu 2021-09-15 10:43:15 -07:00
Andy Heninger
46861a5c78 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.
2021-09-14 19:24:23 -07:00
Peter Edberg
e69f337f3c ICU-21669 UPRV_UNREACHABLE > UPRV_UNREACHABLE_EXIT/ASSERT, update usages 2021-09-14 15:22:52 -07:00
Shane F. Carr
cd3721697a ICU-21654 Fix skeleton output for rounding increment in C++
See #1813
2021-09-14 01:55:58 -05:00
Frank Tang
ff8516b0dd ICU-20870 Fix breakage on UCONFIG_NO_FORMATTING 2021-09-13 20:21:13 -07:00
Peter Edberg
0da0fabfae ICU-20870 If locale/lang name lookup fails, canonicalize lang and try again 2021-09-13 09:50:33 -07:00
gnrunge
d4d29fbee3 ICU-21750 Output tail end of the uconfig variation test run in case of failure
to allow easier identification of build or test failures.
2021-09-10 15:46:27 -07:00
Rich Gillam
c37ca411fc 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.
2021-09-10 12:47:15 -07:00
Rich Gillam
b38a49fc7e 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.
2021-09-09 14:27:10 -07:00
Peter Edberg
7851f708a3 ICU-21581 integrate CLDR release-40-alpha3 to ICU trunk 2021-09-09 10:57:21 -07:00
Andy Heninger
0ec329c6e1 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.
2021-09-08 17:24:52 -07:00
Younies
e03dce66ef ICU-21730 Port testGetPreferencesFor ICU4C tests to ICU4J
See #1850
2021-09-08 23:30:18 +02:00
Shane F. Carr
92db25165f ICU-21545 Add icuwriteuprops tool
See #1741
2021-09-08 15:27:43 -05:00