]> granicus.if.org Git - icu/log
icu
4 years agoICU-20923 Fix compact notation with percent.
Shane F. Carr [Fri, 14 Aug 2020 06:44:02 +0000 (01:44 -0500)]
ICU-20923 Fix compact notation with percent.

4 years agoICU-13727 limit length of input for Punycode encode/decode
Markus Scherer [Mon, 31 Aug 2020 18:08:19 +0000 (18:08 +0000)]
ICU-13727 limit length of input for Punycode encode/decode

See #1241

4 years agoICU-21249 BRS68RC Version update and regenerate configure for v68
Erik Torres [Mon, 31 Aug 2020 18:28:38 +0000 (18:28 +0000)]
ICU-21249 BRS68RC Version update and regenerate configure for v68

BRS68RC Updating files for release

4 years agoICU-21247 Move #include "unicode/localpointer.h" into U_SHOW_CPLUSPLUS_API block
Victor Chang [Thu, 20 Aug 2020 14:50:49 +0000 (15:50 +0100)]
ICU-21247 Move #include "unicode/localpointer.h" into U_SHOW_CPLUSPLUS_API block

4 years agoICU-13727 add U_INPUT_TOO_LONG_ERROR & ICUInputTooLongException
Markus Scherer [Sat, 29 Aug 2020 00:34:37 +0000 (17:34 -0700)]
ICU-13727 add U_INPUT_TOO_LONG_ERROR & ICUInputTooLongException

4 years agoICU-21035 Replace backward compatibility _getVariant*() functions.
Fredrik Roubert [Fri, 28 Aug 2020 13:15:38 +0000 (15:15 +0200)]
ICU-21035 Replace backward compatibility _getVariant*() functions.

The one single caller of _getVariantEx() is _getVariant() and this in
turn only has 3 callers, one of which is commented out (so it can be
deleted), one of which doesn't actually do anything (so it too can be
deleted) and one which can be replaced by inlining the use of
CheckedArrayByteSink.

This also allows _getVariantEx() to be renamed to _getVariant() as it's
the only such function left now.

4 years agoICU-13416 change Armenian (hy) uppercase/titlecase of և ligature ech-yiwn
Markus Scherer [Sat, 29 Aug 2020 21:26:15 +0000 (14:26 -0700)]
ICU-13416 change Armenian (hy) uppercase/titlecase of և ligature ech-yiwn

4 years agoICU-21036 use StringBuilder(String str) not StringBuilder(int capacity)
Markus Scherer [Fri, 28 Aug 2020 23:59:08 +0000 (16:59 -0700)]
ICU-21036 use StringBuilder(String str) not StringBuilder(int capacity)

4 years agoICU-21051 Add Locale::createCanonical performance test
Frank Tang [Thu, 27 Aug 2020 23:06:12 +0000 (16:06 -0700)]
ICU-21051 Add Locale::createCanonical performance test

4 years agoICU-20164 Make NoUnit a zero-cost abstraction over MeasureUnit.
Shane F. Carr [Fri, 28 Aug 2020 19:26:55 +0000 (19:26 +0000)]
ICU-20164 Make NoUnit a zero-cost abstraction over MeasureUnit.

See #1230

4 years agoICU-21246 Handle kilogram SI prefix correctly
Hugo van der Merwe [Mon, 24 Aug 2020 20:08:39 +0000 (22:08 +0200)]
ICU-21246 Handle kilogram SI prefix correctly

Fix kilogram parsing: ignore 'kilogram' as a stem, we have 'gram'.

Failures in the added unit test before the fix: withSIPrefix resulted
in 'microkilogram', and kilogram's prefix was considered to be
"ONE" (i.e. 10^0).

4 years agoICU-20927 Adding French narrow duration unit test.
Shane F. Carr [Sat, 16 Feb 2019 07:39:32 +0000 (23:39 -0800)]
ICU-20927 Adding French narrow duration unit test.

4 years agoICU-21242 rephrase documentation using term master
Craig Cornelius [Thu, 27 Aug 2020 17:46:23 +0000 (17:46 +0000)]
ICU-21242 rephrase documentation using term master

See #1255

4 years agoICU-21240 Removing unused makefile files and updating docs.
David Beaumont [Fri, 28 Aug 2020 11:49:21 +0000 (13:49 +0200)]
ICU-21240 Removing unused makefile files and updating docs.

