]> granicus.if.org Git - icu/log
icu
6 years agoICU-20182 Updated ICU4J pom to reflect the repository migration from svn to git....
Yoshito Umaoka [Mon, 8 Oct 2018 15:37:28 +0000 (11:37 -0400)]
ICU-20182 Updated ICU4J pom to reflect the repository migration from svn to git. (#196)

6 years agoICU-20120 Travis TSAN testing, limit time. (#198)
Andy Heninger [Sat, 6 Oct 2018 03:24:45 +0000 (20:24 -0700)]
ICU-20120 Travis TSAN testing, limit time. (#198)

* ICU-20120 Travis TSAN testing, limit time.

* ICU-20120 Travis TSAN testing, limit time.

6 years agoICU-20196 Fix MSVC/clang compiler warning C4251, export explicit template, required...
Jeff Genovy [Fri, 5 Oct 2018 17:44:52 +0000 (10:44 -0700)]
ICU-20196 Fix MSVC/clang compiler warning C4251, export explicit template, required for building DLLs on Windows. Also fix a few other warnings as well.

6 years agoICU-20120 63 BRS, integrate cldr release-34-beta with various fixes (#186)
pedberg-icu [Fri, 5 Oct 2018 18:01:15 +0000 (11:01 -0700)]
ICU-20120 63 BRS, integrate cldr release-34-beta with various fixes (#186)

6 years agoICU-20193 urename.h shouldn't be ignored by other compilers except VS IntelliSense...
gvictor [Thu, 4 Oct 2018 23:29:57 +0000 (00:29 +0100)]
ICU-20193 urename.h shouldn't be ignored by other compilers except VS IntelliSense (#189)

The macro _MSC_VER is not defined in other compilers.
Change the logic and so urename.h is ignored on VS IntelliSense

6 years agoICU-20191 Don't use Win32 APIs on Cygwin (#185)
kbrow1i [Thu, 4 Oct 2018 21:10:00 +0000 (17:10 -0400)]
ICU-20191 Don't use Win32 APIs on Cygwin (#185)

This was fixed in earlier commits (see, for example, ICU-12786), but
the problem was reintroduced in commits f8ba68e and fcb82cb.

6 years agoICU-20119 Update ICU4C #ifndef U_HIDE_XXX guard conditionals (PR #183) release-63-rc
pedberg-icu [Mon, 1 Oct 2018 04:23:42 +0000 (21:23 -0700)]
ICU-20119 Update ICU4C #ifndef U_HIDE_XXX guard conditionals (PR #183)

ICU-20119 Update ICU4C #ifndef U_HIDE_XXX guard conditionals (PR #183)

6 years agoICU-20119 cldr release-34-alpha3 integration (#181)
pedberg-icu [Fri, 28 Sep 2018 23:09:15 +0000 (16:09 -0700)]
ICU-20119 cldr release-34-alpha3 integration (#181)

ICU-20119 cldr release-34-alpha3 integration (PR #181):
* ICU-20119 63rc BRS, cldr 34-alpha3: add ku,xh; fixes for de/it CompactDec, availFmts yw amd MW patterns
* ICU-20119 Skip & log_knownIssue for Windows LCID mapping problem with ckb/ku

6 years agoICU-20119 BRS63RC Fixed ICU4J plugin build issue (#182)
Yoshito Umaoka [Fri, 28 Sep 2018 19:22:55 +0000 (15:22 -0400)]
ICU-20119 BRS63RC Fixed ICU4J plugin build issue (#182)

ICU4J plugin build configuration still used 1.6 as java source version. It must be changed to 1.7.

6 years agoICU-20119 BRS63RC Updated ICU4J README for 63RC (#180)
Yoshito Umaoka [Fri, 28 Sep 2018 17:28:08 +0000 (13:28 -0400)]
ICU-20119 BRS63RC Updated ICU4J README for 63RC (#180)

6 years agoICU-20119 ICU4C 63 API promotion & change report (#161)
Andy Heninger [Fri, 28 Sep 2018 16:36:25 +0000 (09:36 -0700)]
ICU-20119 ICU4C 63 API promotion & change report (#161)

* ICU-20119 ICU4C 63 API promotion, work in progress.

* ICU-20119 ICU4C 63 API promotion, work in progress.

* ICU-20119 ICU 63 API promotion & change report

* ICU-20119 ICU4C 63 API change report, new draft, still work in progress.

* ICU-20119 ICU4C 63 API change report, another new draft, still work in progress.

* ICU-20119 ICU4C 63 API change report, another new draft.

* ICU-20119 ICU4C 63 API change report, after @preview revert. Hopefully the final rev.

* ICU-20119 ICU4C 63 API change report, clean up a few minor html errors.

6 years agoICU-20119 BRS63RC Add ICU4J serialization test data (#178)
Yoshito Umaoka [Fri, 28 Sep 2018 14:26:04 +0000 (10:26 -0400)]
ICU-20119 BRS63RC Add ICU4J serialization test data (#178)

Added serialized test data with ICU4J 63.1, removed one for ICU 58.1.

6 years agoICU-20119 BRS63RC Add ICU4J API signature file
Yoshito Umaoka [Fri, 28 Sep 2018 04:57:18 +0000 (00:57 -0400)]
ICU-20119 BRS63RC Add ICU4J API signature file

Added ICU4J 63 API signature file, removed one for ICU4J 53

6 years agoICU-20119 ICU4J API promotion, @draft 60 → @stable 60 (#174)
Shane F. Carr [Fri, 28 Sep 2018 01:31:53 +0000 (18:31 -0700)]
ICU-20119 ICU4J API promotion, @draft 60 â†’ @stable 60 (#174)

* ICU-20119 ICU4J API promotion, @draft 60 â†’ @stable 60

* ICU-20119 Updating ICU4J API Change Report.

* ICU-20119 FilteredBreakIteratorBuilder and NumberingSystem to @stable (ICU4J).

6 years agoICU-20119 Fixes for run-without-data BRS test. In all cases an error (#177) pre63-new-master
gnrunge [Wed, 26 Sep 2018 23:23:35 +0000 (16:23 -0700)]
ICU-20119 Fixes for run-without-data BRS test. In all cases an error (#177)

check was needed in the test cases to prevent a segmentation fault.

6 years agoICU-20168 Fix memory leak in error path, add a free statement. (#175)
gnrunge [Wed, 26 Sep 2018 23:04:29 +0000 (16:04 -0700)]
ICU-20168 Fix memory leak in error path, add a free statement. (#175)

6 years agoICU-13685 Revert c: add @preview (retry) (#172)
Steven R. Loomis [Wed, 26 Sep 2018 18:52:49 +0000 (11:52 -0700)]
ICU-13685 Revert c: add @preview (retry) (#172)

This reverts commit 25f1589466c8b74ce36d762d4e9f3a72b3007eaf from  #8

6 years agoICU-9562 Update language tag mapping per the latest IANA registry
Jungshik Shin [Wed, 26 Sep 2018 13:43:43 +0000 (06:43 -0700)]
ICU-9562 Update language tag mapping per the latest IANA registry

uloc_forLanguageTag has a few mapping tables to map grandfathered
language tags and deprecated language subtags to their preferred or
modern values.

Update them based on the latest version of the IANA
language subtag registry. [1]

Five grandfathered tags without a preferred value are still mapped to
what ICU has mapped them to for backward compatibility until the
wisdom of continuing to do so is reviewed.

In addition, map redundant language tags to their preferred values
regardless of whether they're followed by other subtags or not. (e.g.
zh-yue vs zh-yue-u-co-pinyin) .

Similary, ja-latn-hepburn-heploc is mapped to ja-latn-alaic97 (the
variant subtag 'hepburn-helploc' with the prefix 'ja-latn' has the
preferred value, 'alaic97') .

Update the mapping for deprecated language subtags (e.g. 'jw' to
'jv' and a bunch of 3-letter language codes).

Add a new table for deprecated region subtags to map them to their
modern values. (e.g. 'DD' to 'DE').

Add a new test case for deprecated language and region mapping and
a few more cases for updated grandfathered and redundant tag mapping.

[1]
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

6 years agoICU-20119 pool bundles for ICU 63/CLDR 34 (#173)
Markus Scherer [Tue, 25 Sep 2018 23:58:26 +0000 (16:58 -0700)]
ICU-20119 pool bundles for ICU 63/CLDR 34 (#173)

6 years agoICU-20119 update C++ dependencies, fix bugs (#171)
Markus Scherer [Tue, 25 Sep 2018 20:20:09 +0000 (13:20 -0700)]
ICU-20119 update C++ dependencies, fix bugs (#171)

6 years agoICU-20119 Remove C linkage declaration; urename.h BRS-update script (#169)
gnrunge [Tue, 25 Sep 2018 19:03:25 +0000 (12:03 -0700)]
ICU-20119 Remove C linkage declaration; urename.h BRS-update script (#169)

otherwise includes entry points that should not be included.

6 years agoICU-20119 urename.h update, header test fixes for icu 63 (#165)
gnrunge [Mon, 24 Sep 2018 20:11:40 +0000 (13:11 -0700)]
ICU-20119 urename.h update, header test fixes for icu 63 (#165)

* ICU-20119 Update and fixes for the following BRS tasks:
 - Update urename.h
 - Test uconfig.h variations

* ICU-20119 Updates copyright scanner script exclusions: don't scan ./git/*.

* ICU-20119 Changes in reply to comments for pull requst #165.

6 years agoICU-20085 Revert workaround for pseudolocale region codes for display names.
Fredrik Roubert [Mon, 24 Sep 2018 11:07:57 +0000 (13:07 +0200)]
ICU-20085 Revert workaround for pseudolocale region codes for display names.

This reverts commit 1dccd7472e9f2db4830293b9d33500ea4b4ce082.

6 years agoICU-20119 Merge pull request #162 from pedberg-icu/cldr34a-integration
pedberg-icu [Sat, 22 Sep 2018 01:29:38 +0000 (18:29 -0700)]
ICU-20119 Merge pull request #162 from pedberg-icu/cldr34a-integration

ICU-20119 Integrate CLDR release-34-alpha2, adjust code & test, update MeasureUnit

6 years agoICU-11319 Add tests for compact decimal in zh-Hant and zh-Hant-HK. (#166)
Shane F. Carr [Sat, 22 Sep 2018 01:18:48 +0000 (18:18 -0700)]
ICU-11319 Add tests for compact decimal in zh-Hant and zh-Hant-HK. (#166)

6 years agoICU-20119 63rc BRS, update ICU4C numberformattestspecification.txt for J versions
Peter Edberg [Fri, 21 Sep 2018 21:31:25 +0000 (14:31 -0700)]
ICU-20119 63rc BRS, update ICU4C numberformattestspecification.txt for J versions

6 years agoICU-20125 numeric values of level constants will not change; fix/update some docs...
Markus Scherer [Fri, 21 Sep 2018 23:53:20 +0000 (16:53 -0700)]
ICU-20125 numeric values of level constants will not change; fix/update some docs (#159)

6 years agoICU-20119 Merge pull request #1 from aheninger/cldr34a-integration
pedberg-icu [Fri, 21 Sep 2018 21:11:40 +0000 (14:11 -0700)]
ICU-20119 Merge pull request #1 from aheninger/cldr34a-integration

ICU-20119 Fix NumberFormat failures (by shane)

6 years agoICU-11276 Using atomics for thread safety in NumberRangeFormatter. (#130)
Shane F. Carr [Fri, 21 Sep 2018 23:31:47 +0000 (16:31 -0700)]
ICU-11276 Using atomics for thread safety in NumberRangeFormatter. (#130)

See discussions on pull request.

6 years agoICU-20119 63rc BRS, merge current unicode-icu master (Sep 21) into cldr34a-integratio...
Peter Edberg [Fri, 21 Sep 2018 18:20:50 +0000 (11:20 -0700)]
ICU-20119 63rc BRS, merge current unicode-icu master (Sep 21) into cldr34a-integration branch

6 years agoICU-20119 Fix NumberFormat failures (by shane)
Andy Heninger [Fri, 21 Sep 2018 20:59:10 +0000 (13:59 -0700)]
ICU-20119 Fix NumberFormat failures (by shane)

6 years agoICU-11276 Apply the approximately pattern inside of the unit string. (#148)
Shane F. Carr [Fri, 21 Sep 2018 22:19:16 +0000 (15:19 -0700)]
ICU-11276 Apply the approximately pattern inside of the unit string. (#148)

6 years agoICU-20119 63rc BRS, cldr 34-alpha2 part 3: icu4j code for region,pluralRange; tests...
Peter Edberg [Thu, 20 Sep 2018 22:24:42 +0000 (15:24 -0700)]
ICU-20119 63rc BRS, cldr 34-alpha2 part 3: icu4j code for region,pluralRange; tests for pluralRange,serialization

6 years agoICU-20157 Fix MSVC C4251: Need to export explicit template instantiation, plus some...
Jeff Genovy [Fri, 21 Sep 2018 14:59:31 +0000 (07:59 -0700)]
ICU-20157 Fix MSVC C4251: Need to export explicit template instantiation, plus some more warning fixes. (#154)

* Fix MSVC C4251: Need to export explicit template instantiation for std::atomic<int32_t> when building DLLs

* Some more warning fixes for MSVC as well.

* Can't use static_cast in C file.

6 years agoICU-20160 Add check for Python 3 in autoconf and nmake. (#157)
Shane F. Carr [Fri, 21 Sep 2018 22:06:57 +0000 (15:06 -0700)]
ICU-20160 Add check for Python 3 in autoconf and nmake. (#157)

6 years agoICU-20119 63rc BRS, cldr 34-alpha2 part 2: 10 locales, MeasUnit updates, icu4j tests...
Peter Edberg [Thu, 20 Sep 2018 06:37:10 +0000 (23:37 -0700)]
ICU-20119 63rc BRS, cldr 34-alpha2 part 2: 10 locales, MeasUnit updates, icu4j tests with serialization fails

6 years agoICU-20154 Renaming UGroupingStrategy to UNumberGroupingStrategy. (#142)
Shane F. Carr [Fri, 21 Sep 2018 01:15:22 +0000 (18:15 -0700)]
ICU-20154 Renaming UGroupingStrategy to UNumberGroupingStrategy. (#142)

6 years agoICU-13707 Make UnicodeString safe when appended or inserted into itself. (#147)
Shane F. Carr [Fri, 21 Sep 2018 20:44:21 +0000 (13:44 -0700)]
ICU-13707 Make UnicodeString safe when appended or inserted into itself. (#147)

6 years agoICU-20119 63rc BRS, merge current unicode-icu master into cldr34a-integration branch
Peter Edberg [Wed, 19 Sep 2018 06:18:27 +0000 (23:18 -0700)]
ICU-20119 63rc BRS, merge current unicode-icu master into cldr34a-integration branch

6 years agoICU-13833 Fixing doxygen warnings in numberformatter.h and other files. (#140)
Shane F. Carr [Fri, 21 Sep 2018 01:11:38 +0000 (18:11 -0700)]
ICU-13833 Fixing doxygen warnings in numberformatter.h and other files. (#140)

6 years agoICU-20119 63rc BRS, integrate cldr 34-alpha2, part 1 icu4c
Peter Edberg [Wed, 19 Sep 2018 06:09:04 +0000 (23:09 -0700)]
ICU-20119 63rc BRS, integrate cldr 34-alpha2, part 1 icu4c

6 years agoICU-20037 Fixing ScientificMatcher integer overflow. (#138)
Shane [Wed, 19 Sep 2018 01:10:38 +0000 (18:10 -0700)]
ICU-20037 Fixing ScientificMatcher integer overflow. (#138)

Also restricts parsing to read only one exponent per string.

6 years agoICU-20142 Document the skeleton for MessageFormat number arguments (#121)
Mihai Nita [Fri, 21 Sep 2018 01:11:01 +0000 (18:11 -0700)]
ICU-20142 Document the skeleton for MessageFormat number arguments (#121)

6 years agoICU-13417 Pass length from Locale::forLanguageTag() to ultag_parse().
Fredrik Roubert [Tue, 18 Sep 2018 23:53:22 +0000 (16:53 -0700)]
ICU-13417 Pass length from Locale::forLanguageTag() to ultag_parse().

If not passed a length, ultag_parse() will call uprv_strlen(), requiring
the input buffer to be NUL terminated. This is unnecessary.

6 years agoICU-20066 fixup .travis.yml (#160)
Steven R. Loomis [Thu, 20 Sep 2018 23:09:05 +0000 (16:09 -0700)]
ICU-20066 fixup .travis.yml (#160)

* ICU-20066 fixup .travis.yml

- correct typo from 518f10b7a90a7bca1dd554601a681ba9f341f583
859d6090dc1feee160e870e8ef3d39197a98e1d9 added a PR template that needed exclusion

6 years agoICU-20073 Do not parse stray percent sign in strict mode. (#145)
Shane [Thu, 20 Sep 2018 21:47:25 +0000 (14:47 -0700)]
ICU-20073 Do not parse stray percent sign in strict mode. (#145)

6 years agoICU-13266 Clarifying documentation for NumberFormat#equals(). (#146)
Shane [Thu, 20 Sep 2018 21:47:10 +0000 (14:47 -0700)]
ICU-13266 Clarifying documentation for NumberFormat#equals(). (#146)

6 years agoICU-13824 Fixing MeasureFormat#getWidth() to not return @internal value. (#143)
Shane [Thu, 20 Sep 2018 21:46:48 +0000 (14:46 -0700)]
ICU-13824 Fixing MeasureFormat#getWidth() to not return @internal value. (#143)

6 years agoICU-13830 Fixing CurrencyDisplayNames boolean attribute behavior. (#141)
Shane [Thu, 20 Sep 2018 21:46:32 +0000 (14:46 -0700)]
ICU-13830 Fixing CurrencyDisplayNames boolean attribute behavior. (#141)

6 years agoICU-13850 Make CurrencyUnit safe with 1-length and 2-length strings. (#133)
Shane [Thu, 20 Sep 2018 21:44:48 +0000 (14:44 -0700)]
ICU-13850 Make CurrencyUnit safe with 1-length and 2-length strings. (#133)

Also adds expectError to IcuTestErrorCode.

6 years agoICU-20066 add a copyright scan stage (#26)
Steven R. Loomis [Thu, 20 Sep 2018 21:20:32 +0000 (14:20 -0700)]
ICU-20066 add a copyright scan stage (#26)

- name the travis build steps
- copy cpyskip.txt to /.cpyskip.txt
- add one named "lint" which runs cpyscan.pl
- remove network access from Cpy.pm (requires installation)

6 years agoICU-20119 Merge pull request #152 from gnrunge/icu63_1
gnrunge [Thu, 20 Sep 2018 19:39:45 +0000 (12:39 -0700)]
ICU-20119 Merge pull request #152 from gnrunge/icu63_1

ICU-20119 Smalles fixes for public and internal header test failures.

6 years agoICU-20081 ucase_swap add parens, avoid warning (#156)
Markus Scherer [Thu, 20 Sep 2018 18:33:14 +0000 (11:33 -0700)]
ICU-20081 ucase_swap add parens, avoid warning (#156)

6 years agoICU-20119 Merge github.com:unicode-org/icu into icu63_1
Norbert Runge [Thu, 20 Sep 2018 16:03:58 +0000 (09:03 -0700)]
ICU-20119 Merge github.com:unicode-org/icu into icu63_1

6 years agoICU-20153 Make ICU4J JapaneseCalendar constants non-inlineable. (#155)
Yoshito Umaoka [Thu, 20 Sep 2018 08:00:47 +0000 (04:00 -0400)]
ICU-20153 Make ICU4J JapaneseCalendar constants non-inlineable. (#155)

6 years agoICU-20119 Adds comment to change that fixes a header test failure.
Norbert Runge [Wed, 19 Sep 2018 20:55:50 +0000 (13:55 -0700)]
ICU-20119 Adds comment to change that fixes a header test failure.

6 years agoICU-13832 Transliterator: move rule syntax docs from internal class to public (#150)
Markus Scherer [Thu, 20 Sep 2018 04:51:49 +0000 (21:51 -0700)]
ICU-13832 Transliterator: move rule syntax docs from internal class to public (#150)

6 years agoICU-20119 Smalles fixes for public and internal header test failures.
Norbert Runge [Wed, 19 Sep 2018 19:49:00 +0000 (12:49 -0700)]
ICU-20119 Smalles fixes for public and internal header test failures.

6 years agoICU-13417 Replace fixed buffers in uloc_tag.cpp with CharString.
Fredrik Roubert [Thu, 20 Sep 2018 00:52:37 +0000 (17:52 -0700)]
ICU-13417 Replace fixed buffers in uloc_tag.cpp with CharString.

This gets rid of those fixed buffers that caused ICU-13417 to be filed
in the first place, those that prevent handling language tags with very
large amounts of keywords.

A number of fixed buffers will still remain in uloc_tag.cpp (and
elsewhere in the locale handling code) for the time being, but this
change is a necessary first step in cleaning up this code and will
alleviate the most pressing problem encountered by ICU4C users.

An off-by-one error in _getKeywords() caused uloc_canonicalize() to not
write out the final keyword value in case the result would fill up the
buffer exactly, resulting in U_STRING_NOT_TERMINATED_WARNING.

6 years agoICU-20081 ucase_swap() fix version range check (#151)
Markus Scherer [Wed, 19 Sep 2018 19:04:17 +0000 (12:04 -0700)]
ICU-20081 ucase_swap() fix version range check (#151)

6 years agoICU-20150 API status of equals()/hashCode() should match the ICU class's status ...
Yoshito Umaoka [Wed, 19 Sep 2018 23:02:49 +0000 (19:02 -0400)]
ICU-20150 API status of equals()/hashCode() should match the ICU class's status (#153)

- Updated API status of java.lang.Object method overrides (equals/hashCode/toString/clone) to match status of declaring class. There are some API comments that is insufficient, or incorrect, or not appropriate after the change. Most of these issues were fixed.

- APIStatusConsistencyChecker and ant tasks invoking the check, designed for checking this requirement. For now, Normalizer#clone() does not satisfy the requirement, but unchanged on purpose. The tool can accept exception.

- DeprecatedAPIChecker had a problem for handling non-static inner class's constructor. CodePointMap$StringIterator is the very first instance of such class in ICU4J. The problem was fixed by removing the implicit param scanned by reflection.

- This commit includes a lot of changes made by Eclipse project configuration - removing spaces in blank lines/end of statement, and removeal of redundant generics type declaration.

6 years agoICU-20119 BRS63rc Update version number for ICU4C and ICU4J. Update readme files...
Jeff Genovy [Wed, 19 Sep 2018 18:36:48 +0000 (11:36 -0700)]
ICU-20119 BRS63rc Update version number for ICU4C and ICU4J. Update readme files. (#144)

BRS: Update version number for ICU 63 RC for ICU4J and ICU4C, also update readme files.

6 years agoICU-20147 Fix MSVC warning C4251, and fix a few other warnings too. (#134)
Jeff Genovy [Wed, 19 Sep 2018 17:05:27 +0000 (10:05 -0700)]
ICU-20147 Fix MSVC warning C4251, and fix a few other warnings too. (#134)

6 years agoICU-20076 MSVC Warning clean up. Define _HAS_EXCEPTIONS=0 in ICU library code (#128)
Jeff Genovy [Wed, 19 Sep 2018 08:21:57 +0000 (01:21 -0700)]
ICU-20076 MSVC Warning clean up. Define _HAS_EXCEPTIONS=0 in ICU library code (#128)

In an effort to reduce the number of warnings that building ICU emits, we should set the following define for ICU4C library code when building using MSVC/VisualStudio: _HAS_EXCEPTIONS=0
This tells the MSVC implementation of the STL that exceptions should not be used - which is fine for ICU4C library code, as the library code does not make use of exceptions at all.

6 years agoICU-13827 Clean up ICU4C "wintz.cpp" time zone detection code.
Jeff Genovy [Wed, 19 Sep 2018 07:48:16 +0000 (00:48 -0700)]
ICU-13827 Clean up ICU4C "wintz.cpp" time zone detection code.

- Use stack allocated UResouceBundle to reduce number of calls to malloc (in a method that can't report back an error if Out-Of-Memory [OOM] happens).
- Use LocalUResourcePointer for automatic clean-up of UResouceBundle.
- Use uprv_strdup instead of calloc + strcpy.
- Changes comments, formatting, etc.

6 years agoICU-20119 Merge pull request #131 from gnrunge/icu63_1
gnrunge [Tue, 18 Sep 2018 23:49:47 +0000 (16:49 -0700)]
ICU-20119 Merge pull request #131 from gnrunge/icu63_1

ICU-20119 Migrates script that checks for proper UTF-8 encoding in so…

6 years agoICU-20063 Make setSignificantDigitsUsed more friendly.
Shane Carr [Tue, 18 Sep 2018 08:30:31 +0000 (01:30 -0700)]
ICU-20063 Make setSignificantDigitsUsed more friendly.

6 years agoICU-20119 Review changes.
Norbert Runge [Tue, 18 Sep 2018 23:44:39 +0000 (16:44 -0700)]
ICU-20119 Review changes.

6 years agoICU-20050 Fixing memory leaks in move and copy assignment in Number*Formatter.
Shane Carr [Tue, 18 Sep 2018 09:14:24 +0000 (02:14 -0700)]
ICU-20050 Fixing memory leaks in move and copy assignment in Number*Formatter.

6 years agoICU-20119 Merge github.com:unicode-org/icu into icu63_1
Norbert Runge [Tue, 18 Sep 2018 23:32:58 +0000 (16:32 -0700)]
ICU-20119 Merge github.com:unicode-org/icu into icu63_1

6 years agoICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars. (#108)
Andy Heninger [Tue, 18 Sep 2018 20:04:15 +0000 (13:04 -0700)]
ICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars. (#108)

* ICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars.

* ICU-20104 export class IndianCalendar for testing.

* ICU-20104 shot-in-the-dark Windows build experiment.

* ICU-20104 fix memory leak in added test.

6 years agoICU-20119 Delete script, was renamed to icu-file-utf8-check.py.
Norbert Runge [Tue, 18 Sep 2018 23:02:35 +0000 (16:02 -0700)]
ICU-20119 Delete script, was renamed to icu-file-utf8-check.py.

6 years agoICU-20145 Allow passing locale in ICU4C "date" sample program for testing without...
Jeff Genovy [Tue, 18 Sep 2018 19:24:58 +0000 (12:24 -0700)]
ICU-20145 Allow passing locale in ICU4C "date" sample program for testing without using the environment variable "LC_ALL". (#125)

The ICU4C sample "date" program just uses the "default" ICU locale. This change lets you pass in an explicit locale argument for testing on platforms like Windows that don't have/use the environment variable "LC_ALL".

6 years agoICU-20119 Additional changes to UTF-8 checking script.
Norbert Runge [Tue, 18 Sep 2018 22:57:51 +0000 (15:57 -0700)]
ICU-20119 Additional changes to UTF-8 checking script.

6 years agoICU-20140 Allow duplicated keys in U-extension per RFC 6067 (#136)
jungshik [Tue, 18 Sep 2018 17:23:12 +0000 (10:23 -0700)]
ICU-20140 Allow duplicated keys in U-extension per RFC 6067 (#136)

* ICU-20140 Allow duplicated keys in U-extension per RFC 6067

RFC 6067 [1] does allow duplicate keywords, but ICU4C's
uloc_forLanguageCode rejects it as invalid.

Change it to accept duplicate keywords and honor only the
1st one while ignoring subsequent ones per RFC 6067.

[1] Unicode extension to BCP 47:
    https://tools.ietf.org/html/rfc6067

* ICU-20140 Add ICU4J test and tweak ICU4C test

ICU4J test diverges from ICU4C tests:

1. Handling of duplicate variants in ICU4J seem to be wrong:
   https://unicode-org.atlassian.net/browse/ICU-20148
2. ULocale.forLanguageTag only throws NullPointException so
   that ICU4C's test for duplicate attributes cannot be ported.

6 years agoICU-20119 Migrates script that checks for proper UTF-8 encoding in source
Norbert Runge [Mon, 17 Sep 2018 23:27:49 +0000 (16:27 -0700)]
ICU-20119 Migrates script that checks for proper UTF-8 encoding in source
files and for absence of BOM in all but text files into the github environment.

6 years agoICU-20136 Check U_HAVE_TZ* values (#114)
Don [Tue, 18 Sep 2018 17:18:25 +0000 (10:18 -0700)]
ICU-20136 Check U_HAVE_TZ* values (#114)

* Add check for U_HAVE_TZSET

* Add check for U_HAVE_TZNAME

6 years agoICU-13645 Remove redundant invocations of the Locale copy constructor.
Fredrik Roubert [Mon, 17 Sep 2018 19:56:43 +0000 (12:56 -0700)]
ICU-13645 Remove redundant invocations of the Locale copy constructor.

6 years agoICU-20119 BRS63 Currency numeric code data update - VES and UYW (#126)
Yoshito Umaoka [Tue, 18 Sep 2018 16:22:59 +0000 (12:22 -0400)]
ICU-20119 BRS63 Currency numeric code data update - VES and UYW (#126)

6 years agoICU-12973 Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_...
Jeff Genovy [Mon, 17 Sep 2018 21:33:08 +0000 (14:33 -0700)]
ICU-12973 Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder names (#124)

- Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder era names.
- Use LocalArray<int32_t> for the Era Start Dates to simply memory management, so that goto can be removed.
- Also fix some minor typos in header file.

6 years agoICU-20075 For POSIX, increase correctedPOSIXLocale size for localeID expansion with...
pedberg-icu [Tue, 18 Sep 2018 16:21:45 +0000 (09:21 -0700)]
ICU-20075 For POSIX, increase correctedPOSIXLocale size for localeID expansion with @ (#112)

6 years agoICU-11276 Adding NumberRangeFormatter (#87)
Shane [Sun, 16 Sep 2018 09:07:37 +0000 (02:07 -0700)]
ICU-11276 Adding NumberRangeFormatter (#87)

Formats number ranges, including currencies and measurement units.

6 years agoICU-20058 Fix mimimum significant digits in engineering notation
Victor Chang [Fri, 14 Sep 2018 13:24:05 +0000 (14:24 +0100)]
ICU-20058 Fix mimimum significant digits in engineering notation

- Follow the spec to calculate the mimimum significant digits in engineering notation
- The bug is regression since ICU 58. The new test still passes on
ICU58-based DecimalFormat
- Maximum significant digits is not changed

6 years agoICU-11276 Comment about getParameters() return type.
Shane Carr [Sat, 15 Sep 2018 04:23:52 +0000 (21:23 -0700)]
ICU-11276 Comment about getParameters() return type.

6 years agoICU-20135 Use __has_declspec_attribute (#113)
Don [Tue, 18 Sep 2018 16:17:05 +0000 (09:17 -0700)]
ICU-20135 Use __has_declspec_attribute (#113)

> Clang comes with __has_declspec_attribute to detect whether the name of an attribute is implemented as a MS style __declspec.

> This adds __has_declspect_attribute to the list of clang compatibility macros and then uses that check to determine if __declspec(dllimport) and __declspec(dllexport) can be used.

6 years agoICU-11276 Adding more test cases. Fixing minor issues with extended locales.
Shane Carr [Sat, 15 Sep 2018 04:20:13 +0000 (21:20 -0700)]
ICU-11276 Adding more test cases. Fixing minor issues with extended locales.

6 years agoICU-20133 Undeprecate Transliterator.Position#hashCode (#119)
gvictor [Tue, 18 Sep 2018 15:54:41 +0000 (16:54 +0100)]
ICU-20133 Undeprecate Transliterator.Position#hashCode (#119)

Create a preper hash code with Objects.hash instead of returning 42

6 years agoICU-11276 Replying to Mark review feedback.
Shane Carr [Sat, 15 Sep 2018 02:03:01 +0000 (19:03 -0700)]
ICU-11276 Replying to Mark review feedback.

6 years agoICU-20119 BRS63RC Fix javac/javadoc/Eclipse errors/warnings (#132)
Yoshito Umaoka [Tue, 18 Sep 2018 05:31:03 +0000 (01:31 -0400)]
ICU-20119 BRS63RC Fix javac/javadoc/Eclipse errors/warnings (#132)

* ICU-20119 BRS63RC Fixing java compiler warnings

* ICU-20119 BRS63RC Fixing JavaDoc errors

6 years agoICU-11276 Replying to Andy review feedback.
Shane Carr [Sat, 15 Sep 2018 01:08:41 +0000 (18:08 -0700)]
ICU-11276 Replying to Andy review feedback.

6 years agoICU-11276 int -> int32_t in number_compact.cpp
Shane Carr [Sat, 15 Sep 2018 00:59:12 +0000 (17:59 -0700)]
ICU-11276 int -> int32_t in number_compact.cpp

6 years agoICU-11276 Porting pluralRanges support to Java.
Shane Carr [Sat, 15 Sep 2018 00:54:51 +0000 (17:54 -0700)]
ICU-11276 Porting pluralRanges support to Java.

6 years agoICU-11276 Fixing pluralRanges data loading and adding more tests.
Shane Carr [Fri, 14 Sep 2018 23:33:22 +0000 (16:33 -0700)]
ICU-11276 Fixing pluralRanges data loading and adding more tests.

6 years agoICU-11276 ModifierStore wired up in LongNameHandler (C++).
Shane Carr [Fri, 14 Sep 2018 08:30:55 +0000 (01:30 -0700)]
ICU-11276 ModifierStore wired up in LongNameHandler (C++).

6 years agoICU-11276 Plural ranges loaded from data; first implementations of ModifierStore.
Shane Carr [Fri, 14 Sep 2018 07:53:32 +0000 (00:53 -0700)]
ICU-11276 Plural ranges loaded from data; first implementations of ModifierStore.

6 years agoICU-11276 Additional build.xml lines for pluralRanges.
Shane Carr [Fri, 14 Sep 2018 07:52:09 +0000 (00:52 -0700)]
ICU-11276 Additional build.xml lines for pluralRanges.

6 years agoICU-11276 Adding UChar* method in CharString.
Shane Carr [Fri, 14 Sep 2018 07:51:36 +0000 (00:51 -0700)]
ICU-11276 Adding UChar* method in CharString.

6 years agoICU-11276 Adding ModifierStore, groundwork for plural range support.
Shane Carr [Fri, 14 Sep 2018 05:16:29 +0000 (22:16 -0700)]
ICU-11276 Adding ModifierStore, groundwork for plural range support.

6 years agoICU-11276 Adding pluralRanges.txt data file.
Shane Carr [Fri, 14 Sep 2018 03:44:45 +0000 (20:44 -0700)]
ICU-11276 Adding pluralRanges.txt data file.

The code was already in NewLdml2IcuConverter, but it was not being called from ICU.

6 years agoICU-11276 Fixing ICU4J number range test failures.
Shane Carr [Fri, 7 Sep 2018 19:24:47 +0000 (12:24 -0700)]
ICU-11276 Fixing ICU4J number range test failures.