Commit graph

32626 commits

Author SHA1 Message Date
Rahul Pandey
a0cdb9cda5 ICU-22597 Add MSVC build bot to build ICU4C without exceptions
See #2829
2024-03-07 16:14:16 +01:00
Craig
89cf56333f ICU-22534 BRS#27 fix CI-Exhaustive-Main breakage for locale qaa 2024-03-07 13:47:49 +01:00
Frank Tang
e0a711c0a4 ICU-22633 Fix Hebrew overflow issue 2024-03-06 14:52:19 -08:00
Fredrik Roubert
c0c46988c5 ICU-22612 Update configure files from configure.ac using autoreconf. 2024-03-06 10:56:53 +01:00
Vincent Torri
3a6b1ef80e ICU-22612 usage of C++11 implies the existence of stdint.h, so remove useless checks
See #2860
2024-03-06 10:56:53 +01:00
Fredrik Roubert
53568e8dfc ICU-22520 Refactor CharString & CharStringByteSink into helper.
The repeated sequence of allocating a CharString and CharStringByteSink,
before calling some function that writes into this, can be moved into a
single shared helper function which then is used to give all ulocimp.h
functions that write to ByteSink an overload that instead returns a
CharString, to make call sites look like perfectly normal C++ code.
2024-03-05 23:44:50 +01:00
Craig
7bc202ae87 ICU-22534 BRS#27 scrub closed issues (frontload) 2024-03-05 11:15:28 -08:00
Fredrik Roubert
02a1bfc59f ICU-22520 Refactor CheckedArrayByteSink & u_terminateChars into helper.
The repeated sequence of allocating a CheckedArrayByteSink, calling some
function that writes into this, then checking for overflow and returning
through u_terminateChars() can all be moved into a single shared helper
function.
2024-03-05 20:09:54 +01:00
Rich Gillam
c610d7f986 ICU-22534 Promote (almost) all @draft ICU 73 APIs to @stable ICU 73 2024-03-04 18:05:29 -08:00
Fredrik Roubert
232362bf17 ICU-22520 Use operator* instead of calling std::optional::value().
There's a subtle difference between these two ways of accessing the
value of an optional and that is that the value() method can throw an
exception if there isn't any value, but operator* won't do that (it's
just undefined behavior if there isn't any value).

ICU4C code never tries to access any optional value without first
checking that it exists, but the ability of the value() method to throw
an exception in case there wasn't any such check first is the reason why
std::exception symbols previously could show up in debug builds.

This reverts the changes that were made to dependencies.txt by
commit dc70b5a056.
2024-03-04 23:40:15 +01:00
Frank Tang
73744ea41f ICU-22633 Fix overflow cause by large AM PM value
Fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66771
2024-03-04 13:48:24 -08:00
Frank Tang
37526240e1 ICU-22274 Mark known issue for 3 timezones for EnvTest
tz2024a change "Asia/Qostanay" "Asia/Almaty" but test machines has
not yet update their zoneinfo to 2024a so we mark them as known issues

extern long timezone; in <time.h> (set man tzset on Linux shell)
returns wrong value when TZ=America/Scoresbysund
2024-03-04 11:06:39 -08:00
Shane F. Carr
71b9b88200 ICU-22319 Fix number range semanticallyEquivalent
See #2385
2024-03-04 08:23:00 -08:00
Frank Tang
aa3e49fa9a ICU-22274 Add zdump info while env test fail 2024-02-29 14:36:14 -08:00
Fredrik Roubert
929cd9bb4f ICU-22520 Standardize return on error for all locale functions.
· No function should do anything if an error has already occurred.
· On error, a value of 0, nullptr, {}, etc., should be returned.
· Values shouldn't have overloaded meanings (eg. index or found).
· Values that are never used should not be returned at all.
2024-02-29 20:42:03 +01:00
David Carlier
35353f2d7f ICU-22671 format_date should use c++ nullptr instead of 0 for udat_open/DateFormat::create
- [x] Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22671
- [x] Required: The PR title must be prefixed with a JIRA Issue number. <!-- For example: "ICU-1234 Fix xyz" -->
- [x] Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
- [x] Required: Each commit message must be prefixed with a JIRA Issue number. <!-- For example: "ICU-1234 Fix xyz" -->
- [ ] Issue accepted (done by Technical Committee after discussion)
- [ ] Tests included, if applicable
- [ ] API docs and/or User Guide docs changed or added, if applicable
2024-02-29 20:02:20 +01:00
Fredrik Roubert
137b4c9e47 ICU-22556 Update configure files from configure.ac using autoreconf. 2024-02-29 19:43:43 +01:00
Jordan Williams
75ff7952b9 ICU-22556 Prefer cc and c++ compilers
When building icu4c, it defaults to clang instead of gcc when the default compiler, cc / c++, is a symlink to gcc / g++.
This not the expected behavior when building C and C++ code.
It appears that this behavior was put in place originally for supporting C++11, which hopefully is no longer such a concern.
This PR adjusts the configure.ac for icu4c to prefer the cc and c++ compilers first.
2024-02-29 19:43:43 +01:00
Craig
96fb7ae73a ICU-22534 ICU4J 75 frontload API change report 2024-02-29 08:49:43 -08:00
Frank Tang
0563859d8c ICU-22679 Optimize calendar code for edge cases
See #2853
2024-02-28 17:08:24 -08:00
Peter Edberg
7d636aecf7 ICU-22655 Implement "special" conversion for speed-beaufort, part 1 icu4j 2024-02-28 12:57:33 -08:00
Craig
09ccfb9956 ICU-22534 ICU4J 75 frontload: API status update 2024-02-28 11:38:41 -08:00
Frank Tang
ceca6c4120 ICU-22274 display tz db version on the test machine. 2024-02-28 11:07:32 -08:00
Elango Cheran
0d7cedc0dd ICU-22532 Trigger CI workflows when workflow definitions change 2024-02-28 12:50:43 -05:00
DraganBesevic
a1925abf4f ICU-22534 CLDR 45 alpha2 integration to ICU 2024-02-28 08:28:08 -08:00
Craig
d271d3f269 ICU-21952 fix draft version of withoutLocale to ICU 75 2024-02-27 17:03:46 -08:00
Markus Scherer
d1fa15bc1f ICU-22571 add Aran script code variant 2024-02-27 14:23:59 -08:00
Elango Cheran
c2b328267e ICU-22532 Increase timeout for exhaustive ICU4J tests 2024-02-27 10:58:18 -08:00
Elango Cheran
3df505b511 ICU-22532 Increase Github Actions CI parallelism from 2 to 4 2024-02-27 10:58:09 -08:00
Frank Tang
ec800e7407 ICU-22633 Return error if era is out of range 2024-02-27 10:56:28 -08:00
Fredrik Roubert
314f03eeaf ICU-22532 Don't dereference nullptr (-Wtautological-undefined-compare). 2024-02-27 14:11:38 +01:00
Mihai Nita
201af462fc ICU-22675 Migrate from deprecated boxed primitive constructors to their replacements 2024-02-26 16:39:05 -08:00
Rūdolfs Mazurs
394341edba ICU-22646 Update collation test for Latvian locale
This test is also relevant to issues ICU-12765 ICU-13508 ICU-20532
2024-02-26 14:09:40 -08:00
Steven R. Loomis
ea1c6da07f ICU-22677 update LICENSE and README.md and pom.xml
- https://github.com/unicode-org/.github/issues/15
- use Unicode-3.0 in pom instead of raw license link
- https://github.com/unicode-org/.github/issues/15
2024-02-26 14:34:59 -06:00
Steven R. Loomis
6d15faab48 ICU-22677 update CONTRIBUTING.md
- https://github.com/unicode-org/.github/issues/12
2024-02-26 11:44:35 -06:00
Rahul Pandey
3c82e6857c ICU-22676 Undefine move32 since it is interpreted system call with MSVC ARM64 2024-02-26 08:55:31 -08:00
Shane F. Carr
fd5d6c97b1 ICU-22532 Improve commit checker instructions
See #2622
2024-02-23 16:38:14 -06:00
Elango Cheran
4633254f9e ICU-22314 Move Cygwin test to post-merge pipeline 2024-02-22 11:23:17 -08:00
Diego Gutierrez Yepiz
f3e50a7624 ICU-22582 Avoid synchronizing in RuleBasedBreakIterator and ULocale unless strictly necessary
See #2775
2024-02-21 09:38:41 -08:00
Elango Cheran
8acebe4a0c ICU-22314 Add PR triggers for Azure pipelines
See #2835
2024-02-21 13:38:48 +05:30
Rahul Pandey
df46d089d5 ICU-22314 Refactor Azure CI into workflows conditional on modified paths
See #2701
2024-02-16 15:23:47 +05:30
Markus Scherer
90b2eed71a ICU-22533 compact norm16 tables
See #2827
2024-02-14 14:49:43 -08:00
Markus Scherer
164a56b736 ICU-22533 move custom normalization page from Sites to GitHub 2024-02-14 09:35:14 -08:00
Frank Tang
b24b251bca ICU-22633 Fix more int overflow issues in calendar 2024-02-13 17:24:18 -08:00
Fredrik Roubert
939f08f274 ICU-22520 Use C++ function signatures for internal C++ functions.
Some of this code was originally written as C code and some of this code
was originally written as C++ code but made to resemble the then already
existing code that had once been C code. Changing it all to normal C++
now will make it easier and safer to work with going forward.

· Use unnamed namespace instead of static.
· Use reference instead of non-nullable pointer.
· Use bool instead of UBool.
· Use constexpr for static data.
· Use U_EXPORT instead of U_CAPI or U_CFUNC.
· Use the default calling convention instead of U_EXPORT2.
2024-02-12 21:44:06 +01:00
Fredrik Roubert
69c8e12642 ICU-22520 Remove local custom code for parsing variant subtags.
Now when the parseTagString() helper function just is a wrapper over
ulocimp_getSubtags() it can be replaced by calling that function
directly instead and letting it handle variant subtags as well.
2024-02-09 20:26:09 +01:00
Fredrik Roubert
61fdbe0d06 ICU-22520 Refactor code to remove the use of goto for error handling.
This is to facilitate further refactoring of the locale code, goto
doesn't play all too well with C++ memory handling.
2024-02-09 18:47:22 +01:00
Peter Edberg
2c16b037cf ICU-22557 Add kxv_IN to build-icu-data.xml, update generate stubs 2024-02-09 09:40:52 -08:00
Frank Tang
abcb80fd53 ICU-22615 Test TimeZoneNames API will not assert with non ASCII.
Add tests and return error when the ID is non ASCII
2024-02-08 23:37:14 -08:00
yumaoka
cd251ee62e ICU-22659 tzdata2024a updates in ICU repo 2024-02-08 15:00:39 -05:00