Commit graph

3380 commits

Author SHA1 Message Date
Fredrik Roubert
d8ee6843b9 ICU-22726 Add new CLDR 45 currency code XCG also to gCurrencyList. 2024-04-15 15:56:45 -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
Shane F. Carr
8a1df5a7f4 ICU-22692 Change SimpleNumber truncateAt to setMaximumIntegerDigits
Also promotes the remaining draft SimpleNumber functions to stable.

See #2892
2024-03-26 16:13:46 -07:00
Fredrik Roubert
028fa70c29 ICU-22701 Bugfix: Make test independent of the default locale.
The original intention behind this test case was to use the root locale,
but ures_getFunctionalEquivalent() is implemented by calling ures_open()
which sets URES_OPEN_LOCALE_DEFAULT_ROOT which will cause the default
locale to be loaded before the root locale.

To avoid that, pick a locale other than the root locale for the test.
2024-03-21 09:16:05 -07:00
Fredrik Roubert
6ad78a08c7 ICU-22621 Clang-Tidy: readability-redundant-control-flow
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/redundant-control-flow.html
2024-03-19 15:55:56 +01:00
Frank Tang
de9910659d ICU-22661 Limit the size of variants in Locale
See #2821
2024-03-14 16:23:51 -07: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
Markus Scherer
d1fa15bc1f ICU-22571 add Aran script code variant 2024-02-27 14:23:59 -08:00
Peter Edberg
12cbf73e39 ICU-22583 BRS 75rc CLDR 45-alpha0 to ICU main part 3 (source and test code changes) 2024-02-06 18:07:44 -08:00
Fredrik Roubert
ca53838b83 ICU-22576 Remove now obsolete pre-C11 backward compatibility code. 2024-01-19 08:05:24 +09:00
Mihai Nita
47b9a517be ICU-21107 Specify language standard versions C11 & C++17 also for MSVC
ICU-21107 Specify language standard versions C11 & C++17 also for MSVC
2024-01-17 09:26:22 -08:00
Fredrik Roubert
078b88a11a ICU-21107 Specify language standard versions C11 & C++17 also for MSVC.
There were until now no versions specified at all, relying on the
default (or commandline overrides) to be sufficiently recent.
2024-01-16 22:22:05 +09:00
Fredrik Roubert
85b7f5fda2 ICU-22604 Use 'void' for empty C parameter lists (-Wstrict-prototypes). 2023-12-19 09:27:01 +09:00
Frank Tang
7bef50e71d ICU-22609 Fix nulldef w/ bogus locale in DateFormat::create* 2023-12-15 16:14:56 -08:00
Fredrik Roubert
e2d1d3ed43 ICU-22592 Rename source file that should not be directly compiled. 2023-12-14 20:11:50 +01:00
Fredrik Roubert
e112f896a2 ICU-22576 Use standard alignof() with modern C. 2023-12-14 19:11:29 +01:00
Rich Gillam
bcae6f2a43 ICU-22575 Change AvailableFormatsSink to allow locales to inherit availableFormats items from the root locale. 2023-12-04 12:47:50 -08:00
Fredrik Roubert
f99f8c678b ICU-22522 Delete unused variables.
Clang 16 is more thorough in finding unused variables, so these must be
removed to be able to compile this code using Clang 16 and -Werror.
2023-11-30 15:34:36 +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
d44f5bc9f0 ICU-22326 logKnownIssue skip for exhaustive test failures with kxv(_Deva)? day/month names 2023-10-27 14:59:16 -07:00
Shane F. Carr
fc386c3a9a ICU-22149 Be more graceful with missing lang bundle data
See #2635
2023-10-03 14:20:26 -07:00
Markus Scherer
d8659b476d ICU-22404 new properties IDS_Unary_Operator, ID_Compat_Math_*, NFKC_SCF 2023-09-16 14:41:51 -07:00
Rich Gillam
14ca2b0e6d ICU-22313 Various fixes for duration formatting:
- Changed the C++ and Java interfaces to that the URBNF_DURATION ruleset is marked deprecated.
- Fixed a bug in RuleBasedNumberFormat in both Java and C++ that caused the existing duration-formatting rules to produce bogus results when used on a non-integral value.

