]> granicus.if.org Git - icu/log
icu
6 years agoICU-20238 Autodetect Visual Studio version, and autodetect the installed Windows...
Jeff Genovy [Thu, 25 Oct 2018 02:28:43 +0000 (19:28 -0700)]
ICU-20238 Autodetect Visual Studio version, and autodetect the installed Windows 10 SDK version.

6 years agoICU-13267 Minor documentation and test changes.
Shane Carr [Thu, 8 Nov 2018 00:16:47 +0000 (16:16 -0800)]
ICU-13267 Minor documentation and test changes.

6 years agoICU-13267 Refactoring field position testing logic into helper function.
Shane Carr [Wed, 7 Nov 2018 01:07:49 +0000 (17:07 -0800)]
ICU-13267 Refactoring field position testing logic into helper function.

Makes future field position logic easier to test.

6 years agoICU-13701 Syncs C and J increment rounding. Checks for nickel sooner.
Shane Carr [Sat, 3 Nov 2018 05:19:53 +0000 (22:19 -0700)]
ICU-13701 Syncs C and J increment rounding. Checks for nickel sooner.

6 years agoICU-13701 Refactoring DecimalQuantity: removing lOptPos/rOptPos.
Shane Carr [Thu, 25 Oct 2018 04:25:39 +0000 (21:25 -0700)]
ICU-13701 Refactoring DecimalQuantity: removing lOptPos/rOptPos.

Combined ICU4C and ICU4J.

6 years agoICU-20250 faster MutableCodePointTrie.build(): use a hashtable to find equal blocks...
Markus Scherer [Fri, 2 Nov 2018 19:47:09 +0000 (12:47 -0700)]
ICU-20250 faster MutableCodePointTrie.build(): use a hashtable to find equal blocks in earlier parts of the compacted data & index arrays

6 years agoICU-20169 Replace uprv_malloc() / uprv_free() with MemoryPool.
Fredrik Roubert [Fri, 2 Nov 2018 16:50:34 +0000 (17:50 +0100)]
ICU-20169 Replace uprv_malloc() / uprv_free() with MemoryPool.

This resolves the immediate problem of brittle memory management
in the error handling code.

An obvious future improvement would be to replace the old C style
"plain struct with pointers" VariantListEntry, AttributeListEntry
and ExtensionListEntry with contemporary C++ style containers that
take care of ownership and memory management.

6 years agoICU-20249 An internal helper class for stack allocated UResourceBundle.
Fredrik Roubert [Wed, 31 Oct 2018 19:18:34 +0000 (20:18 +0100)]
ICU-20249 An internal helper class for stack allocated UResourceBundle.

6 years agoICU-20172 Add ICU4C dependency checker to Travis CI
Andy Heninger [Mon, 5 Nov 2018 19:16:41 +0000 (11:16 -0800)]
ICU-20172 Add ICU4C dependency checker to Travis CI

6 years agoICU-13180 Support skiping building the UWP projects with a command line MSBuild option.
Jeff Genovy [Tue, 23 Oct 2018 06:12:07 +0000 (23:12 -0700)]
ICU-13180 Support skiping building the UWP projects with a command line MSBuild option.

6 years agoICU-20255 revert to reflection for methods not yet in Android API level 21..23
Markus Scherer [Mon, 5 Nov 2018 23:21:08 +0000 (15:21 -0800)]
ICU-20255 revert to reflection for methods not yet in Android API level 21..23

6 years agoICU-20169 Use LocalULanguageTagPointer also inside of ultag_parse().
Fredrik Roubert [Fri, 2 Nov 2018 17:13:25 +0000 (18:13 +0100)]
ICU-20169 Use LocalULanguageTagPointer also inside of ultag_parse().

6 years agoICU-20202 Replace CodePointMatcherWarehouse with MemoryPool.
Fredrik Roubert [Mon, 29 Oct 2018 21:20:30 +0000 (22:20 +0100)]
ICU-20202 Replace CodePointMatcherWarehouse with MemoryPool.

The shared templated helper class MemoryPool can be used to replace the
local helper class CodePointMatcherWarehouse, reducing the amount of
specialized code needed.

6 years agoICU-10183 revert mutexes to platform code while sorting dependencies from std::mutex.
Andy Heninger [Fri, 2 Nov 2018 22:34:35 +0000 (15:34 -0700)]
ICU-10183 revert mutexes to platform code while sorting dependencies from std::mutex.

6 years agoICU-20202 MemoryPool and uloc_key_type structs inherit from UMemory. Fixes dependenci...
Andy Heninger [Fri, 2 Nov 2018 21:54:45 +0000 (14:54 -0700)]
ICU-20202 MemoryPool and uloc_key_type structs inherit from UMemory. Fixes dependencies on global operator new().

