Commit Graph

31195 Commits

Author SHA1 Message Date
Hugo van der Merwe
0387d1b988 ICU-21230 Add status to MaybeStackArray(int32_t newCapacity), plumb it through. 2020-08-24 22:55:26 +02:00
Markus Scherer
c8aa800735 ICU-21035 add & use CharString::extract(dest buffer)
See #1253
2020-08-21 16:29:25 -07:00
Markus Scherer
39da689d30 ICU-21184 rephrase docs/comments using the term grandfathered 2020-08-21 14:13:03 -07:00
Frank Tang
cde54fc5ba ICU-21157 Fix incorrect null termination.
See #1236
2020-08-20 16:22:34 -07:00
Fredrik Roubert
3a8e0a2fe9 ICU-21035 Replace backward compatibility ulocimp_getLanguage() overload.
By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.
2020-08-20 23:38:30 +02:00
Erik Torres
a7a8cc3809 ICU-20808 Add test for the C locale to default to en_US_POSIX 2020-08-20 14:12:09 -07:00
David Beaumont
f2f6855410 ICU-21237 Copyright fix 2020-08-20 09:42:50 -07:00
Jeff Genovy
26775d7d13 ICU-21159 Fix memory leaks in cintltst TestUsingDefaultWarning. 2020-08-19 16:50:55 -07:00
David Beaumont
dcdb30d708 ICU-21237 Improving how file deletion and cleanup works by adding a build label.
See #1246
2020-08-19 23:39:58 +02:00
Yoshito Umaoka
9a6a64ce05 ICU-21219 Fix for Java version number overflow problem
Internal API VersionInfo.javaVersion() maps Java version number to  4 integer fields. Each field must be up to 255. However, recent OpenJDK 8 update exceed this range.

Luckily, we have only one reference in our code base for checking Java version. CharsetUTF16 uses maxBytePerChar = 4 for Java 5 and older, maxBytePerChar = 2 for newer Java version. Because we no longer support Java 5 runtime, we don't need this conditional check.

We don't have any other uses of VersionInfo.javaVersion(). Java's version range is not what we can control, so I decided to delete the internal use only API completely.
2020-08-19 16:04:45 -04:00
Robert Melo
5a714ae8f7 ICU-20088 fix code, tables, typos, broken links, add code styling 2020-08-19 15:49:35 -03:00
David Beaumont
9c965ff757 ICU-21149 Integrating LocaleDistanceBuilder functionality into LDML tooling
See #1165
2020-08-19 18:42:27 +02:00
David Beaumont
4cf2379d3c ICU-21066 Improvements in Ant build files
See #1224
2020-08-19 12:44:40 +02:00
David Beaumont
d085cbb816 ICU-21227 Fixing pseudo locale generation to include RTL control chars in exemplars
See #1237
2020-08-18 20:19:15 +02:00
Shane F. Carr
d2789a035b ICU-20774 Add option to icupkg to allow missing deps between resource files. 2020-08-17 20:09:08 -05:00
Jeff Genovy
8e1f9888ab ICU-20088 User Guide migration: Fix links on formatting page. 2020-08-17 16:04:55 -07:00
Frank Tang
e395e8abcd ICU-21159 Document U_USING_DEFAULT_WARNING in .h
Document the fact
uloc_getDisplay(Language|Script|Country|Variant|Keyword|KeywordValue)
would fallback with the code, case canonicalied in same cases, and
set the status to U_USING_DEFAULT_WARNING.

No change to the implementation behavior. Only complete the missing
comments and tweak line wrap, remove double spaces and add test to
validate this pre-existing behavior that I added the documents now.
2020-08-17 15:18:01 -07:00
David Beaumont
0da354bbca ICU-21228 fix test broken by https://github.com/unicode-org/cldr/pull/615 2020-08-17 23:38:49 +02:00
Jeff Genovy
2e56c4264a ICU-20088 User Guide migration: Add navigation structure and TOC for Jekyll, fix formatting issues, etc. 2020-08-17 10:44:44 -07:00
Elango Cheran
b2ada378be ICU-20088 User Guide migration: Add custom 404 page, and add Gemfile/Gemfile.lock for Jekyll. 2020-08-17 10:44:44 -07:00
Jeff Genovy
9889f37d3f ICU-20088 User Guide migration: Initial setup with Jekyll and the Just-The-Docs theme.
Using the theme from: https://github.com/pmarsceill/just-the-docs
2020-08-17 10:44:44 -07:00
Markus Scherer
9279e49d2f ICU-21030 validate ACE label edge cases 2020-08-14 14:32:47 -07:00
Markus Scherer
e19d12997b ICU-21212 full range check for Punycode digits 2020-08-14 11:37:40 -07:00
Paul Smith
e3f2c0dd70 ICU-21217 Windows: Fix link command for extra/scrptrun 2020-08-14 00:43:24 -07:00
Shane F. Carr
2ea56b531a ICU-21182 Adding UNumberRangeFormatter (C API).
See #1193
2020-08-12 21:33:38 -05:00
Shane F. Carr
ab086feaa0 ICU-21056 Remove obsolete logKnownIssues in CompactDecimalFormatTest 2020-08-12 16:36:50 -05:00
Shane F. Carr
8625158a7b ICU-21057 Remove obsolete logKnownIssue for ICU-11025 2020-08-12 16:36:18 -05:00
Shane F. Carr
88f092a9fb ICU-21191 Improve configurability of testtagsguards.sh 2020-08-11 21:22:31 -05:00
Shane F. Carr
bf2c2c5ca7 ICU-21176 Add aliases for terms "whitelist" and "blacklist" in data filter
See #1189
2020-08-11 21:21:59 -05:00
younies
7997955f2d ICU-21174 Add error-checking methods to MaybeStackVector & MemoryPool.
- MaybeStackVector::emplaceBackAndCheckErrorCode()
- MemoryPool::createAndCheckErrorCode()