4 years agoICU-21066 Copy includelist of CLDR testData with tools/cldr/build.xml
Hugo van der Merwe [Thu, 27 Aug 2020 11:48:11 +0000 (13:48 +0200)]
ICU-21066 Copy includelist of CLDR testData with tools/cldr/build.xml

4 years agoICU-21232 Improve performance of DecimalFormat#parse on long numbers
Shane F. Carr [Wed, 26 Aug 2020 21:43:23 +0000 (16:43 -0500)]
ICU-21232 Improve performance of DecimalFormat#parse on long numbers

4 years agoICU-21028 Adding ICU version file generation to tools
David Beaumont [Wed, 12 Aug 2020 16:50:27 +0000 (16:50 +0000)]
ICU-21028 Adding ICU version file generation to tools

See #1248

4 years agoICU-21035 Replace backward compatibility locale_getKeywords() function.
Fredrik Roubert [Tue, 25 Aug 2020 13:00:01 +0000 (15:00 +0200)]
ICU-21035 Replace backward compatibility locale_getKeywords() function.

By updating the last 3 callers to do dynamic memory allocation instead,
the fixed memory buffer function becomes obsolete.

4 years agoICU-21249 Updating double-conversion for ICU 68
Shane F. Carr [Wed, 26 Aug 2020 17:44:13 +0000 (12:44 -0500)]
ICU-21249 Updating double-conversion for ICU 68

4 years agoICU-21035 Remove obsolete use of CharString::getAppendBuffer().
Fredrik Roubert [Fri, 21 Aug 2020 19:45:07 +0000 (21:45 +0200)]
ICU-21035 Remove obsolete use of CharString::getAppendBuffer().

The complicated buffer allocation code is inherited from times past but
no longer serves any purpose, it's now possible to instead simply call
the CharString copy constructor.

4 years agoICU-21035 Replace backward compatibility ulocimp_getCountry() overload.
Fredrik Roubert [Thu, 20 Aug 2020 22:16:23 +0000 (00:16 +0200)]
ICU-21035 Replace backward compatibility ulocimp_getCountry() overload.

By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.

4 years agoICU-21035 Replace backward compatibility ulocimp_getScript() overload.
Fredrik Roubert [Thu, 20 Aug 2020 21:57:16 +0000 (23:57 +0200)]
ICU-21035 Replace backward compatibility ulocimp_getScript() overload.

By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.

4 years agoICU-21157 Fix test code
Frank Tang [Mon, 24 Aug 2020 19:43:09 +0000 (19:43 +0000)]
ICU-21157 Fix test code

See #1256

4 years agoICU-21230 Add status to MaybeStackArray(int32_t newCapacity), plumb it through.
Hugo van der Merwe [Thu, 20 Aug 2020 13:05:58 +0000 (15:05 +0200)]
ICU-21230 Add status to MaybeStackArray(int32_t newCapacity), plumb it through.

4 years agoICU-21035 add & use CharString::extract(dest buffer) ICU-21184
Markus Scherer [Fri, 21 Aug 2020 19:19:41 +0000 (19:19 +0000)]
ICU-21035 add & use CharString::extract(dest buffer)

See #1253

4 years agoICU-21184 rephrase docs/comments using the term grandfathered
Markus Scherer [Tue, 18 Aug 2020 22:05:22 +0000 (15:05 -0700)]
ICU-21184 rephrase docs/comments using the term grandfathered

4 years agoICU-21157 Fix incorrect null termination.
Frank Tang [Tue, 18 Aug 2020 22:36:00 +0000 (22:36 +0000)]
ICU-21157 Fix incorrect null termination.

See #1236

4 years agoICU-21035 Replace backward compatibility ulocimp_getLanguage() overload.
Fredrik Roubert [Thu, 20 Aug 2020 16:08:21 +0000 (18:08 +0200)]
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.

4 years agoICU-20808 Add test for the C locale to default to en_US_POSIX
Erik Torres [Wed, 12 Aug 2020 19:28:32 +0000 (19:28 +0000)]
ICU-20808 Add test for the C locale to default to en_US_POSIX

4 years agoICU-21237 Copyright fix
David Beaumont [Thu, 20 Aug 2020 09:05:43 +0000 (11:05 +0200)]
ICU-21237 Copyright fix