6 years agoICU-20246 Fixing another integer overflow in number parsing.
Shane Carr [Tue, 30 Oct 2018 06:52:44 +0000 (23:52 -0700)]
ICU-20246 Fixing another integer overflow in number parsing.

6 years agoICU-10183 Mutexes, add C++11 std::mutex based implementation.
Andy Heninger [Sat, 29 Sep 2018 00:02:04 +0000 (17:02 -0700)]
ICU-10183 Mutexes, add C++11 std::mutex based implementation.

6 years agoICU-20169 Use smart pointers in all locale code instead of u*_close().
Fredrik Roubert [Wed, 31 Oct 2018 14:07:05 +0000 (15:07 +0100)]
ICU-20169 Use smart pointers in all locale code instead of u*_close().

Doing this consistently first will make it easier to then clean up
resource management and error handling later.

6 years agoICU-20158 Pass ByteSink from Locale::forLanguageTag() to uloc_forLanguageTag().
Fredrik Roubert [Tue, 30 Oct 2018 22:35:03 +0000 (23:35 +0100)]
ICU-20158 Pass ByteSink from Locale::forLanguageTag() to uloc_forLanguageTag().

This eliminates the need for a scratch buffer in Locale::forLanguageTag()
and also the need for counting bytes required in uloc_forLanguageTag(),
something that ByteSink will now handle correctly.

6 years agoICU-20202 Replace char* kwdBuf with MemoryPool<CharString>.
Fredrik Roubert [Tue, 30 Oct 2018 21:12:07 +0000 (22:12 +0100)]
ICU-20202 Replace char* kwdBuf with MemoryPool<CharString>.

Instead of _appendLDMLExtensionAsKeywords() requiring to receive a pre-
allocated buffer of sufficient size to store all the temporary strings
it needs to store, have it use a MemoryPool<CharString> to allocate
storage space as needed.

Storing strings as individual CharString objects, instead of as NUL
delimited substrings in a contiguous memory area, also eliminates the
need for keeping track of string boundaries and NUL terminators.

6 years agoICU-20245 tzdata2018g updates
Yoshito Umaoka [Tue, 30 Oct 2018 12:50:34 +0000 (08:50 -0400)]
ICU-20245 tzdata2018g updates

6 years agoICU-20221 Add support for building with Cygwin/GCC to the AppVeyor CI builds.
Jeff Genovy [Fri, 26 Oct 2018 18:18:35 +0000 (11:18 -0700)]
ICU-20221 Add support for building with Cygwin/GCC to the AppVeyor CI builds.

6 years agoICU-20202 Replace UVector with MemoryPool in uloc_keytype.
Fredrik Roubert [Mon, 29 Oct 2018 21:50:27 +0000 (22:50 +0100)]
ICU-20202 Replace UVector with MemoryPool in uloc_keytype.

By moving the required call to uhash_close() into the destructor of
LocExtKeyData and using CharString instead of raw chunks of bytes
allocated with uprv_malloc(), it becomes easier to guarantee that
memory handling is correct, without leaks or overflows.

With the need for custom deleter functions removed, the code doesn't use
any of the additional functionality provided by UVector, it just needs a
simple way to keep track of allocated objects to delete them after it's
done using them, which MemoryPool does in a simpler and typesafe way.

6 years agoICU-20202 Replace UVector with MemoryPool in CalendarDataSink.
Fredrik Roubert [Mon, 29 Oct 2018 21:29:12 +0000 (22:29 +0100)]
ICU-20202 Replace UVector with MemoryPool in CalendarDataSink.

CalendarDataSink doesn't use any of the additional functionality
provided by UVector, it just needs a simple way to keep track of
allocated objects to delete them after it's done using them.

6 years agoICU-20231 Adding tests for accounting with variable currency widths.
Shane Carr [Wed, 24 Oct 2018 06:47:30 +0000 (23:47 -0700)]
ICU-20231 Adding tests for accounting with variable currency widths.

6 years agoICU-20159 Fixing gcc warnings in project and test code.
Shane Carr [Thu, 25 Oct 2018 01:48:55 +0000 (18:48 -0700)]
ICU-20159 Fixing gcc warnings in project and test code.

6 years agoICU-13701 Adding custom logic for nickel rounding, C and J.
Shane Carr [Fri, 26 Oct 2018 00:50:10 +0000 (17:50 -0700)]
ICU-13701 Adding custom logic for nickel rounding, C and J.

Avoids expensive arithmetic when performing nickel rounding for currencies such as CAD, CHF, and DKK.

