Commit graph

23789 commits

Author SHA1 Message Date
DraganBesevic
aa5fc99b33 ICU-22723 Integrate CLDR 46 release m0, part 1, binary files 2024-05-24 11:32:57 -07:00
Mihai Nita
788b893214 ICU-22769 Fix the jar generation to not use versioned folder 2024-05-22 10:01:41 -07:00
Frank Tang
6ac6fdda74 ICU-22730 propagate error avoid overflow 2024-05-16 00:27:14 -07:00
Henri Sivonen
398890853d ICU-22718 Export disallowed/ignored UTS 46 data for ICU4X 2024-05-15 11:20:09 -07:00
Tim Chevalier
e6ac2a292f ICU-22753 Fix read-after-move in MF2
In StaticErrors::addError() and DynamicErrors::addError(),
don't read from `e` after moving out of it.
2024-05-14 12:40:06 -07:00
Tim Chevalier
db0694e8ab ICU-22740 Add missing template arguments in MF2 parser
This fixes a clang-17 `-Wctad-maybe-unsupported` warning.
2024-05-14 12:39:44 -07:00
Fredrik Roubert
ed52e0a25b ICU-22721 Rename scoped variable to not shadow variable in outer scope. 2024-05-14 19:03:14 +02:00
Tim Chevalier
6d5555a739 ICU-22746 Import ICU4J tests
Includes code fixes for `numberingSystem`, `percent`,
and `precision` options in `:number`

Also includes a code fix for number selection:
  Refactor code to conform more closely to the steps in the spec,
  and call the number formatter before the selector so that a FormattedNumber
  with the right options is selected on

Some modifications were needed to add missing params
and to mark some tests as ignored (see ICU-22754).
Also added decimal arguments in JSON test reader

Finally, some redundant tests are removed:
all tests in messageformat2test_features and
messageformat2test_icu, and
messageformat2test_builtin are now covered by JSON tests
2024-05-13 14:51:14 -07:00
Mihai Nita
75ef0d97e1 ICU-22723 Add line number info to icuexportdata handleError
See #3004
2024-05-13 11:58:09 -07:00
Henri Sivonen
f5056cb46a ICU-22757 Remove allow list of known contractions with precomposed form from ICU4X mode of genuca
This assumes that future cases will work OK, since the addition that was seen in Unicode 16 alpha
was OK.
2024-05-13 11:25:01 -07:00
Fredrik Roubert
564c92d666 ICU-22721 Delete obsolete __STRICT_ANSI__ workaround for MinGW.
This was originally added in the year 2004 for ICU-3854 but is no longer
needed with contemporary versions of MinGW where it instead as of GCC 14
causes this problem:

__STRICT_ANSI__ seems to have been undefined; this is not supported.
2024-05-10 16:11:21 -07:00
Tim Chevalier
85a9b2ee84 ICU-22746 Refactor MF2 tests to be data-driven and add JSON lib
This change moves all test strings out of test/intltest/messageformat2test.cpp
and into JSON files, which are parsed/run by code in
a new file, test/intltest/messageformat2test_read_json.cpp .
It also removes the file test/intltest/messageformat2test_fromjson.cpp ,
which contained tests that are now stored in JSON files.

To enable this, a new vendored library is added:
nlohmann/json .
This library is introduced as a dependency for the MF2 tests.
The required part of the library is a single header file,
which is added under icu4c/source/tools/toolutil/.
Also adds a wrapper file for the vendored JSON header file
that defines macros that disable exceptions.

Co-authored-by: Steven R. Loomis <srl295@gmail.com>
2024-05-07 14:09:24 -07:00
Henri Sivonen
7eaefe076e ICU-22758 Make icuexportdata compatible with Unicode 16 normalization 2024-05-06 08:27:06 -07:00
Shane F. Carr
23bf38f10f ICU-22764 Fix gendict memory safety in toml uchars mode 2024-05-03 11:02:29 -07:00
Frank Tang
464531eb8e ICU-22079 Fix bidi fuzzer
Check data length to avoid memcpy out of bound.
2024-05-02 11:59:22 -07:00
Frank Tang
1ff249b73f ICU-21589 Remove format-overflow warning
1. double size one stack buffer
2. add pragma to ignore some theorical case because the array are in
   same length but some fields are shorter than the other.

ICU-21589 wrap with defined(__GNUC__)