4 years agoICU-21159 Fix memory leaks in cintltst TestUsingDefaultWarning.
Jeff Genovy [Tue, 18 Aug 2020 18:00:46 +0000 (11:00 -0700)]
ICU-21159 Fix memory leaks in cintltst TestUsingDefaultWarning.

4 years agoICU-21237 Improving how file deletion and cleanup works by adding a build label.
David Beaumont [Wed, 19 Aug 2020 21:16:28 +0000 (21:16 +0000)]
ICU-21237 Improving how file deletion and cleanup works by adding a build label.

See #1246

4 years agoICU-21219 Fix for Java version number overflow problem
Yoshito Umaoka [Wed, 19 Aug 2020 19:08:25 +0000 (15:08 -0400)]
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.

4 years agoICU-20088 fix code, tables, typos, broken links, add code styling
Robert Melo [Sun, 16 Aug 2020 22:51:05 +0000 (19:51 -0300)]
ICU-20088 fix code, tables, typos, broken links, add code styling

4 years agoICU-21149 Integrating LocaleDistanceBuilder functionality into LDML tooling
David Beaumont [Wed, 19 Aug 2020 11:05:12 +0000 (11:05 +0000)]
ICU-21149 Integrating LocaleDistanceBuilder functionality into LDML tooling

See #1165

4 years agoICU-21066 Improvements in Ant build files
David Beaumont [Tue, 18 Aug 2020 13:36:54 +0000 (13:36 +0000)]
ICU-21066 Improvements in Ant build files

See #1224

4 years agoICU-21227 Fixing pseudo locale generation to include RTL control chars in exemplars
David Beaumont [Mon, 17 Aug 2020 19:56:43 +0000 (19:56 +0000)]
ICU-21227 Fixing pseudo locale generation to include RTL control chars in exemplars

See #1237

4 years agoICU-20774 Add option to icupkg to allow missing deps between resource files.
Shane F. Carr [Fri, 14 Aug 2020 07:40:12 +0000 (02:40 -0500)]
ICU-20774 Add option to icupkg to allow missing deps between resource files.

4 years agoICU-20088 User Guide migration: Fix links on formatting page.
Jeff Genovy [Mon, 17 Aug 2020 21:52:33 +0000 (14:52 -0700)]
ICU-20088 User Guide migration: Fix links on formatting page.

4 years agoICU-21159 Document U_USING_DEFAULT_WARNING in .h
Frank Tang [Fri, 14 Aug 2020 23:39:26 +0000 (16:39 -0700)]
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.

4 years agoICU-21228 fix test broken by https://github.com/unicode-org/cldr/pull/615
David Beaumont [Sun, 16 Aug 2020 15:38:03 +0000 (17:38 +0200)]
ICU-21228 fix test broken by https://github.com/unicode-org/cldr/pull/615

4 years agoICU-20088 User Guide migration: Add navigation structure and TOC for Jekyll, fix...
Jeff Genovy [Fri, 7 Aug 2020 21:25:11 +0000 (14:25 -0700)]
ICU-20088 User Guide migration: Add navigation structure and TOC for Jekyll, fix formatting issues, etc.

4 years agoICU-20088 User Guide migration: Add custom 404 page, and add Gemfile/Gemfile.lock...
Elango Cheran [Fri, 7 Aug 2020 05:32:07 +0000 (22:32 -0700)]
ICU-20088 User Guide migration: Add custom 404 page, and add Gemfile/Gemfile.lock for Jekyll.

4 years agoICU-20088 User Guide migration: Initial setup with Jekyll and the Just-The-Docs theme.
Jeff Genovy [Fri, 7 Aug 2020 01:04:51 +0000 (18:04 -0700)]
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

4 years agoICU-21030 validate ACE label edge cases
Markus Scherer [Fri, 14 Aug 2020 20:33:34 +0000 (13:33 -0700)]
ICU-21030 validate ACE label edge cases

4 years agoICU-21212 full range check for Punycode digits
Markus Scherer [Thu, 13 Aug 2020 22:35:17 +0000 (15:35 -0700)]
ICU-21212 full range check for Punycode digits

4 years agoICU-21217 Windows: Fix link command for extra/scrptrun
Paul Smith [Wed, 5 Aug 2020 17:18:30 +0000 (13:18 -0400)]
ICU-21217 Windows: Fix link command for extra/scrptrun