Started with cherry-picks of:
3b505977c0e82659896125698389b59eabe50b14
63b93bde5c4c9fe030d490d5d448087aa0d4e5fd
2020-08-11 19:52:09 +02:00
Frank Tang
0eed48038b ICU-20725 Fix stack overflow of u_unescapeAt
See #1207
2020-08-10 14:59:38 -07:00
Paul Smith
ed268e77e3 ICU-21216 Windows: Ensure directory exists before running rc
When building in parallel it's possible that the rc command is invoked
before other rules get around to creating the output directory.
2020-08-10 12:16:47 -07:00
Hugo van der Merwe
4276d83e8a ICU-21174 Debug msg nitpick: s/MaybeStacArray/MaybeStackArray/ 2020-08-07 19:11:00 +02:00
Hugo van der Merwe
66d8df5338 ICU-21174 Delete not-to-be-used methods. Add a constructor warning. 2020-08-07 19:11:00 +02:00
Hugo van der Merwe
abdf0e667d ICU-21174 Add a memory allocation check in MeasureUnit. 2020-08-06 13:17:34 +02:00
Markus Scherer
8bd1f49ab6 ICU-20088 turn off liquid processing in MessageFormat page 2020-08-05 16:18:12 -07:00
Markus Scherer
ae88ec693e ICU-20088 index page for ICU GitHub Pages
Entry point to find the new home of the User Guide.
2020-08-05 14:37:41 -07:00
Craig Cornelius
ec45aaf1a2 ICU-20088 Move User Guide to Markdown
See #919
2020-08-05 13:58:33 -07:00
Hugo van der Merwe
0b815fb8c3 ICU-21059 Load simple unit IDs from convertUnits.
PR: https://github.com/icu-units/icu/pull/41
Commit: 7877f0409019827b2d8d43b0843656322181972b
2020-08-05 10:57:19 +02:00
Hugo van der Merwe
5d97c9f13e ICU-21174 Increase safety of Measure and writeAffixes.
Measure: initialize unit to nullptr, and don't dereference it if it is
nullptr.

NumberFormatterImpl::writeAffixes: U_ASSERT not-null, instead of
segfaulting for coding mistakes.
2020-08-05 01:52:40 +02:00
Shane F. Carr
ee2d8b0103 ICU-21175 Add cnvalias as a dependency of misc_res 2020-08-04 18:50:43 -05:00
Hugo van der Merwe
6b595d1c01 ICU-21076 Delete unneeded MeasureUnit data & code 2020-08-05 01:48:32 +02:00
Frank Tang
863582c2a4 ICU-20465 Calendar/DateFormat listen to tz extension
See #1176
2020-08-04 13:33:03 -07:00
Frank Tang
8ca80c4b6d ICU-21158 Fix doc of UDISPCTX_NO_SUBSTITUTE
See #1200
2020-07-31 18:39:46 -07:00
Frank Tang
7ddc231195 ICU-20734 Improve fuzzer_driver
See #1204
2020-07-31 15:30:03 -07:00
Frank Tang
41d1d57af0 ICU-21122 Fix flaky TestAdoptCalendarLeak 2020-07-29 20:39:55 -07:00
Frank Tang
d7ec310436 ICU-20684 Fix uninitialized in isMatchAtCPBoundary
Downstream bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15505
Fix Fuzzer-detected Use-of-uninitialized-value in isMatchAtCPBoundary

To test to show the bug in the new test case, configure and build with
CFLAGS="-fsanitize=memory" CXXFLAGS="-fsanitize=memory" ./runConfigureICU \
  --enable-debug --disable-release  Linux  --disable-layoutex

Test with
cintltst /tsutil/custrtst
2020-07-29 14:21:53 -07:00
Andy Heninger
895aff3bff ICU-21178 Add check for corrupt rbbitst.txt data.
In the test data from rbbitst.txt, two or more adjacent boundary markers with
no intervening test data were accepted, with no indication of a problem.

This situation occurred, as described in bug ICU-21178, with a bad import of
some test cases from CLDR. PR #1194 corrected the problem with the test data
in ICU4C. This PR adds code to flag this situation in the test data, and
also propagates the data fix to ICU4J's copy of rbbitst.txt.
2020-07-24 15:16:12 -07:00
Frank Tang
0d4b1c1cb9 ICU-21160 Fix the length return by preflight
See #1178
2020-07-21 18:05:20 -07:00
Andy Heninger
003b431540 ICU-13590 RBBI, improve handling of concurrent look-ahead rules.
Change the mapping from rule number to boundary position to use a simple array
instead of a linear search lookup map.

Look-ahead rules have a preceding context, a boundary position, and following context.
In the implementation, when the preceding context matches, the potential boundary
position is saved. Then, if the following context proves to match, the saved boundary is
returned as an actual boundary.

Look-ahead rules are numbered, and the implementation maintains a map from
rule number to the tentative saved boundary position.

In an earlier improvement to the rule builder, the rule numbering was changed to be a
contiguous sequence, from the original sparse numbering. In anticipation of
changing the mapping from number to position to use a simple array.
2020-07-21 14:39:15 -07:00