]> granicus.if.org Git - icu/log
icu
5 years agoICU-20197 ICU4C Multithreaded tests cleanup
Andy Heninger [Wed, 13 Feb 2019 02:32:08 +0000 (18:32 -0800)]
ICU-20197 ICU4C Multithreaded tests cleanup

5 years agoICU-20217 Interprets fuzzer data as UCHar* instead of UTF-8. The conversion
Norbert Runge [Fri, 8 Feb 2019 21:47:52 +0000 (13:47 -0800)]
ICU-20217 Interprets fuzzer data as UCHar* instead of UTF-8. The conversion
from assumed UTF-8 resulted in an extremely large percentage of Unicode
replacement characters in the data passed to the API under test.

ICU-20217 Uses fuzzer generated bytes to make random selection of locales, converters,
etc., replacing the random number generator. This way the fuzzer can control
the selections.

ICU-20217 Minor follow-ups from code review.
Removes fuzzer target break_iterator_utf32_fuzzer which does not perform
anything useful what the regular break iterator fuzzer target already performs.

ICU-20217 Fixes for-loop body.

ICU-20217 Uses am allocated buffer to pass head-truncated fuzzer data to the
API under test. The fuzzer may otherwise not detect buffer underflow.
by

ICU-20217 Typing fix.

ICU-20217 Fixing typing.

ICU-20217 Improve fuzzer targets, move truncated fuzzer data into a
new buffer to prevent that buffer underflow goes undetected.

ICU-20217 Fixes buffer management of fuzzer-provided data.

ICU-20217 Factor in PR review comments.

5 years agoICU-12902 make create/getInstanceForSkeleton use correct calendar; don't try to capit...
Peter Edberg [Tue, 19 Feb 2019 22:36:58 +0000 (14:36 -0800)]
ICU-12902 make create/getInstanceForSkeleton use correct calendar; don't try to capitalize empty field

5 years agoICU-20243 Setup triggers for the Exhaustive Tests to only build on the master branch.
Jeff Genovy [Wed, 20 Feb 2019 21:03:00 +0000 (13:03 -0800)]
ICU-20243 Setup triggers for the Exhaustive Tests to only build on the master branch.

5 years agoICU-20078 Add JP_ERA_2019 constants, export enableTentativeEra(), add intervalFmt...
Peter Edberg [Fri, 8 Feb 2019 06:56:00 +0000 (22:56 -0800)]
ICU-20078 Add JP_ERA_2019 constants, export enableTentativeEra(), add intervalFmt tests with eras

5 years agoICU-20243 Enable the Exhaustive Tests in the CI builds.
Jeff Genovy [Sat, 19 Jan 2019 01:48:56 +0000 (17:48 -0800)]
ICU-20243 Enable the Exhaustive Tests in the CI builds.

Using a separate YML file for the Exhaustive Tests configuration so that the Azure Pipelines build can be run separately.

5 years agoICU-20413 ICU4C: OOM not handled in initStaticTimeZones() in timezone.cpp.
Jeff Genovy [Sun, 10 Feb 2019 01:36:35 +0000 (17:36 -0800)]
ICU-20413 ICU4C: OOM not handled in initStaticTimeZones() in timezone.cpp.
-Use static allocated memory and placement new to avoid OOM failures.