4 years agoICU-21182 Adding UNumberRangeFormatter (C API).
Shane F. Carr [Wed, 8 Jul 2020 21:54:59 +0000 (21:54 +0000)]
ICU-21182 Adding UNumberRangeFormatter (C API).

See #1193

4 years agoICU-21056 Remove obsolete logKnownIssues in CompactDecimalFormatTest
Shane F. Carr [Wed, 12 Aug 2020 01:51:41 +0000 (20:51 -0500)]
ICU-21056 Remove obsolete logKnownIssues in CompactDecimalFormatTest

4 years agoICU-21057 Remove obsolete logKnownIssue for ICU-11025
Shane F. Carr [Wed, 12 Aug 2020 01:42:15 +0000 (20:42 -0500)]
ICU-21057 Remove obsolete logKnownIssue for ICU-11025

4 years agoICU-21191 Improve configurability of testtagsguards.sh
Shane F. Carr [Wed, 8 Jul 2020 22:09:59 +0000 (17:09 -0500)]
ICU-21191 Improve configurability of testtagsguards.sh

4 years agoICU-21176 Add aliases for terms "whitelist" and "blacklist" in data filter
Shane F. Carr [Tue, 11 Aug 2020 23:06:45 +0000 (18:06 -0500)]
ICU-21176 Add aliases for terms "whitelist" and "blacklist" in data filter

See #1189

4 years agoICU-21174 Add error-checking methods to MaybeStackVector & MemoryPool.
younies [Tue, 16 Jun 2020 16:28:30 +0000 (18:28 +0200)]
ICU-21174 Add error-checking methods to MaybeStackVector & MemoryPool.

- MaybeStackVector::emplaceBackAndCheckErrorCode()
- MemoryPool::createAndCheckErrorCode()

Started with cherry-picks of:
3b505977c0e82659896125698389b59eabe50b14
63b93bde5c4c9fe030d490d5d448087aa0d4e5fd

4 years agoICU-20725 Fix stack overflow of u_unescapeAt
Frank Tang [Sat, 8 Aug 2020 00:53:25 +0000 (00:53 +0000)]
ICU-20725 Fix stack overflow of u_unescapeAt

See #1207

4 years agoICU-21216 Windows: Ensure directory exists before running rc
Paul Smith [Wed, 5 Aug 2020 16:13:19 +0000 (12:13 -0400)]
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.

4 years agoICU-21174 Debug msg nitpick: s/MaybeStacArray/MaybeStackArray/
Hugo van der Merwe [Fri, 7 Aug 2020 15:56:08 +0000 (17:56 +0200)]
ICU-21174 Debug msg nitpick: s/MaybeStacArray/MaybeStackArray/

4 years agoICU-21174 Delete not-to-be-used methods. Add a constructor warning.
Hugo van der Merwe [Fri, 7 Aug 2020 15:51:03 +0000 (17:51 +0200)]
ICU-21174 Delete not-to-be-used methods. Add a constructor warning.

4 years agoICU-21174 Add a memory allocation check in MeasureUnit.
Hugo van der Merwe [Thu, 6 Aug 2020 00:05:40 +0000 (02:05 +0200)]
ICU-21174 Add a memory allocation check in MeasureUnit.

4 years agoICU-20088 turn off liquid processing in MessageFormat page
Markus Scherer [Wed, 5 Aug 2020 22:53:19 +0000 (15:53 -0700)]
ICU-20088 turn off liquid processing in MessageFormat page

4 years agoICU-20088 index page for ICU GitHub Pages
Markus Scherer [Wed, 5 Aug 2020 21:27:15 +0000 (14:27 -0700)]
ICU-20088 index page for ICU GitHub Pages

Entry point to find the new home of the User Guide.

4 years agoICU-20088 Move User Guide to Markdown
Craig Cornelius [Wed, 5 Aug 2020 18:00:48 +0000 (18:00 +0000)]
ICU-20088 Move User Guide to Markdown

See #919

4 years agoICU-21059 Load simple unit IDs from convertUnits.
Hugo van der Merwe [Wed, 22 Jul 2020 09:13:32 +0000 (11:13 +0200)]
ICU-21059 Load simple unit IDs from convertUnits.

PR: https://github.com/icu-units/icu/pull/41
Commit: 7877f0409019827b2d8d43b0843656322181972b