(Earlier versions of this PR added code to use a MeasureFormat under the covers when a caller used
unum_open(UNUM_DURATION).  I took that out because of backward compatibility concerns, so we're still using RBNF
in the C API.  I'm hoping to add a "real" duration formatter in ICU 75.)
2023-09-15 16:27:58 -07:00
DraganBesevic
bb7352990e ICU-22325 CLDR 44 alpha2 integration to ICU part three, source files changes 2023-09-13 11:06:53 -07:00
Rich Gillam
916452befc ICU-22169 Fixed ures_getFunctionalEquivalent() to check the resource bundles' %%Parent resources when ascending
the parent tree.
2023-09-11 12:58:41 -07:00
Frank Tang
c294c3272c ICU-22365 Add adoptULocale and buildULocale to ULocaleBuilder
Add two methods related to ULocale to ULocaleBuilder API

void ulocbld_adoptULocale(ULocaleBuilder* builder, ULocale* locale);
ULocale* ulocbld_buildULocale(ULocaleBuilder* builder, UErrorCode* err);

ICU TC approved this in 2023-08-31
2023-09-05 16:37:39 -07:00
Mihai Nita
5fb2a6ad06 ICU-22324 Mavenization, updating the cldr-to-icu scripts and instructions 2023-09-05 10:24:23 -07:00
Frank Tang
35bae683a5 ICU-22475 Fix double free in Locale under OOM
See #2567
2023-08-30 12:35:15 -07:00
Rich Gillam
8817c25c1e ICU-22449 Fixed SimpleDateFormat (in C++ and Java) to correctly honor the rg and hc subtags in the locale when choosing the hour cycle. 2023-08-28 13:30:45 -04:00
Robin Leroy
f79fe9347a ICU-22332 bidiSkeleton and LTR- and RTL-confusabilities 2023-08-23 15:56:02 +02: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
5d6d197a03 ICU-22466 Fix incorrect memory read while the locale is bogus
ICU-22466 Fix illegal read

ICU-22466 Fix memory issue
2023-08-22 09:22:12 -07:00
Rich Gillam
52177cc8c7 ICU-22364 Modify ulocimp_getRegionForSupplementalData() to ignore the subdivision code, rather than requiring it to
be "zzzz".
2023-08-21 14:06:00 -04: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
Frank Tang
27181e36a6 ICU-22435 Add C API for Locale
See #2531
2023-08-17 12:15:47 -07:00
yumaoka
6338b704ff ICU-22452 API for resolving preferred IANA zone ID from a zone ID. 2023-08-11 17:00:05 -04:00
James Choi
b70b2d0433 ICU-22363 Add support for QNX 7.1
Signed-off-by: James Choi <chachoi@blackberry.com>
2023-08-10 17:46:01 -07:00
Frank Tang
6ba5a1a1b7 ICU-22365 C API for ULocaleBuilder
See #2520

ICU-22365 Fix comments
2023-08-03 14:11:12 -07:00
DraganBesevic
1f07d2b29f ICU-22325 Integrate CLDR 44.1 to ICU, add personName testdata, fix RBBITestMonkey 2023-07-28 16:53:50 -07:00
Elango Cheran
2e45e6ec0e ICU-22404 Unicode 15.1 beta data files & API constants
See #2492

Co-authored-by: Andy Heninger <andy.heninger@gmail.com>
Co-authored-by: Robin Leroy <egg.robin.leroy@gmail.com>
2023-07-13 19:26:14 -07:00
Frank Tang
5826bf7ed7 ICU-22434 Not calling setFirstDayOfWeek(MONDAY) if the locale has fw
The Calendar constructor already take care of the fw override.
We should not set the first day of week for iso8601 to Monday if
we have a fw keyword/type in the locale.

ICU-22434 Fix incorrect calendar keyword extraction
2023-07-13 09:49:32 -07:00
Frank Tang
a9f7570892 ICU-22412 Fix C API ucal_(g|s)etGregorianChange for iso8601 calendar
See #2510
2023-06-22 15:44:37 -07:00
Peter Edberg
8d2c78d160 ICU-22357 Rename gb18030.ucm to add -2022, follow-on to PR #2430 2023-05-25 09:25:35 -07:00
Peter Edberg
d205e03352 ICU-22325 CLDR release-43-1-beta1 to ICU main 2023-05-10 18:08:25 -07:00
Rich Gillam
7d4e57dff1 ICU-22340 Fix it so that UNUM_NUMBERING_SYSTEM again always returns a RuleBasedNumberFormat.
(cherry picked from commit c702950294)
2023-04-07 10:13:51 -07:00
Peter Edberg
c125cf67f0 ICU-22337 restore strict parsing length tolerance for non-abutting numeric date fields 2023-03-30 13:52:40 -07:00
Peter Edberg
cdeae44c6b ICU-10297 Add tests showing that display name bug in ticket no longer exists 2023-03-16 15:31:12 -07:00
Frank Yung-Fong Tang
80414a247b ICU-22224 Enable UBSAN and fix breakage
See #2324
2023-02-27 17:31:49 -08:00