6 years agoICU-20209 Fix build failures on Windows with std::atomic not in enclosing namespace std
Jeff Genovy [Fri, 19 Oct 2018 23:19:24 +0000 (16:19 -0700)]
ICU-20209 Fix build failures on Windows with std::atomic not in enclosing namespace std

Also: Change to use the ICU namespace macro instead, and skip doxygen as well.

6 years agoICU-20202 Replace CharStringPool with MemoryPool.
Fredrik Roubert [Mon, 29 Oct 2018 21:12:00 +0000 (22:12 +0100)]
ICU-20202 Replace CharStringPool with MemoryPool.

The shared templated helper class MemoryPool is a drop-in replacement
for the local helper class CharStringPool, with a simpler implementation
and an interface that allows parameters to be passed to the constructor.

6 years agoICU-20202 Add an internal helper class to own heap allocated objects.
Fredrik Roubert [Wed, 24 Oct 2018 20:45:25 +0000 (22:45 +0200)]
ICU-20202 Add an internal helper class to own heap allocated objects.

This will be used first to replace existing locally defined memory
management helper classes such as CharStringPool (uloc_tag.cpp) and
CodePointMatcherWarehouse (numparse_affixes.h), then in new code.

6 years agoICU-20235 Undefine OVERFLOW in case Microsoft math.h has defined it.
Fredrik Roubert [Fri, 26 Oct 2018 11:03:13 +0000 (13:03 +0200)]
ICU-20235 Undefine OVERFLOW in case Microsoft math.h has defined it.

6 years agoICU-20240 Fix Windows build failure in japancal.cpp
Jeff Genovy [Fri, 26 Oct 2018 00:13:23 +0000 (17:13 -0700)]
ICU-20240 Fix Windows build failure in japancal.cpp

6 years agoICU-20194 TimeZone createSystemTimeZone doesn't set error code on OOM error.
Jeff Genovy [Mon, 17 Sep 2018 09:03:34 +0000 (02:03 -0700)]
ICU-20194 TimeZone createSystemTimeZone doesn't set error code on OOM error.

6 years agoICU-20132 Pass ByteSink from Locale::toLanguageTag() to uloc_toLanguageTag().
Fredrik Roubert [Mon, 22 Oct 2018 20:28:20 +0000 (22:28 +0200)]
ICU-20132 Pass ByteSink from Locale::toLanguageTag() to uloc_toLanguageTag().

This eliminates the need for a scratch buffer in Locale::toLanguageTag()
and also the need for counting bytes required in uloc_toLanguageTag(),
something that ByteSink will now handle correctly and thereby
eliminating the bug where too few bytes required was returned.

6 years agoICU-20228 Revert file from commit 10e79698d76e6d4d0aa2eb10464657aa60c231e7.
Fredrik Roubert [Wed, 24 Oct 2018 20:51:50 +0000 (22:51 +0200)]
ICU-20228 Revert file from commit 10e79698d76e6d4d0aa2eb10464657aa60c231e7.

This file was changed by mistake (and not caught by the presubmit tests
because of unrelated build failures).

6 years agoICU-20228 Fix common typos for "language".
Fredrik Roubert [Mon, 22 Oct 2018 18:23:27 +0000 (20:23 +0200)]
ICU-20228 Fix common typos for "language".

6 years agoICU-11511 Adding tests for CLDR-10103 scientific notation spec changes.
Shane Carr [Fri, 5 Oct 2018 01:59:21 +0000 (18:59 -0700)]
ICU-11511 Adding tests for CLDR-10103 scientific notation spec changes.

6 years agoICU-20224 tzdata2018f updates.
Yoshito Umaoka [Fri, 19 Oct 2018 22:12:06 +0000 (18:12 -0400)]
ICU-20224 tzdata2018f updates.