4 years agoICU-21174 Increase safety of Measure and writeAffixes.
Hugo van der Merwe [Tue, 4 Aug 2020 02:49:23 +0000 (04:49 +0200)]
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.

4 years agoICU-21175 Add cnvalias as a dependency of misc_res
Shane F. Carr [Fri, 10 Jul 2020 19:28:22 +0000 (14:28 -0500)]
ICU-21175 Add cnvalias as a dependency of misc_res

4 years agoICU-21076 Delete unneeded MeasureUnit data & code
Hugo van der Merwe [Tue, 4 Aug 2020 11:39:14 +0000 (13:39 +0200)]
ICU-21076 Delete unneeded MeasureUnit data & code

4 years agoICU-20465 Calendar/DateFormat listen to tz extension
Frank Tang [Fri, 31 Jul 2020 05:37:50 +0000 (05:37 +0000)]
ICU-20465 Calendar/DateFormat listen to tz extension

See #1176

4 years agoICU-21158 Fix doc of UDISPCTX_NO_SUBSTITUTE
Frank Tang [Fri, 31 Jul 2020 06:37:31 +0000 (06:37 +0000)]
ICU-21158 Fix doc of UDISPCTX_NO_SUBSTITUTE

See #1200

4 years agoICU-20734 Improve fuzzer_driver
Frank Tang [Fri, 31 Jul 2020 21:32:31 +0000 (21:32 +0000)]
ICU-20734 Improve fuzzer_driver

See #1204

4 years agoICU-21122 Fix flaky TestAdoptCalendarLeak
Frank Tang [Thu, 14 May 2020 00:17:56 +0000 (17:17 -0700)]
ICU-21122 Fix flaky TestAdoptCalendarLeak

4 years agoICU-20684 Fix uninitialized in isMatchAtCPBoundary
Frank Tang [Wed, 29 Jul 2020 00:05:26 +0000 (17:05 -0700)]
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

4 years agoICU-21178 Add check for corrupt rbbitst.txt data.
Andy Heninger [Wed, 8 Jul 2020 00:12:09 +0000 (17:12 -0700)]
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.

4 years agoICU-21160 Fix the length return by preflight
Frank Tang [Mon, 20 Jul 2020 22:35:31 +0000 (22:35 +0000)]
ICU-21160 Fix the length return by preflight

See #1178

4 years agoICU-13590 RBBI, improve handling of concurrent look-ahead rules.
Andy Heninger [Sat, 27 Jun 2020 00:52:40 +0000 (17:52 -0700)]
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.

4 years agoICU-13339 Do not parse decimal point for integers
Ramon [Tue, 12 May 2020 12:13:50 +0000 (14:13 +0200)]
ICU-13339 Do not parse decimal point for integers

4 years agoICU-21192 MeasureUnit Identifier spec compliance: s/p/pow/
Hugo van der Merwe [Thu, 18 Jun 2020 00:20:49 +0000 (02:20 +0200)]
ICU-21192 MeasureUnit Identifier spec compliance: s/p/pow/

Specification:
https://www.unicode.org/reports/tr35/tr35-general.html#Unit_Identifiers

4 years agoICU-20697 Delete now unused files and documentation for the old ICU LDML tooling.
David Beaumont [Tue, 14 Jul 2020 14:41:33 +0000 (14:41 +0000)]
ICU-20697 Delete now unused files and documentation for the old ICU LDML tooling.

4 years agoICU-21178 Adding the trailing space back into two RBBI test cases.
Michael Block [Sun, 5 Jul 2020 21:35:49 +0000 (09:35 +1200)]
ICU-21178 Adding the trailing space back into two RBBI test cases.

4 years agoICU-11992 uprv_tzname doesn't return valid time zone on Android
Makoto Kato [Fri, 22 Nov 2019 07:51:30 +0000 (16:51 +0900)]
ICU-11992 uprv_tzname doesn't return valid time zone on Android

4 years agoICU-21173 Add support for more currency variants. ICU4C equivalent of…
John Wilcock [Fri, 26 Jun 2020 18:02:16 +0000 (18:02 +0000)]
ICU-21173 Add support for more currency variants. ICU4C equivalent of…

See #1184