ICU-21589 avoid clang
2024-05-02 18:23:08 +02:00
Markus Scherer
fe23620f12 ICU-22707 appease rbbitst UBSan for RBBIStateTableRow 2024-04-29 17:00:55 -07:00
Markus Scherer
012c326755 ICU-22707 UCA 16 data first cut 2024-04-29 17:00:55 -07:00
Markus Scherer
5416451ae2 ICU-22707 more vo=U: Egyp. hieroglyphs 2024-04-29 17:00:55 -07:00
Markus Scherer
ba1ecef7de ICU-22707 Unicode 16 security data first cut 2024-04-29 17:00:55 -07:00
Markus Scherer
423b4c7c31 ICU-22707 Unicode 16 script metadata 2024-04-29 17:00:55 -07:00
Markus Scherer
e57aeba98c ICU-22707 test normalization quick check properties against ppucd 2024-04-29 17:00:55 -07:00
Markus Scherer
94ef2757a3 ICU-22707 gennorm2 & C++ norm2impl support MaybeNo
- .nrm formatVersion 5
- updated data format doc & design doc
2024-04-29 17:00:55 -07:00
Markus Scherer
d0e43d6943 ICU-22707 fix normalization bug: chars that combine back & fwd 2024-04-29 17:00:55 -07:00
Markus Scherer
4d9612bfa2 ICU-22707 Age 6:2, run generate.sh 2024-04-29 17:00:55 -07:00
Markus Scherer
d79c7bf5a0 ICU-22707 expectedLong script names 2024-04-29 17:00:55 -07:00
Markus Scherer
560e4bbf41 ICU-22707 preparseucd.py 2024-04-29 17:00:55 -07:00
Markus Scherer
ed8fe2c336 ICU-22707 ICU Unicode 16 version numbers 2024-04-29 17:00:55 -07:00
Markus Scherer
ce846a2367 ICU-22707 update change log for 16 2024-04-29 17:00:55 -07:00
Markus Scherer
2688bca066 ICU-22707 change log for Unicode 16 minus hardcoded props 2024-04-29 17:00:55 -07:00
Frank Tang
a57c68364e ICU-22079 Rename 2024-04-29 14:51:13 -07:00
Frank Tang
a3d3e8abc5 ICU-22079 Add ubidi_fuzzer
Port the code from https://unicode-org.atlassian.net/browse/ICU-22079
to add fuzzer for ubidi
2024-04-29 14:51:13 -07:00
Fredrik Roubert
755b0981ec ICU-22721 Reorder initializer to match declaration (-Wreorder-ctor). 2024-04-29 11:44:35 -07:00
Fredrik Roubert
d7c1f6b55d ICU-22721 Add missing const (-Wwritable-strings). 2024-04-29 11:44:35 -07:00
Fredrik Roubert
d7a1815c3d ICU-22721 Remove superfluous semicolons (-Wextra-semi). 2024-04-29 11:44:35 -07:00
Fredrik Roubert
8b84ae1dda ICU-22721 Comment out variables only used in commented out code. 2024-04-29 11:43:21 -07:00
Fredrik Roubert
ec57da8651 ICU-22721 Delete unused variables. 2024-04-29 11:43:21 -07:00
Fredrik Roubert
a7e23a531c ICU-22721 Clang-Tidy: modernize-use-override
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-override.html
2024-04-29 19:28:40 +02:00
Frank Tang
3aa8b8c5ee ICU-22742 Fix handling of XA,XB,XC for addLikelySubtags
Add more tests.

ICU-22742 Add PS... variants

ICU-22742 Add java tests

ICU-22742 extend tests

ICU-22742 wrap java
2024-04-24 15:24:35 -07:00
Frank Tang
a91cbd6578 ICU-22750 Fix Floating-point-exception in icu::Calendar::roll
See #2979
2024-04-23 09:46:29 -07:00
Fredrik Roubert
4c9770f73d ICU-22721 Remove now obsolete disabled warnings for LocalPointerBase.
The missing operators that used to be warned about were all deleted by
commit 75eab42060.
2024-04-22 21:58:17 +02:00
Mihai Nita
0e4c2d8bc6 ICU-22724 ICU BRS 76: front-load update version to 76.0.1 2024-04-18 16:57:47 -07:00
Frank Tang
0c02f8c007 ICU-22743 Change internal functions to propagate errors up. 2024-04-18 15:32:59 -07:00
Shane F. Carr
5e35ffc87e
ICU-22745 Merge ICU 75 maintenance branch to main (#2972) 2024-04-18 15:04:33 -07:00
DraganBesevic
7750081bda ICU-22535 Integrate CLDR 45 release beta5 2024-04-15 17:55:43 -07:00
Markus Scherer
0379e638a9 ICU-22520 doc: uloc_getName() & others may fail
for example with a U_ILLEGAL_ARGUMENT_ERROR since PR #2813
in some cases where the implementation may have
returned with a misleading U_BUFFER_OVERFLOW_ERROR
2024-04-15 15:59:57 -07:00
Fredrik Roubert
d8ee6843b9 ICU-22726 Add new CLDR 45 currency code XCG also to gCurrencyList. 2024-04-15 15:56:45 -07:00
Mihai Nita
aebd5ba54b ICU-22533 Change API version annotation from 75.0 to 75 2024-04-15 11:17:15 -07:00
DraganBesevic
9518b26a91 ICU-22535 Integrate CLDR 45 release beta4, part 5, restore copyright headers in catalog.txt 2024-04-12 16:21:12 -07:00
DraganBesevic
c27199ec9c ICU-22535 Integrate CLDR 45 release beta4, part 3, data updates 2024-04-12 16:21:12 -07:00