Commit graph

33249 commits

Author SHA1 Message Date
Frank Tang
b65650bc5f ICU-23077 Correct the internalGet call inside Calendar
See #3439
2025-03-19 16:22:43 -07:00
Steve Lawrence
3edd9c828a ICU-22303 Support parsing infinity/NaN when decimal pattern match is required
If a DecimalFormat pattern contains a decimal point and
setDecimalPatternMatchRequired is true, then DecimalFormat parse() fails
to parse infinity/NaN representations. This is because infinity/NaN
parsing does not set the HAS_DECIMAL_SEPARATOR_FLAG and so the
RequireDecimalSeparatorValidator fails.

This modifies the RequireDecimalSeparatorValidator so that it does not
fail if the INFINITY or NAN flags are set, making it so decimal
separators are not required if the infinity/NaN representations are
parsed.
2025-03-19 16:19:41 -07:00
Frank Tang
255eb4ef3e ICU-23069 Fix Hebrew calendar calculation
See #3438
2025-03-19 13:45:52 -07:00
Frank Tang
cdf52396dc ICU-22817 Fix memory leak in basictz by using LocalPointer
See https://github.com/LuMingYinDetect/icu_defects/blob/main/icu_1.png
2025-03-18 14:03:29 -07:00
Frank Tang
545bf260e1 ICU-22817 Fix potential memory leak by using LocalPointer
See https://github.com/LuMingYinDetect/icu_defects/blob/main/icu_10.png
2025-03-18 14:02:55 -07:00
Frank Tang
ba0f39b592 ICU-22817 Use LocalArray to fix memory leak 2025-03-18 12:21:23 -07:00
Markus Scherer
72406ed78a
ICU-23056 merge maint/maint-77 to main (#3436) 2025-03-13 15:07:01 -07:00
Markus Scherer
f23af97cf4 ICU-22923 ICU 77 release page updates
See #3432
2025-03-13 14:15:58 -07:00
Tim Chevalier
c5b7dce96b ICU-23073 Use string_view constants for option names and formatter names 2025-03-13 10:21:46 -07:00
Mihai Nita
457157a92a ICU-22923 Workaround for addLikelySubtags(und-Latn-RS) bug 2025-03-10 16:06:50 -07:00
Mihai Nita
cc9adb6c32 ICU-22923 BRS_77_GA Update version number to 77.1 (No more -SNAPSHOT) 2025-03-10 14:58:01 -07:00
yumaoka
27cc39a620 ICU-23067 Add test option to ignore runtime time zone data sensitive test. 2025-03-07 17:57:45 -05:00
dependabot[bot]
30e23b0d28 ICU-23054 Bump the github-actions group with 4 updates
See #3424
2025-03-06 10:23:43 -08:00
Rich Gillam
faa80a2972 ICU-23062 Added null check in one spot in genrb where we know we've seen crashes. 2025-03-06 17:50:59 +00:00
Elango Cheran
9cc28a6428 ICU-23056 Add workflow to generate commit checker report
See #3413
2025-02-28 17:19:53 -08:00
Mihai Nita
443c8c5187 ICU-23064 Fix for POSIX_MADV_RANDOM undefined 2025-02-27 14:22:47 -08:00
Frank Tang
53adb4bca8 ICU-23060 Fix TestLargeAppend
Correct the test based on the kMaxCapacity
setToBogus on error
2025-02-27 11:02:54 -08:00
DraganBesevic
d6ca2ba5de ICU-22923 Integrate CLDR 47 release beta2, part 4, remove unused variables in tests 2025-02-26 12:54:55 -08:00
DraganBesevic
19dd858b6a ICU-22923 Integrate CLDR 47 release beta2, part 3, source and test files 2025-02-26 12:54:55 -08:00
DraganBesevic
7931e6f7ce ICU-22923 Integrate CLDR 47 release beta2, part 2, data files 2025-02-26 12:54:55 -08:00
DraganBesevic
c210730f76 ICU-22923 Integrate CLDR 47 release beta2, part 1, binary files 2025-02-26 12:54:55 -08:00
Frank Tang
0b88b1c754 ICU-23060 Fix heap-buffer-overflow when UnicodeString size too large
See #3416
2025-02-25 15:36:06 -08:00
Tim Chevalier
0748442ed6 ICU-23059 ICU4C MF2: Update spec tests
This updates the MF2 spec tests to 943479b602 with the following exceptions:

- functions/currency.json and functions/math.json are omitted because these are not yet implemented

- bidi.json will be handled in a future PR

- u-options.json will be handled in a future PR

Changes include:
* `:integer` now returns a value encapsulating the rounded numeric value of the argument, rather than
  the value itself.
* Fallbacks are handled according to the current spec.
* Fallback values are not passed into functions.
* Characters inside literal fallbacks are properly escaped.
* The test runner skips null values properly.
* The test runner handles boolean `expErrors` in defaultTestProperties.
* `:string` normalizes its input and normalizeNFC() has been refactored so it can be called there.
2025-02-25 12:24:07 -08:00
Elango Cheran
60a0d9fcd8 ICU-23055 Update PR template to reflect v78 tickets after ICU 77rc cut 2025-02-24 22:01:46 +01:00
Mihai Nita
7aae07acc9 ICU-22922 BRS77 Fix version in release-icu4c-ubuntu.yml
Will need a proper fix, but let's just release this for now.
2025-02-21 15:15:46 -08:00
Markus Scherer
950ddc299b ICU-22922 ICU 77rc download page
See #3407
2025-02-21 13:30:33 -08:00
Mihai Nita
9f51147189 ICU-22922 BRS77 Update ICU4J serialization test data 2025-02-21 12:08:05 -08:00
Mihai Nita
1f1c09027c ICU-22922 BRS77 Add ICU4J API signature file 2025-02-21 12:05:51 -08:00
sven-oly
1b48d262c2 ICU-22922 Scrubbing closed issues
See #3399
2025-02-21 11:24:10 -08:00
Mihai Nita
6cc1618136 ICU-22922 ICU4C produce search doxygen doc by default 2025-02-21 10:09:51 -08:00
Mihai Nita
2339ae4c0d ICU-22922 Organize import statements 2025-02-20 12:56:18 -08:00
sven-oly
cfc208f546 ICU-22922 ICU4C RC APIChangeReport updates 2025-02-19 16:50:14 -08:00
sven-oly
b42e7250f0 ICU-22922 ICU4J RC APIChangeReport.html 2025-02-19 16:47:37 -08:00
Mihai Nita
d69d452382 ICU-22922 BRS_77_RC: Update version number to 77.1-SNAPSHOT 2025-02-19 15:59:57 -08:00
Robin Leroy
215131c1a4 ICU-22984 Remove some obnoxious tests from 2003 2025-02-19 23:30:34 +01:00
Elango Cheran
579840539f ICU-22920 Bump the github-actions group across 1 directory with 2 updates
See #3289
2025-02-19 19:54:43 +01:00
sven-oly
66c6771a03 ICU-22922 Update ICU4J status
See #3398
2025-02-18 16:23:49 -08:00
Mihai Nita
3b2bd4b19d ICU-22921 Fix some javadoc issues 2025-02-18 13:58:16 -08:00
Fredrik Roubert
61b2dbc980 ICU-22901 Replace fixed size buffer with CharString. 2025-02-14 21:42:22 +01:00
Fredrik Roubert
7da5e90a3d ICU-22901 Update Locale::init() to use StringPiece. 2025-02-14 20:52:40 +01:00
Younies Mahmoud
3c85be19ec ICU-22781 Uncomment and enable constant denominator tests
See #3385
2025-02-14 10:34:51 +01:00
Mihai Nita
acc69ceb55 ICU-23044 MF2, ICU4J, bring the implementation close to the spec at LDML 47 2025-02-13 10:47:57 -08:00
Elango Cheran
ecd22c10d0 ICU-22185 Add docs for using VS Code to develop in ICU4J 2025-02-13 09:38:10 -08:00
Fredrik Roubert
3f5fd0df73 ICU-22901 Update ulocimp_canonicalize() &co. to use std::string_view. 2025-02-13 15:50:54 +01:00
Fredrik Roubert
afa06d2bcd ICU-22901 Update _canonicalize() to use std::string_view. 2025-02-13 15:50:54 +01:00
Fredrik Roubert
5463eac8b4 ICU-22901 Update ulocimp_getKeywords() to use std::string_view. 2025-02-13 15:50:54 +01:00
Fredrik Roubert
aa724e1e3f ICU-22901 Move calls to uloc_getDefault() out of _canonicalize(). 2025-02-13 15:50:54 +01:00
Fredrik Roubert
83726260ef ICU-23031 Reinstate special case for "-u-va-posix" lost by ICU-22520.
Inside of locimp_forLanguageTag() in _appendKeywords() in uloc_tag.cpp
there's a hardcoded special case for "-u-va-posix" which appends the
"_POSIX" variant but this was missed during the refactoring made for
ICU-22520 (there isn't any test case that covers this).

So the call to locimp_forLanguageTag() did more than previously
understood, but we still don't want to have to call that for every
language tag that has BCP-47 extensions just in order to get to this
special case. Instead, add a special case also to ulocimp_getSubtags().

For this to work nicely, the loop in _getVariant() that copies variants
needs to be refactored so that it easily can break when encountering the
start of any BCP-47 extension (which also has the welcome side-effect of
making it more efficient, being able to append an entire variant at once
to the output sink).

This was broken by commit 678d5c1273.
2025-02-13 08:50:17 +01:00
Frank Tang
59719f09d9 ICU-22934 Fix typo in PR#3230
ICU-22934 Fix error handling while new return nullptr

ICU-22934 Simplfied

ICU-22934 more

ICU-22934 fix leak
2025-02-12 16:56:20 -08:00
David Barts
b81956ebcc ICU-22808 Correct a factually incorrect doc comment. 2025-02-12 16:37:33 -08:00