4 years agoICU-21174 Add a const version of MaybeStackVector::getAlias().
Hugo van der Merwe [Fri, 19 Jun 2020 12:10:17 +0000 (14:10 +0200)]
ICU-21174 Add a const version of MaybeStackVector::getAlias().

(Also makes a tiny tweak to appendAll() documentation.)

4 years agoICU-21176 spoof checker: remove whitelist/blacklist metaphors from API docs
Markus Scherer [Tue, 30 Jun 2020 22:23:17 +0000 (15:23 -0700)]
ICU-21176 spoof checker: remove whitelist/blacklist metaphors from API docs

4 years agoICU-13733 Added test for mismatching currency format for strict-mode parsing
John Wilcock [Tue, 23 Jun 2020 16:03:25 +0000 (16:03 +0000)]
ICU-13733 Added test for mismatching currency format for strict-mode parsing

See #1169

4 years agoICU-21170 Fix function prototypes
Diego Barrios Romero [Thu, 25 Jun 2020 06:42:48 +0000 (08:42 +0200)]
ICU-21170 Fix function prototypes

4 years agoICU-21177 Update README.md badges to point to new Azure Pipelines URL.
Jeff Genovy [Thu, 25 Jun 2020 00:48:26 +0000 (17:48 -0700)]
ICU-21177 Update README.md badges to point to new Azure Pipelines URL.

4 years agoICU-21177 Skip running the Exhaustive tests on changes to docs and other files.
Jeff Genovy [Thu, 25 Jun 2020 01:40:58 +0000 (18:40 -0700)]
ICU-21177 Skip running the Exhaustive tests on changes to docs and other files.

4 years agoICU-20545 Ensure that path ends with detected file separator
Łukasz Wojniłowicz [Sat, 16 May 2020 10:53:50 +0000 (12:53 +0200)]
ICU-20545 Ensure that path ends with detected file separator

CharString, when asked, appends U_FILE_SEP_CHAR at the end of the string
it holds, if it won't find U_FILE_SEP_CHAR or U_FILE_ALT_SEP_CHAR there.
The problem starts if the dir variable uses
U_FILE_ALT_SEP_CHAR which is not equal to U_FILE_SEP_CHAR. Then the
resulting path could look like this
../data\
instead of this
../data/

This patch uses U_FILE_SEP_CHAR unless it detects that the dir variable
doesn't use it, and uses U_FILE_ALT_SEP_CHAR instead.

4 years agoICU-21144 LocaleMatcher setMaxDistance(), isMatch()
Markus Scherer [Tue, 23 Jun 2020 01:55:04 +0000 (18:55 -0700)]
ICU-21144 LocaleMatcher setMaxDistance(), isMatch()

4 years agoICU-21142 Hopefully fixing the install script (bash only)
David Beaumont [Mon, 22 Jun 2020 09:56:34 +0000 (09:56 +0000)]
ICU-21142 Hopefully fixing the install script (bash only)

4 years agoICU-20869 Fix compiler warning in FixedDecimal::getFractionalDigits().
Andy Heninger [Mon, 1 Jun 2020 19:59:47 +0000 (12:59 -0700)]
ICU-20869 Fix compiler warning in FixedDecimal::getFractionalDigits().

Fix a clang compiler warning and a potential undefined behavior arising
from casting an out-of-range double to an int. See the Jira ticket for a
more detailed description of the problem.

This PR is to fix the immediate problem. Longer term, the function
may be replaced entirely - see issue ICU-21147.

4 years agoICU-21142 Improving Maven handling of CLDR API Jar file for new tools.
David Beaumont [Thu, 18 Jun 2020 20:11:53 +0000 (20:11 +0000)]
ICU-21142 Improving Maven handling of CLDR API Jar file for new tools.

4 years agoICU-20545 Detect file separator char from dir
Łukasz Wojniłowicz [Sat, 2 May 2020 09:39:21 +0000 (11:39 +0200)]
ICU-20545 Detect file separator char from dir

If udata_create won't find U_FILE_SEP_CHAR at the end of a dir variable,
then it appends it. The problem starts if the dir variable uses
U_FILE_ALT_SEP_CHAR which is not equal to U_FILE_SEP_CHAR. Then the
resulting path could look like this
../data\mappings/cns-11643-1992.ucm
instead of this
../data/mappings/cns-11643-1992.ucm