6 years agoICU-20109 Upgrade Java RelativeDateTimeFormatter QUARTER to @draft
Frank Tang [Thu, 18 Oct 2018 05:05:31 +0000 (22:05 -0700)]
ICU-20109 Upgrade Java RelativeDateTimeFormatter QUARTER to @draft
(#221)

add tests for AbsoluteUnit.QUARTER

6 years agoICU-20080 Avoid strange compiler behaviour in ASSERT_EQUAL() macro.
Fredrik Roubert [Fri, 12 Oct 2018 12:33:03 +0000 (14:33 +0200)]
ICU-20080 Avoid strange compiler behaviour in ASSERT_EQUAL() macro.

Using temporary variables for the two values to be compared here makes
GCC compile the code just like we expect it to. (What it really is that
it otherwise does on some architechtures remains a mystery.)

This will make the tests pass as expected also on IA-32 with GCC.

It'll also make it possible to revert the old workaround for SPARC
introduced by commit 5b0592af79c7601d08cafcbbc7b71077faeb7e4f.

Tested:

Linux gcc45 3.16.0-5-686-pae #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) i686 GNU/Linux

Debian clang version 3.5.0-10 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
g++ (Debian 4.9.2-10+deb8u1) 4.9.2

Linux gcc202 4.16.0-1-sparc64-smp #1 SMP Debian 4.16.5-1 (2018-04-29) sparc64 GNU/Linux

clang version 4.0.1-10+sparc64 (tags/RELEASE_401/final)
g++ (Debian 8.2.0-7) 8.2.0

6 years agoICU-20208 uspoof.cpp function checkImpl should be static, regenerate urename.h
Jeff Genovy [Thu, 18 Oct 2018 02:47:35 +0000 (19:47 -0700)]
ICU-20208 uspoof.cpp function checkImpl should be static, regenerate urename.h

6 years agoICU-20212 unistr.h, review comments from Markus for doc formatting.
Andy Heninger [Thu, 18 Oct 2018 16:56:27 +0000 (09:56 -0700)]
ICU-20212 unistr.h, review comments from Markus for doc formatting.

6 years agoICU-20212 Tweaks to markdown API docs in unistr.h
Andy Heninger [Tue, 16 Oct 2018 19:59:54 +0000 (12:59 -0700)]
ICU-20212 Tweaks to markdown API docs in unistr.h

6 years agoICU-20212 Markdown API docs in unistr.h
Andy Heninger [Tue, 16 Oct 2018 00:53:21 +0000 (17:53 -0700)]
ICU-20212 Markdown API docs in unistr.h

6 years agoICU-20214 Fix namespace error on Cygwin
Ken Brown [Tue, 16 Oct 2018 18:48:36 +0000 (14:48 -0400)]
ICU-20214 Fix namespace error on Cygwin

6 years agoICU-20166 Adding commit-checker tool.
Shane Carr [Wed, 17 Oct 2018 20:01:53 +0000 (13:01 -0700)]
ICU-20166 Adding commit-checker tool.

This tool checks the integrity of a range of commits, in particular references to the corresponding Jira issues.

Squashed commits:

ICU-20119 Adding first commit report.
ICU-20166 Handling tickets that do not require commits.
ICU-20166 Search Jira issues from extra commits
ICU-20119 Updating commit report.
ICU-20166 Adding copyright to commit checker tools.
ICU-20119 Updating commit report.
ICU-20166 Require ticket at beginning of commit message.
ICU-20119 Updating commit report.
ICU-20119 Updating commit report.
ICU-20119 Updating commit report.
ICU-20120 Updating commit report.
ICU-20166 Removing REPORT.md from source control.

6 years agoICU-20205 RelativeDateTimeFormatter pt data fix, improved error handling and test...
Andy Heninger [Fri, 12 Oct 2018 23:19:14 +0000 (16:19 -0700)]
ICU-20205 RelativeDateTimeFormatter pt data fix, improved error handling and test. (#210)

* ICU-20205 Add locale test for RelativeDateTimeFormatter.

* ICU-20205 Fix error in pt relative date data. Improve error handling in code.

* ICU-20205 Add instantiation test & regen data from ICU4C

* ICU-20205 Added DateFormatSymbols error check per jefgen's comments.

6 years agoICU-20120 BRS63GA Updating ICU4J 63 readme.html (#203)
Yoshito Umaoka [Wed, 10 Oct 2018 17:03:05 +0000 (13:03 -0400)]
ICU-20120 BRS63GA Updating ICU4J 63 readme.html (#203)

Just updating API change report link from svn to local.

6 years agoICU-20198 Add issue browse link to PR template. (#200)
Shane F. Carr [Tue, 9 Oct 2018 19:05:33 +0000 (14:05 -0500)]
ICU-20198 Add issue browse link to PR template. (#200)

6 years agoICU-20120 BRS63GA: Update version numbers/readme for ICU 63 GA. (#199)
Jeff Genovy [Mon, 8 Oct 2018 17:56:42 +0000 (10:56 -0700)]
ICU-20120 BRS63GA: Update version numbers/readme for ICU 63 GA. (#199)

6 years agoICU-20192 Add Automatic-Module-Name to META-INF/MANIFEST.MF (#193)
leadpony [Mon, 8 Oct 2018 15:41:02 +0000 (00:41 +0900)]
ICU-20192 Add Automatic-Module-Name to META-INF/MANIFEST.MF (#193)

* Add Automatic-Module-Name to META-INF/MANIFEST.MF

* Added com.ibm.icu.number in Export-Package list

* Add Automatic-Module-Name to charset and localespi

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)