Commit graph

281 commits

Author SHA1 Message Date
Mihai Nita
457157a92a ICU-22923 Workaround for addLikelySubtags(und-Latn-RS) bug 2025-03-10 16:06:50 -07:00
DraganBesevic
d49c1242f9 ICU-22922 Integrate CLDR 47 release alpha1, part 3, source files 2025-01-30 13:45:15 -08:00
Craig Cornelius
e38ac306bc ICU-22920 fix exhaustive tests for likely subtags failure ICU-22976 2024-11-21 14:47:56 -08:00
Shane F. Carr
700c5e36a1
ICU-22922 Merge maint/maint-76 to main (#3258) 2024-11-11 17:33:19 -08:00
Frank Tang
1dcb4bcb2d ICU-22765 fix uloc_addLikelySubtags on "und@x=private" 2024-10-16 15:05:03 -07:00
Craig
ebbadebdfd ICU-22938 FiIx unit tests for 'und_Hant_CN' in C & J 2024-10-03 17:01:13 -07:00
Craig
109008da3b ICU-22723 ICU76: Update known issue references to cloned reports. BRS #27
See #3215
2024-09-25 15:46:23 -07:00
DraganBesevic
aabadf7289 ICU-22723 Integrate CLDR 46 release alpha2, part 5, exclude failing unit tests for exhaust tests; spaces <-> tabs 2024-08-22 08:22:56 -07:00
DraganBesevic
ebceedde21 ICU-22723 Integrate CLDR 46 release alpha0, part 3, source files 2024-08-22 08:22:56 -07:00
Fredrik Roubert
0178a07a26 ICU-22793 Clang-Tidy: google-readability-casting
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-07-04 22:32:12 +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
6d4cea57ed ICU-22727 fix addLikelySubtags for 5-8 chars lang codes
Fix C++ code, add tests for C, C++ and Java API
2024-04-11 12:31:36 -07:00
Frank Tang
b2539f44df ICU-22534 BRS75 Remove fixed logKnownIssue
CLDR17099 is fixed in CLDR44 and the test now passed. Remove
the logKnownIssue so it will test and report future breakage.
2024-03-28 16:11:34 -07:00
Frank Tang
d259da8118 ICU-22700 Fix large POSIX charset name cause hang
Fix fuzzer found issue of hang that caused by long POSIX charset name.
Limit the POSIX charset name to at most 64 chars.
2024-03-21 11:33:52 -07:00
Fredrik Roubert
91721504ef ICU-22621 Clang-Tidy: modernize-return-braced-init-list
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/return-braced-init-list.html
2024-03-21 13:50:45 +01:00
Fredrik Roubert
7c22ff7541 ICU-22621 Clang-Tidy: readability-string-compare
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/string-compare.html
2024-03-19 15:55:56 +01:00
Fredrik Roubert
e017edc97d ICU-22621 Clang-Tidy: readability-qualified-auto
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/qualified-auto.html
2024-03-19 15:55:56 +01:00
Fredrik Roubert
5401c12018 ICU-22621 Clang-Tidy: modernize-use-nullptr
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-nullptr.html
2024-03-15 14:31:54 +01:00
Frank Tang
de9910659d ICU-22661 Limit the size of variants in Locale
See #2821
2024-03-14 16:23:51 -07:00
Craig
89cf56333f ICU-22534 BRS#27 fix CI-Exhaustive-Main breakage for locale qaa 2024-03-07 13:47:49 +01:00
Craig
7bc202ae87 ICU-22534 BRS#27 scrub closed issues (frontload) 2024-03-05 11:15:28 -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
Frank Tang
fa6a4661ba ICU-22545 Fix addLikelySubtags for pseudo Locales 2023-10-31 15:00:34 -07:00
Shane F. Carr
b070c932ad
ICU-22560 Merge ICU 74 maintenance branch to main (#2689) 2023-10-30 13:50:52 -07:00
Frank Tang
92eeb45811 ICU-22547 fix addLikelySubtags for 4 chars script code
Also fix ICU-22546 to correct the comments in the API doc
and add additional unit tests
2023-10-27 17:29:05 -07:00
Peter Edberg
2f7bfd87cb ICU-22326 CLDR release-44-beta5 to ICU main part 3 (ICU sources: lib, tools, tests) 2023-10-26 10:59:18 -07:00
DraganBesevic
597e3110a5 ICU-22325 CLDR 44 beta2 integration to ICU part three, source files changes 2023-10-04 15:18:56 -07:00
Peter Edberg
e1af930c6a ICU-22325 BRS 74rc move cldr testdata to consistent place, adjust test & tools to match 2023-10-03 10:24:27 -07:00
Peter Edberg
28572ab67e ICU-22325 CLDR release-44-alpha3 to main part 3 (ICU sources: lib, tools, tests) 2023-09-15 14:02:20 -07:00
Frank Tang
386e9a10db ICU-22504 Fix buffer overflow write error 2023-09-15 11:01:37 -07:00
Frank Tang
68a61daa95 ICU-22497 Fix buffer-overflow READ for toLanguateTag 2023-09-12 15:21:26 -07:00
Peter Edberg
2270c174a5 ICU-22325 CLDR release-44-alpha1 to main:
- binaries, binary-as-source, CLDR data sources;
  - CLDR test data & dtd, ICU lib/tool/test source updates.
2023-08-22 14:40:51 -07:00
Frank Tang
667ee72b7c ICU-22457 count() of getUnicodeKeywords is incorrect
The count() is incorrect if the Locale contains extension which is not -u-
for example -x-, -t-.

Currently, this PR only contains tests to show the problem.

ICU-22457 Fix the enum_count
2023-08-21 14:44:10 -07:00
Frank Tang
ffc449de62 ICU-20777 Merge the likelySubtags implemention
Change testdata/likelySubtags.txt to consider FAIL line

ICU-20777 Fix Java Tests

ICU-20777 Fix all issues

ICU-20777 Incase timeout

ICU-20777

ICU-20777 Skip Data Driven test
2023-08-18 09:35:54 -07:00
Markus Scherer
b6dcc95d3c ICU-21833 remove redundant void parameter lists
See #2351
2023-03-02 09:31:57 -08:00
Peter Edberg
18f6a3a6e2 ICU-22220 CLDR release-43-alpha2 to ICU main 2023-02-27 11:09:02 -08:00
Peter Edberg
d469e628f3 ICU-22220 CLDR release-43-alpha1 to ICU main 2023-02-21 11:39:48 -08:00
Frank Yung-Fong Tang
331172f0a3 ICU-22262 Automate environment test
See #2309
2023-02-15 15:24:19 -08:00
Frank Tang
638acd0c38 ICU-21374 Add a CFI build bot for ICU4C
Add the github action bot to build with cfi
Also fix all the known issues which require the change from C style cast to
static_cast inside the i18n and common directory while we are sure about
the object. and use
C++ style dynamic_cast for base-to-derive cast in other code inside i18n
and common and in test code or tool.
Change to use const_cast for casting between const / non-const
2023-02-06 15:47:14 -08:00
Fredrik Roubert
2de88f9d9c ICU-21833 Replace UChar with char16_t in all C++ code. 2023-02-06 19:27:44 +01:00
Fredrik Roubert
2e0d30cfcf ICU-21833 Replace NULL with nullptr in all C++ code. 2023-02-03 20:20:38 +01:00
Frank Tang
de0a28644b ICU-22251 Move sprintf to snprintf.
See #2291
2023-01-25 23:23:29 -08:00
Peter Edberg
8d411e9b6a ICU-22220 integrate CLDR release-43-m0 to ICU main for 73, update maven-build files 2023-01-10 11:32:24 -08:00
Fredrik Roubert
030fa1a479 ICU-21148 Consistently use standard lowercase true/false everywhere.
This is the normal standard way in C, C++ as well as Java and there's no
longer any reason for ICU to be different. The various internal macros
providing custom boolean constants can all be deleted and code as well
as documentation can be updated to use lowercase true/false everywhere.
2022-09-07 20:56:33 +02:00
Peter Edberg
d99abb6d65 ICU-21957 integrate CLDR release-42-alpha1b to ICU main for 72 2022-08-09 16:05:20 -07:00
Peter Edberg
0266970e97 ICU-21957 integrate CLDR release-42-alpha1 to ICU main for 72 2022-08-05 09:39:58 -07:00
gnrunge
5a77fd9d11 ICU-21997 Fixes currency code retrieval for locale: instead of selecting the
first currency in the list now select the first legal tender currency in the
list. Or the first currency if the list has no legal tender currencies (which
is the previous behaviour).

ICU-21997 Removed an overlooked earlier unit test attempt.

ICU-21997 Shields C++ unit test from compilation when configuration flag
UCONFIG_NO_FORMATTING is set.
2022-06-16 13:49:15 -07:00
Rich Gillam
01e1adc9e4 ICU-21460 Changed the ULocale initializers to allow locale IDs that use BCP47 syntax, but with '_' as a field delimiter.
(APIs that specifically require BCP47 syntax are unaffected-- they still require '-').
2021-09-03 12:47:02 -07:00
Frank Yung-Fong Tang
cfffa2b83b ICU-21676 Fix strcpy buffer override in ultag_parse
See #1767
2021-07-14 10:26:14 -07:00
Frank Tang
b13be666cd ICU-21597 Fix Null-deref W in canonicalizeLocale 2021-04-28 15:37:08 -07:00