This patch uses U_FILE_SEP_CHAR unless it detects that the dir variable
doesn't use it, and uses U_FILE_ALT_SEP_CHAR instead.

4 years agoICU-21165 Add LdmlConverter UNITS output, update SUPPLEMENTAL_DATA.
Hugo van der Merwe [Mon, 15 Jun 2020 15:21:13 +0000 (17:21 +0200)]
ICU-21165 Add LdmlConverter UNITS output, update SUPPLEMENTAL_DATA.

- Produce new supplementalData.txt and units.txt with:

      ant -f build-icu-data.xml -DoutDir=/tmp/new_dir \
          -DcldrVersion=37 -DoutputTypes=UNITS,SUPPLEMENTAL_DATA

4 years agoICU-21169 Add SingleUnitImpl::getSimpleUnitID().
Hugo van der Merwe [Tue, 16 Jun 2020 14:12:15 +0000 (16:12 +0200)]
ICU-21169 Add SingleUnitImpl::getSimpleUnitID().

Also:
- Use BytesTrie not UCharsTrie.
- Add a nullptr check for a uprv_malloc.

4 years agoICU-21161 Mark uloc_getDisplayScriptInContext static
Frank Tang [Thu, 18 Jun 2020 04:51:13 +0000 (21:51 -0700)]
ICU-21161 Mark uloc_getDisplayScriptInContext static

Remove from urename.h

4 years agoICU-21137 Adjust VSCode IDE settings and README.
Hugo van der Merwe [Wed, 27 May 2020 13:43:15 +0000 (15:43 +0200)]
ICU-21137 Adjust VSCode IDE settings and README.

ICU Pull Request #1159.

- Set intltest's Current Working Directory correctly to enable finding
  resources.
- Adds c_cpp_properties.json, primarily for the includePath settings.
- Load average takes a while to respond, specify -j24 to always limit
  parallel jobs to a maximum of 24.
- make's "-l" parameter is system load average, not CPU percentage.
  A load average of 90 makes my laptop unusable, changing to -l20.
- Make running all tests the unit-testing default.
- Document the adjustments that can be made in the README.
- Skip these json files when checking for copyright notices. Pure json
  does not permit comments, so c_cpp_properties.json cannot have
  comments.
- defines += U_DISABLE_RENAMING=1 to simplify reference following.

Rebased from 00a5d6dd5c.

4 years agoICU-13565 Break Iteration, remove the dictionary bit from the implementation.
Andy Heninger [Tue, 9 Jun 2020 20:19:17 +0000 (13:19 -0700)]
ICU-13565 Break Iteration, remove the dictionary bit from the implementation.

For identifying text that needs to be handled by a word dictionary for Break Iteration,
change from using a bit in the character category to sorting all dictionary categories
together, and recording the boundary between the non-dictionary and dictionary ranges.

This is internal to the implementaion. It does not affect behavior.
It does increase the number of character categories that can be handled using a
compact 8 bit Trie, from 127 to 255.

4 years agoICU-21078 Improve instructions and gitignore files for cldr-to-icu.
Hugo van der Merwe [Sun, 14 Jun 2020 15:49:00 +0000 (17:49 +0200)]
ICU-21078 Improve instructions and gitignore files for cldr-to-icu.

This also adds .idea/ to the top-level .gitignore, next to .vs/ and
.vscode/.

4 years agoICU-21149 Adding a helper to allow simpler debugging of mappers.
David Beaumont [Mon, 15 Jun 2020 21:56:23 +0000 (21:56 +0000)]
ICU-21149 Adding a helper to allow simpler debugging of mappers.

4 years agoICU-21109 minimum grouping digits in DecimalFormat
Frank Tang [Thu, 11 Jun 2020 00:53:05 +0000 (00:53 +0000)]
ICU-21109 minimum grouping digits in DecimalFormat

See #1152

4 years agoICU-21143 Applying non-zero offset to null pointer is undefined behaviour.
Fredrik Roubert [Tue, 2 Jun 2020 20:35:20 +0000 (22:35 +0200)]
ICU-21143 Applying non-zero offset to null pointer is undefined behaviour.

The result of pointer end + 1 will not be used if end is nullptr so it
doesn't really matter that the result of this operation is undefined,
but it's therefore also unnecessary to perform the operation at all.

Changing this removes this unnecessary operation and by doing so gives
the undefined behaviour sanitizer one thing less to worry about.