5 years agoICU-13320 ICU4J DateFormatSymbols, add getNarrowEras/setNarrowEras (#386)
Peter Edberg [Mon, 4 Feb 2019 23:54:54 +0000 (15:54 -0800)]
ICU-13320 ICU4J DateFormatSymbols, add getNarrowEras/setNarrowEras (#386)

5 years agoICU-10923 Adding wildcard resource matching.
Shane F. Carr [Sat, 16 Feb 2019 10:56:40 +0000 (02:56 -0800)]
ICU-10923 Adding wildcard resource matching.

5 years agoICU-10923 Adding file replacement mechanism to buildtool.
Shane F. Carr [Sat, 16 Feb 2019 12:33:20 +0000 (04:33 -0800)]
ICU-10923 Adding file replacement mechanism to buildtool.

5 years agoICU-20419 Export internal StackUResourceBundle helper, so it can be used in the i18n...
Jeff Genovy [Sun, 17 Feb 2019 21:06:38 +0000 (13:06 -0800)]
ICU-20419 Export internal StackUResourceBundle helper, so it can be used in the i18n library.
Replace all current usages of ures_initStackObject() in the i18n library with the StackUResourceBundle helper.

5 years agoICU-20431 Both und_XX and _XX should fall back to the default locale
Fredrik Roubert [Fri, 15 Feb 2019 19:42:18 +0000 (20:42 +0100)]
ICU-20431 Both und_XX and _XX should fall back to the default locale

5 years agoICU-20414 Add internal ures_openDirectFillIn API, use in getTZDataVersion to avoid...
Jeff Genovy [Sun, 17 Feb 2019 22:25:38 +0000 (14:25 -0800)]
ICU-20414 Add internal ures_openDirectFillIn API, use in getTZDataVersion to avoid memory allocation for UResourceBundle.

5 years agoICU-20415 uregex_start64() and end64() truncation.
Andy Heninger [Tue, 19 Feb 2019 22:04:08 +0000 (14:04 -0800)]
ICU-20415 uregex_start64() and end64() truncation.

5 years agoICU-20210 ICU-20211 Cherry-pick fixes from CLDR to unblock exhaustive tests.
Jeff Genovy [Fri, 15 Feb 2019 05:24:37 +0000 (21:24 -0800)]
ICU-20210 ICU-20211 Cherry-pick fixes from CLDR to unblock exhaustive tests.

Cherry-pick cldrbug 11492: Bad symbols for NaN in sv, ksh, kl, se locales.
Cherry-pick cldrbug 11491: sd, month name for July uses character not in exemplars.
Updated the various ICU4J *.jar files as well.

5 years agoICU-20434 ICU4C AppVeyor CI builds failing on Cygwin 3.0.0. Use Cygwin to 2.11 for...
Jeff Genovy [Sun, 17 Feb 2019 22:28:05 +0000 (14:28 -0800)]
ICU-20434 ICU4C AppVeyor CI builds failing on Cygwin 3.0.0. Use Cygwin to 2.11 for now.

Also remove the redundant VS2017 build from AppVeyor, since we have Azure Pipelines.

5 years agoICU-20254 Handling OOM in AffixTokenMatcherWarehouse.
Shane Carr [Fri, 15 Feb 2019 08:45:31 +0000 (00:45 -0800)]
ICU-20254 Handling OOM in AffixTokenMatcherWarehouse.

5 years agoICU-20284 Updating docs on mutability of currency fraction digits.
Shane Carr [Fri, 15 Feb 2019 08:38:00 +0000 (00:38 -0800)]
ICU-20284 Updating docs on mutability of currency fraction digits.

5 years agoICU-13731 Adding test for default currency symbol.
Shane Carr [Fri, 15 Feb 2019 06:09:33 +0000 (22:09 -0800)]
ICU-13731 Adding test for default currency symbol.

5 years agoICU-20144 Implementing numsys-dependent range pattern loading.
Shane Carr [Fri, 15 Feb 2019 10:41:32 +0000 (02:41 -0800)]
ICU-20144 Implementing numsys-dependent range pattern loading.

5 years agoICU-20144 Adding test for range pattern consistency.
Shane Carr [Fri, 15 Feb 2019 10:01:47 +0000 (02:01 -0800)]
ICU-20144 Adding test for range pattern consistency.

5 years agoICU-20383 DateTimePatternGen should map 'j' using timeData, not short time cycle...
Peter Edberg [Tue, 12 Feb 2019 06:22:08 +0000 (22:22 -0800)]
ICU-20383 DateTimePatternGen should map 'j' using timeData, not short time cycle (#419)

5 years agoICU-20342 Adding FormattedDateInterval in Java.
Shane Carr [Sat, 16 Feb 2019 00:47:13 +0000 (16:47 -0800)]
ICU-20342 Adding FormattedDateInterval in Java.

- Adds first SpanField to ICU4J.

5 years agoICU-10675 Documentation wrong on ICU4C ListFormatter
Mihai Nita [Fri, 15 Feb 2019 18:42:54 +0000 (10:42 -0800)]
ICU-10675 Documentation wrong on ICU4C ListFormatter

5 years agoICU-10923 Configure should fail when Python fails.
Shane Carr [Tue, 12 Feb 2019 02:36:53 +0000 (18:36 -0800)]
ICU-10923 Configure should fail when Python fails.

5 years agoICU-20313 Adding more docs about thread-safety of Number[Range]Formatter.
Shane Carr [Thu, 14 Feb 2019 21:42:29 +0000 (13:42 -0800)]
ICU-20313 Adding more docs about thread-safety of Number[Range]Formatter.

5 years agoICU-20410 Fix grandfathered tag w/ extensions
Frank Tang [Mon, 11 Feb 2019 21:47:07 +0000 (13:47 -0800)]
ICU-20410 Fix grandfathered tag w/ extensions

5 years agoICU-20108 Adding new parseLenients from CLDR 34 to ICU.
Shane Carr [Fri, 15 Feb 2019 05:43:32 +0000 (21:43 -0800)]
ICU-20108 Adding new parseLenients from CLDR 34 to ICU.

5 years agoICU-20409 Additional refactoring of FormattedValue implementations.
Shane Carr [Fri, 15 Feb 2019 06:42:09 +0000 (22:42 -0800)]
ICU-20409 Additional refactoring of FormattedValue implementations.

- Migrates Number[Range] formatter to helper macros.
- Adds additional macros.
- Syncs docstrings between subclasses.

5 years agoICU-20144 Adding better documentation and behavior testing on NumberingSystem.
Shane Carr [Fri, 15 Feb 2019 10:15:18 +0000 (02:15 -0800)]
ICU-20144 Adding better documentation and behavior testing on NumberingSystem.

5 years agoICU-20380 Adding error code to DecimalFormat::toNumberFormatter().
Shane Carr [Thu, 14 Feb 2019 22:42:36 +0000 (14:42 -0800)]
ICU-20380 Adding error code to DecimalFormat::toNumberFormatter().

5 years agoICU-20407 hy-arevela/hy-arevmda can. into hy / hyw
Frank Tang [Thu, 14 Feb 2019 23:24:15 +0000 (15:24 -0800)]
ICU-20407 hy-arevela/hy-arevmda can. into hy / hyw

5 years agoICU-20203 Unicode 12 data 20190214
Markus Scherer [Fri, 15 Feb 2019 04:39:57 +0000 (20:39 -0800)]
ICU-20203 Unicode 12 data 20190214

5 years agoICU-12584 Fix memory allocation for getFormats.
Nebojsa Ciric [Wed, 13 Feb 2019 19:19:18 +0000 (11:19 -0800)]
ICU-12584 Fix memory allocation for getFormats.
Also:
  Add a test case for inner message, other small cleanup.
  Style fixes, using better test methods

5 years agoICU-20365 if roundingIncrement significance smaller than maxFrac, do not use it
Peter Edberg [Thu, 14 Feb 2019 08:59:47 +0000 (00:59 -0800)]
ICU-20365 if roundingIncrement significance smaller than maxFrac, do not use it

5 years agoICU-20138 Adding a tech-preview API, constrainFieldAndValue, and updating matchhesField.
Shane Carr [Thu, 14 Feb 2019 23:48:14 +0000 (15:48 -0800)]
ICU-20138 Adding a tech-preview API, constrainFieldAndValue, and updating matchhesField.

5 years agoICU-20121 Adding span field for FormattedList.
Shane F. Carr [Fri, 8 Feb 2019 10:07:00 +0000 (02:07 -0800)]
ICU-20121 Adding span field for FormattedList.

5 years agoICU-20244 Fix gcc stringop-overflow warning/error in uloc.cpp.
Romain Geissler [Sun, 28 Oct 2018 22:50:51 +0000 (22:50 +0000)]
ICU-20244 Fix gcc stringop-overflow warning/error in uloc.cpp.

5 years agoICU-11725 Promoting tech-previews in DecimalFormat to @draft.
Shane Carr [Fri, 25 Jan 2019 03:44:17 +0000 (19:44 -0800)]
ICU-11725 Promoting tech-previews in DecimalFormat to @draft.

- Changes Java DecimalFormat boolean get* methods to is*.
- Makes the new draft methods non-virtual.
- Removes obsolete template class in header file.
- Adds proper U_HIDE tags in unum.h and decimfmt.h

5 years agoICU-20121 Fixing docs tags in FormattedList.
Shane Carr [Wed, 13 Feb 2019 21:16:15 +0000 (13:16 -0800)]
ICU-20121 Fixing docs tags in FormattedList.

5 years agoICU-20138 Adding matchesField as draft and removing getConstraintType.
Shane Carr [Wed, 13 Feb 2019 22:37:30 +0000 (14:37 -0800)]
ICU-20138 Adding matchesField as draft and removing getConstraintType.

5 years agoICU-10923 Remove unused variable AVAILABLE_FEATURES.
Shane F. Carr [Wed, 13 Feb 2019 19:40:16 +0000 (11:40 -0800)]
ICU-10923 Remove unused variable AVAILABLE_FEATURES.

5 years agoICU-20187 drop support for long-obsolete locale ID variants
Markus Scherer [Tue, 12 Feb 2019 06:13:46 +0000 (22:13 -0800)]
ICU-20187 drop support for long-obsolete locale ID variants

5 years agoICU-20111 move text layout properties data into a new ulayout.icu data file
Markus Scherer [Wed, 13 Feb 2019 22:35:10 +0000 (14:35 -0800)]
ICU-20111 move text layout properties data into a new ulayout.icu data file

5 years agoICU-20328 Implement LocaleBuilder
Frank Tang [Tue, 23 Oct 2018 01:17:55 +0000 (09:17 +0800)]
ICU-20328 Implement LocaleBuilder
Design Doc: https://goo.gl/Qf12p3

5 years agoICU-20416 Various OOM fixes for calendar.cpp
Jeff Genovy [Mon, 11 Feb 2019 05:33:00 +0000 (21:33 -0800)]
ICU-20416 Various OOM fixes for calendar.cpp

5 years agoICU-20100 Change the name of the TimeZone::getDisplayName daylight parameter.
Jeff Genovy [Fri, 18 Jan 2019 19:45:44 +0000 (11:45 -0800)]
ICU-20100 Change the name of the TimeZone::getDisplayName daylight parameter.

The TimeZone::getDisplayName "daylight" parameter conflicts with an existing macro in the CRT "time.h" header.

5 years agoICU-20362 segfault/leftover files with long lines
Tobias Stoeckmann [Sat, 19 Jan 2019 13:24:56 +0000 (14:24 +0100)]
ICU-20362 segfault/leftover files with long lines

If a file with an input line larger than INT32_MAX (i.e. 2 GB) contains
an UTF8 character after that limit, escapesrc crashes on 64 bit systems
or does not remove incomplete files on 32 bit systems.

The issue is that an unchecked cast from size_t to int32_t can turn
negative, which results in negative offsets during array access.

This will eventually lead to an out of boundary read, which most likely
crashes the tool.

This patch sets a fixed limit on 1 GB to make sure that no side effects
occur if the line is exactly INT32_MAX or a few bytes less. It should
still be way more than anyone would really need.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
5 years agoICU-20363 Out of boundary write on empty file.
Tobias Stoeckmann [Sat, 19 Jan 2019 15:54:18 +0000 (16:54 +0100)]
ICU-20363 Out of boundary write on empty file.

If gencnval encounters an empty input file the function resolveAlias
triggers an out of boundary write due to uniqueAliasArr pointing to
a 0 byte reserved memory address.

This patch protects the code in question with a check for
knownAliasesCount being not 0.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
5 years agoICU-11991 Fixed memory leak in parse.cpp
Nebojsa Ciric [Tue, 12 Feb 2019 19:23:22 +0000 (11:23 -0800)]
ICU-11991 Fixed memory leak in parse.cpp

Squashed commits for merge.

5 years agoICU-20342 Adding FormattedDateInterval in C and C++.
Shane Carr [Mon, 11 Feb 2019 23:53:31 +0000 (15:53 -0800)]
ICU-20342 Adding FormattedDateInterval in C and C++.

- Adds first "span" field category
- Re-implements DateIntervalFormat#fallbackFormat to use FieldPositionHandler
- New temporary wiring in SimpleFormatter

5 years agoICU-13789 ICU-20387 ICU4C PerfTest does not build, Upgrade various *.vcxproj files
Daniel Ju [Tue, 5 Feb 2019 22:02:15 +0000 (14:02 -0800)]
ICU-13789 ICU-20387 ICU4C PerfTest does not build, Upgrade various *.vcxproj files

5 years agoICU-20382 ICU4C: pkgdata and genccode support ARM32 but not ARM64 on Windows platforms.
Jeff Genovy [Fri, 8 Feb 2019 19:31:12 +0000 (11:31 -0800)]
ICU-20382 ICU4C: pkgdata and genccode support ARM32 but not ARM64 on Windows platforms.

5 years agoICU-13256 Implementing FormattedRelativeDateTime in C, C++, and Java.
Shane Carr [Sat, 9 Feb 2019 06:08:16 +0000 (22:08 -0800)]
ICU-13256 Implementing FormattedRelativeDateTime in C, C++, and Java.

- Adds additional logic to NumberStringBuilder.
- Extends logic of number::impl::Field type.
- Adds tests for RBNF support.
- Adds tests from ftang's original PR.

5 years agoICU-20332 Adding duration-person unit data and APIs to C and J.
Shane F. Carr [Fri, 8 Feb 2019 23:10:59 +0000 (15:10 -0800)]
ICU-20332 Adding duration-person unit data and APIs to C and J.

- Rebuilds ICU4J data jars.
- Includes a workaround in data loading to be fixed with ICU-20400.

5 years agoICU-20378 Changing APIs for UFieldCategory to int32_t.
Shane F. Carr [Mon, 28 Jan 2019 05:29:12 +0000 (21:29 -0800)]
ICU-20378 Changing APIs for UFieldCategory to int32_t.

5 years agoICU-12017 Improve line break around numbers.
Andy Heninger [Wed, 5 Dec 2018 21:34:34 +0000 (13:34 -0800)]
ICU-12017 Improve line break around numbers.

5 years agoICU-20385 Regex, fix pattern compile problem with look-behind patterns that cannot...
Andy Heninger [Sat, 2 Feb 2019 00:05:46 +0000 (16:05 -0800)]
ICU-20385 Regex, fix pattern compile problem with look-behind patterns that cannot match.

5 years agoICU-20401 rbbi break rules, update comments to match current UAX versions.
Andy Heninger [Thu, 7 Feb 2019 02:01:04 +0000 (18:01 -0800)]
ICU-20401 rbbi break rules, update comments to match current UAX versions.

5 years agoICU-20330 simplify LocaleMatcher code:
Markus Scherer [Tue, 8 Jan 2019 01:41:08 +0000 (17:41 -0800)]
ICU-20330 simplify LocaleMatcher code:
- widen API from LocalePriorityList to Iterable
- merge getBestMatch(multiple locales) and getBestMatch(single locale) into one function
- process desired locales incrementally, create fewer objects
- reject poor matches early: use bestDistance-demotion for threshold
- add API for java.util.Locale, convert incrementally
- new feature: tracks indexes of supported and desired locales which eliminates conversion of result objects in wrappers around getBestMatch() as shown by the java.util.Locale API here
- simpler data structures, more serialization-friendly (easier to port to C++)
  - e.g., use a BytesTrie each for likelySubtags & locale distance, instead of layers of TreeMap
- un-hardcode locale matcher data; use modern resource bundle functions
- split builder code & runtime code into separate classes
- move LSR to simple top-level value class, cache regionIndex in LSR
- simpler handling of private use languages and pseudolocales
- simplify RegionMapper
- LocaleDistance builder: move the node distance into the DistanceTable, remove DistanceNode
- support distance rules with region codes, not just with variables
- enforce & use distance rule constraints:
  - no rule with *,supported or desired,*
  - no rule with language * and script/region non-*
- distance trie collapse a (desired, supported)=(ANY, ANY) pair into a single *
- look up each desired language only once for all supported LSRs
- remove layers-of-Maps compaction (trie builder compacts)
- remove unused XML printing
- remove other unused code
- make XLocaleMatcherTest.testPerf() exercise locale distance lookup code

5 years agoICU-20138 Copy fErrorCode in FormattedValue subclass macro.
Shane Carr [Thu, 7 Feb 2019 00:03:10 +0000 (16:03 -0800)]
ICU-20138 Copy fErrorCode in FormattedValue subclass macro.

5 years agoICU-20360 Testing and fixing stack overflow in numparse.
Shane Carr [Wed, 6 Feb 2019 22:38:36 +0000 (14:38 -0800)]
ICU-20360 Testing and fixing stack overflow in numparse.

5 years agoICU-20121 Changing C API method name to ulistfmt_formatStringsToResult.
Shane F. Carr [Fri, 8 Feb 2019 00:25:16 +0000 (16:25 -0800)]
ICU-20121 Changing C API method name to ulistfmt_formatStringsToResult.

5 years agoICU-20121 Initial UFormattedList implementation, C.
Shane F. Carr [Tue, 5 Feb 2019 06:24:00 +0000 (22:24 -0800)]
ICU-20121 Initial UFormattedList implementation, C.

5 years agoICU-20121 Initial FormattedList implementation, C++.
Shane F. Carr [Tue, 5 Feb 2019 02:47:04 +0000 (18:47 -0800)]
ICU-20121 Initial FormattedList implementation, C++.

5 years agoICU-20389 Add MSVC Debug build to the Azure CI builds.
Jeff Genovy [Thu, 7 Feb 2019 22:53:53 +0000 (14:53 -0800)]
ICU-20389 Add MSVC Debug build to the Azure CI builds.

Also increase the timeout for the debug build.

5 years agoICU-20373 simpler state saving for Java string tries via long not object
Markus Scherer [Thu, 7 Feb 2019 19:56:14 +0000 (11:56 -0800)]
ICU-20373 simpler state saving for Java string tries via long not object

5 years agoICU-20320 Fix the missing digit singleton extension
Frank Tang [Fri, 21 Dec 2018 22:45:47 +0000 (14:45 -0800)]
ICU-20320 Fix the missing digit singleton extension

Add space

add test cases for Java and fix Java code

5 years agoICU-20321 Fix ultag_isUnicodeLocaleKey
Frank Tang [Wed, 26 Dec 2018 21:48:17 +0000 (13:48 -0800)]
ICU-20321 Fix ultag_isUnicodeLocaleKey

Returns false when passingin alphanum digit.
Sync with UTS35
https://www.unicode.org/reports/tr35/#Unicode_locale_identifier

address review feedback add unit tests.

Fix Java too

add test cases to c++

Fix format

change test case

5 years agoICU-20337 Adding value getters to C++ MeasureUnit API.
Shane Carr [Sat, 19 Jan 2019 07:34:23 +0000 (23:34 -0800)]
ICU-20337 Adding value getters to C++ MeasureUnit API.

ICU-20337 Restoring comments in MeasureUnitTest.java

5 years agoICU-20306 Remove incorrect #ifndef U_HIDE_INTERNAL_API around UTEXT_MAGIC
Peter Edberg [Thu, 7 Feb 2019 00:40:35 +0000 (16:40 -0800)]
ICU-20306 Remove incorrect #ifndef U_HIDE_INTERNAL_API around UTEXT_MAGIC

5 years agoICU-10923 Fixing warning in testdata build file.
Shane Carr [Thu, 7 Feb 2019 00:19:48 +0000 (16:19 -0800)]
ICU-10923 Fixing warning in testdata build file.

5 years agoICU-20375 string tries: covariant clone() return types, and copy constructors
Markus Scherer [Wed, 6 Feb 2019 23:23:17 +0000 (15:23 -0800)]
ICU-20375 string tries: covariant clone() return types, and copy constructors

5 years agoICU-13081 test self-move without clang warning
Markus Scherer [Thu, 7 Feb 2019 00:08:17 +0000 (16:08 -0800)]
ICU-13081 test self-move without clang warning

5 years agoICU-20002 Modify Windows 'distrelease.ps1' for 32-bit (x86) builds
Daniel Ju [Tue, 5 Feb 2019 19:12:18 +0000 (11:12 -0800)]
ICU-20002 Modify Windows 'distrelease.ps1' for 32-bit (x86) builds

5 years agoICU-20213 deprecate BreakIterator::createTitleInstance()
Markus Scherer [Wed, 6 Feb 2019 22:37:48 +0000 (14:37 -0800)]
ICU-20213 deprecate BreakIterator::createTitleInstance()

5 years agoICU-20376 Add out-of-source build testing to Travis.
Andy Heninger [Wed, 6 Feb 2019 01:24:29 +0000 (17:24 -0800)]
ICU-20376 Add out-of-source build testing to Travis.

5 years agoICU-13081 remove C++ moveFrom() functions: still draft, but obsolete since we require...
Markus Scherer [Wed, 6 Feb 2019 19:49:34 +0000 (11:49 -0800)]
ICU-13081 remove C++ moveFrom() functions: still draft, but obsolete since we require C++11 which has std::move()

5 years agoICU-20395 Fix cldr-icu-readme.txt to not mention whitelist
Steven R. Loomis [Wed, 6 Feb 2019 00:33:26 +0000 (16:33 -0800)]
ICU-20395 Fix cldr-icu-readme.txt to not mention whitelist

5 years agoICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but...
Markus Scherer [Wed, 6 Feb 2019 00:52:29 +0000 (16:52 -0800)]
ICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but a single dot

5 years agoICU-20347 Update ICU4J test to reflect expected behavior
Peter Edberg [Wed, 6 Feb 2019 07:29:46 +0000 (23:29 -0800)]
ICU-20347 Update ICU4J test to reflect expected behavior

5 years agoICU-20347 In ICU4J, parsing emoty string should set PARSE_ERROR as before; check...
Peter Edberg [Wed, 6 Feb 2019 05:45:03 +0000 (21:45 -0800)]
ICU-20347 In ICU4J, parsing emoty string should set PARSE_ERROR as before; check ICU4J behavior

5 years agoICU-20138 Macros for C and C++ FormattedValue subclass boilerplate.
Shane F. Carr [Tue, 5 Feb 2019 02:47:04 +0000 (18:47 -0800)]
ICU-20138 Macros for C and C++ FormattedValue subclass boilerplate.

- Includes macros for implementation only. Headers should be spelled out.

5 years agoICU-20138 Adding FormattedValue helper implementation for FPI handlers.
Shane F. Carr [Tue, 5 Feb 2019 02:45:56 +0000 (18:45 -0800)]
ICU-20138 Adding FormattedValue helper implementation for FPI handlers.

- Changes FieldPositionIterator (FPI) to use tetrads in the UVector32.

5 years agoICU-20138 Implementing ufmtval_nextPosition and additional test infra.
Shane F. Carr [Mon, 4 Feb 2019 22:21:41 +0000 (14:21 -0800)]
ICU-20138 Implementing ufmtval_nextPosition and additional test infra.

- Adds test infra for multi-category formatted values.
- Adds helper method ConstrainedFieldPosition#matchesField, currently internal.

5 years agoICU-20253 ICU4C RelativeDateTimeFormatter should fall back to OTHER case, as in ICU4J
Peter Edberg [Wed, 6 Feb 2019 00:33:28 +0000 (16:33 -0800)]
ICU-20253 ICU4C RelativeDateTimeFormatter should fall back to OTHER case, as in ICU4J

5 years agoICU-20204 ICU4C: Use the CreateFileMapping API for both the UWP version and Win32...
Jeff Genovy [Mon, 15 Oct 2018 18:07:39 +0000 (11:07 -0700)]
ICU-20204 ICU4C: Use the CreateFileMapping API for both the UWP version and Win32 versions.

- CreateFileMappingW is marked for both desktop and UWP apps, so we can call that in both code paths.
- We can use the W version of the CreateFileMapping API instead of A version since we pass a NULL for the name anyways.
- We can call the same API CreateFile[A|W] from both the UWP and Win32 versions of the code, reducing one of the UWP forks.
- Add a work-around for older versions of the Windows 10 SDK UWP headers.
- Remove the code that was creating a custom security descriptor (but setting everything to NULL) and pass null to the API directly. This way we will get the default security descriptor instead of the NULL dacl.
- Change to use nullptr instead of NULL in C++ code.

5 years agoICU-20374 need unum_close in new TestParseCases
Peter Edberg [Tue, 5 Feb 2019 21:32:52 +0000 (13:32 -0800)]
ICU-20374 need unum_close in new TestParseCases

5 years agoICU-20374 Formattable::internalGetCharString should produce int string for types...
Peter Edberg [Tue, 5 Feb 2019 19:34:29 +0000 (11:34 -0800)]
ICU-20374 Formattable::internalGetCharString should produce int string for types kLong or kInt64

5 years agoICU-20388 ICU4C: intltest fails with a "Debug Assertion Break" on MSVC when compiled...
Jeff Genovy [Sun, 3 Feb 2019 06:59:32 +0000 (22:59 -0800)]
ICU-20388 ICU4C: intltest fails with a "Debug Assertion Break" on MSVC when compiled for Debug.

Need to use free() with malloc() instead of uprv_free().

5 years agoICU-13847 ICU-20381 Improve handling of errors (Out-of-Memory) in DecimalFormat class.
Jeff Genovy [Mon, 4 Feb 2019 22:29:09 +0000 (14:29 -0800)]
ICU-13847 ICU-20381 Improve handling of errors (Out-of-Memory) in DecimalFormat class.

- Use move assignment for fields->formatter (LocalizedNumberFormatter) instead of creating new heap object every time.
- Add test cases for DecimalFormat object in invalid state.
- Protect against self-assignment in assignment operator.
- Fix segmentation fault when attempting to compare valid and invalid DecimalFormat objects.
- Changes based on review feedback from Shane.
- Fix minor typos in the public header file.

5 years agoICU-20393 ICU4C: Scale move assignment operator leaks the fArbitrary member (96 bytes)
Jeff Genovy [Sun, 3 Feb 2019 05:53:51 +0000 (21:53 -0800)]
ICU-20393 ICU4C: Scale move assignment operator leaks the fArbitrary member (96 bytes)

5 years agoICU-20217 Replaces seed corpus zip files with the original txt files.
Norbert Runge [Fri, 1 Feb 2019 18:22:10 +0000 (10:22 -0800)]
ICU-20217 Replaces seed corpus zip files with the original txt files.
The problem is that Docker receives zip files only as LFS links when
cloning ICU from GitHub. Converting the txt files into zip files, which
is the required corpus format for the fuzzer, will be done by the oss-fuzz
build script.

ICU-20217 Adds fuzzer seed corpus files to the list of files that don't have
copyright notice.

5 years agoICU-20386 Adds workaround to icu4c/source/data/Makefile.in: Help python to find
Norbert Runge [Thu, 31 Jan 2019 22:22:38 +0000 (14:22 -0800)]
ICU-20386 Adds workaround to icu4c/source/data/Makefile.in: Help python to find
the buildtools directory it needs when running the ICU4C unit tests in an
out-of-source installation.
The change is a quick workaround for now for an issue that can have wide impact.

5 years agoICU-20220 ICU4C: Use anonymous namespace instead of 'static' keyword in uspoof.cpp
Daniel Ju [Tue, 29 Jan 2019 03:06:14 +0000 (19:06 -0800)]
ICU-20220 ICU4C: Use anonymous namespace instead of 'static' keyword in uspoof.cpp

5 years agoICU-9622 Update documentation for MessageFormat and skeletons (#361)
Mihai Nita [Wed, 23 Jan 2019 19:20:06 +0000 (11:20 -0800)]
ICU-9622 Update documentation for MessageFormat and skeletons (#361)

5 years agoICU-20357 Adding std::unique_ptr conversions to LocalXyzPointer macro.
Shane F. Carr [Mon, 28 Jan 2019 09:04:48 +0000 (01:04 -0800)]
ICU-20357 Adding std::unique_ptr conversions to LocalXyzPointer macro.

5 years agoICU-20217 Adds additional ICU4C fuzzers.
Norbert Runge [Fri, 25 Jan 2019 20:58:18 +0000 (12:58 -0800)]
ICU-20217 Adds additional ICU4C fuzzers.

5 years agoICU-20298 Adding improved locale filtering to buildtool.
Shane Carr [Thu, 24 Jan 2019 04:49:33 +0000 (20:49 -0800)]
ICU-20298 Adding improved locale filtering to buildtool.

- Integrates changes from cldrbug 11802 to ICU.
- Adds test suite for buildtool.
- Adds new filter type "union".

5 years agoICU-13839 Adding FormattedNumber API to PluralRules.
Shane Carr [Fri, 11 Jan 2019 07:42:43 +0000 (23:42 -0800)]
ICU-13839 Adding FormattedNumber API to PluralRules.

- Makes new dependency class for PluralRules+FormattedNumber.