]>
granicus.if.org Git - icu/log
Jeff Genovy [Fri, 3 Aug 2018 20:30:03 +0000 (13:30 -0700)]
ICU-20046 Improve OOM error checking in the RBNF class. (#24)
- There are a few locations in the RBNF class that don't check for out-of-memory (OOM) failures.
- Using LocalPointer to clean up the manual deletes.
- Change to use nullptr instead of NULL.
- A few minor typo fixes as well.
sav-ix [Fri, 3 Aug 2018 02:08:58 +0000 (05:08 +0300)]
ICU-13138 MinGW: add 'd' suffix to the names of binary files with Debug config (#28)
For builds using Cygwin and MSVC with Debug configuration, '.dll' and '.lib' binaries has 'd' suffix.
Doing the same for builds using MinGW and MinGW64, based on the code from MSVC toolchain.
Task-number: ICU-13138
Shane Carr [Thu, 2 Aug 2018 00:16:29 +0000 (17:16 -0700)]
ICU-20056 Adding test for minFrac with maxSig
Jeff Genovy [Thu, 2 Aug 2018 23:23:07 +0000 (16:23 -0700)]
ICU-20041 Improve handling of OOM failures in NumberingSystem class. (#19)
ICU-20041 ICU4C NumberingSystem class doesn't handle out-of-memory (OOM) failures.
- Not all code paths in the NumberingSystem class check for OOM failures. This can lead to crashes in some cases as null pointers will be dereferenced without any checks.
- Change to use nullptr instead of NULL.
- Don't stomp on OOM errors when attempting to load resources. We should report back OOM to the caller.
- Use LocalPointer in order simplify the code and for automatic clean-up of memory.
- Use LocalUResourceBundlePointer as well to help simply things even more.
Jeff Genovy [Thu, 2 Aug 2018 18:42:28 +0000 (11:42 -0700)]
ICU-13810 Fix typo in datefmt.h macro. (#36)
Jeff Genovy [Thu, 2 Aug 2018 07:09:14 +0000 (00:09 -0700)]
ICU-20044 Fix some OOM issues in the NumberFormat class. (#21)
Jeff Genovy [Thu, 2 Aug 2018 06:33:03 +0000 (23:33 -0700)]
ICU-20042 Improve OOM handling in PluralRules class. (#20)
- PluralRules class doesn't handle out-of-memory (OOM) errors in some code paths.
- The clone and assignment operator (operator=) methods of construction don't take an error code parameter, meaning that if an OOM error occurs during the constructor, it will not reported back to the caller, and the caller has no way to know that the object is in a half-constructed state.
- Using an internal status variable for these above cases.
- Changes to the various PluralRules helper classes to check for OOM as well.
- Using nullptr instead NULL.
- Using LocalPointer instead of raw new/delete in some cases.
- Need to set mRules to nullptr, otherwise we can end up with double deletes in the failure case. (Thanks to Andy for the review).
- Using default member initializers for class members to avoid dangling pointers. Also allows for using default constructors too.
Jeff Genovy [Thu, 2 Aug 2018 06:10:47 +0000 (23:10 -0700)]
ICU-20035 UnicodeSet constructor(s) and assignment operator should setToBogus when out-of-memory (OOM) failure occurs. (#15)
Jeff Genovy [Thu, 2 Aug 2018 05:44:39 +0000 (22:44 -0700)]
ICU-20034 ICU4C Locale assignment operator should set the locale to bogus if OOM occurs. (#14)
ICU-20034 ICU4C the Locale class's assignment operator should set the locale to "bogus" if an OOM error occurs when attempting to copy data over from the other locale.
Also need to check strdup, as that calls malloc and it can fail too.
Jeff Genovy [Thu, 2 Aug 2018 05:19:41 +0000 (22:19 -0700)]
ICU-20005 Clean-up and update the .gitattributes file. Merge pull request #16 from jefgen/jefgen/20005
ICU-20005 Clean-up and update the .gitattributes file
Steven R. Loomis [Thu, 2 Aug 2018 00:56:55 +0000 (17:56 -0700)]
ICU-20033 Add a top-level README.md (#11)
* ICU-20033: add a README.md
- add a basic README.md linking to icu4c and icu4j
PR-URL: https://github.com/unicode-org/icu/pull/11
Jeff Genovy [Fri, 20 Jul 2018 00:15:51 +0000 (17:15 -0700)]
ICU-20005 Update/clean-up the .gitattributes file after the automated conversion from the scripts. Also add some comments for others, and use the diff helpers for better diffs.
Andy Heninger [Wed, 1 Aug 2018 21:01:36 +0000 (14:01 -0700)]
ICU-13810 Merge pull request #29 from aheninger/ICU-13810-SQ
ICU-13810 Doxygen warning cleanup.
Jeff Genovy [Wed, 18 Jul 2018 19:15:43 +0000 (12:15 -0700)]
ICU-13813 Windows icucheck.bat script does not handle if the tests crash while executing. (#12)
Fix the `icucheck.bat` script (used to run the ICU4C tests on Windows) so that it handles the case where a test crashes while executing.
gnrunge [Mon, 30 Jul 2018 21:00:01 +0000 (14:00 -0700)]
ICU-13829 Merge pull request #25 from gnrunge/icu4j_13829
ICU-13829 Languagematcher: Fixes straightforward code issues.
Andy Heninger [Tue, 31 Jul 2018 01:03:21 +0000 (18:03 -0700)]
ICU-13810 Doxygen warning cleanup.
Steven R. Loomis [Wed, 18 Jul 2018 18:46:23 +0000 (11:46 -0700)]
ICU-20032 re-enable Travis (#10)
- From https://github.com/aheninger/icu-trunk-exp by @aheninger
Hugh McMaster [Tue, 24 Jul 2018 22:53:46 +0000 (08:53 +1000)]
ICU-10464 Make installation of icu-config optional (#13)
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Originally ICU-20030
Norbert Runge [Fri, 27 Jul 2018 22:38:00 +0000 (15:38 -0700)]
ICU-13829 Removes duplicate import statement.
Norbert Runge [Fri, 27 Jul 2018 22:18:13 +0000 (15:18 -0700)]
ICU-13829 Revert order of imports to conform with (almost all of) the other files in this directory.
Norbert Runge [Tue, 24 Jul 2018 22:33:54 +0000 (15:33 -0700)]
ICU-13829 Languagematcher: Fixes straightforward code issues.
Jeff Genovy [Wed, 27 Jun 2018 19:25:52 +0000 (19:25 +0000)]
ICU-13778 DataTimePatternGenerator code refactor. Handle Out-of-Memory (OOM) errors, use LocalPointer to prevent memory leaks when OOM occurs, use an internal error code to better report errors during clone and copy construction, mark helper methods and parameters as const, use nullptr instead of NULL, minor spelling and formatting changes. (Note: All tests pass on Windows and Linux).
X-SVN-Rev: 41552
Jeff Genovy [Wed, 27 Jun 2018 19:02:09 +0000 (19:02 +0000)]
ICU-13814 Visual Studio IntelliSense should ignore the 'urename.h' content so that 'Go-to-Definition' (F12) will actually work in the IDE.
X-SVN-Rev: 41551
Markus Scherer [Sun, 24 Jun 2018 21:12:22 +0000 (21:12 +0000)]
ICU-13851 case mapping data: when fetching delta make sure to read from start of exceptional values
X-SVN-Rev: 41550
Shane Carr [Sat, 23 Jun 2018 02:09:42 +0000 (02:09 +0000)]
ICU-13850 Fixing behavior of ICU4C DecimalFormat#setCurrency() to accept an empty string.
X-SVN-Rev: 41549
Fredrik Roubert [Thu, 21 Jun 2018 20:17:22 +0000 (20:17 +0000)]
ICU-13766 Make UnicodeMapTest#TestUnicodeMapGeneralCategory smaller.
There are 0x10FFFF code points and this test allocates memory for every
code point tested. Testing every single one of them is therefore memory
intensive and slow, without adding any real value to the test.
Instead an equivalent test coverage can be achieved by testing a much
smaller set of ranges of code points that cover all categories.
X-SVN-Rev: 41547
Shane Carr [Tue, 19 Jun 2018 21:52:52 +0000 (21:52 +0000)]
ICU-13840 Fixing memory overflow issue in number_decimalquantity.cpp and adding tests.
X-SVN-Rev: 41541
Peter Edberg [Fri, 15 Jun 2018 01:12:52 +0000 (01:12 +0000)]
ICU-13823 ICU 62.1 BRS, update measurement unit constants for release-33-1-d03 (deletes VES)
X-SVN-Rev: 41528
Andy Heninger [Thu, 14 Jun 2018 23:12:42 +0000 (23:12 +0000)]
ICU-13593 Fix heap-buffer-overflow in TestIDNAMonkeyTest
X-SVN-Rev: 41526
Peter Edberg [Thu, 14 Jun 2018 22:33:37 +0000 (22:33 +0000)]
ICU-13823 Integrate data from cldr/tags/release-33-1-d03 to ICU trunk for ICU62 final
X-SVN-Rev: 41525
Shane Carr [Thu, 14 Jun 2018 20:29:11 +0000 (20:29 +0000)]
ICU-13835 Fixing C++17 compiler error.
X-SVN-Rev: 41523
Fredrik Roubert [Wed, 13 Jun 2018 17:00:44 +0000 (17:00 +0000)]
ICU-13818 Add virtual destructor for class TokenConsumer.
X-SVN-Rev: 41519
Andy Heninger [Mon, 11 Jun 2018 03:56:58 +0000 (03:56 +0000)]
ICU-13828 DecimalFormat Error Code handling cleanups.
X-SVN-Rev: 41515
Jeff Genovy [Sat, 9 Jun 2018 01:49:30 +0000 (01:49 +0000)]
ICU-13826 Timezone detection fails on Windows on non-English systems.
X-SVN-Rev: 41514
Yoshito Umaoka [Wed, 6 Jun 2018 23:02:35 +0000 (23:02 +0000)]
ICU-13822 Updated ICU4J data - removing VES.
X-SVN-Rev: 41512
Yoshito Umaoka [Wed, 6 Jun 2018 22:51:56 +0000 (22:51 +0000)]
ICU-13822 Removed VES from currency-numeric data for 62 release. CLDR 33.1 decided to defer this to later time.
X-SVN-Rev: 41511
Andy Heninger [Mon, 4 Jun 2018 21:04:14 +0000 (21:04 +0000)]
ICU-13816 Windows compiler warning fix.
X-SVN-Rev: 41504
Andy Heninger [Fri, 1 Jun 2018 01:19:38 +0000 (01:19 +0000)]
ICU-13807 ICU 62 No Data Testing fixes. Mostly to test code.
X-SVN-Rev: 41500
Shane Carr [Fri, 1 Jun 2018 01:02:49 +0000 (01:02 +0000)]
ICU-13804 Fixing memory leak from r41497.
X-SVN-Rev: 41499
Shane Carr [Fri, 1 Jun 2018 00:48:18 +0000 (00:48 +0000)]
ICU-13804 Fixing test failure from r41497.
X-SVN-Rev: 41498
Shane Carr [Fri, 1 Jun 2018 00:31:54 +0000 (00:31 +0000)]
ICU-13804 Making number parsing code more robust when given empty symbol strings.
X-SVN-Rev: 41497
Peter Edberg [Thu, 31 May 2018 23:11:53 +0000 (23:11 +0000)]
ICU-13667 ICU 62rc BRS, edit ICU4C APIChangeReport.html for scale status, group changes for (const enum&) > (enum)
X-SVN-Rev: 41496
Shane Carr [Thu, 31 May 2018 22:04:08 +0000 (22:04 +0000)]
ICU-13667 Making =delete APIdocs consistent in numberformatter.h
X-SVN-Rev: 41495
Norbert Runge [Thu, 31 May 2018 21:53:43 +0000 (21:53 +0000)]
ICU-13667 Fixes compilation errors related to UCONFIG_NO_XXX flag variations.
X-SVN-Rev: 41494
Shane Carr [Thu, 31 May 2018 21:32:35 +0000 (21:32 +0000)]
ICU-13667 Fixing incorrect version tag on scale() setter.
X-SVN-Rev: 41493
Peter Edberg [Thu, 31 May 2018 19:09:19 +0000 (19:09 +0000)]
ICU-13667 ICU 62rc BRS, edit ICU4C APIChangeReport.html to remove const>const& and =delete, add note about Rounder>Precision
X-SVN-Rev: 41492
Peter Edberg [Wed, 30 May 2018 22:45:26 +0000 (22:45 +0000)]
ICU-13667 ICU 62rc BRS, update guard conditionals for non-stable API part 2 (common,io pass 1)
X-SVN-Rev: 41491
Shane Carr [Wed, 30 May 2018 22:11:12 +0000 (22:11 +0000)]
ICU-13667 Updating APIChangeReport.html with Rounder renamed to Precision.
X-SVN-Rev: 41490
Shane Carr [Wed, 30 May 2018 21:27:07 +0000 (21:27 +0000)]
ICU-13667 Making new DecimalFormat constructor private.
X-SVN-Rev: 41489
Shane Carr [Wed, 30 May 2018 19:20:24 +0000 (19:20 +0000)]
ICU-13667 Adding unumberformatter.h to the doxygen front page
X-SVN-Rev: 41488
Markus Scherer [Wed, 30 May 2018 19:15:02 +0000 (19:15 +0000)]
ICU-13667 LocalizedNumberFormatterAsFormat is in the old Format class hierarchy, add ClassID boilerplate; NoUnit move virtual destructor up into first-virtual position, right after constructors
X-SVN-Rev: 41487
Peter Edberg [Wed, 30 May 2018 18:39:29 +0000 (18:39 +0000)]
ICU-13667 ICU 62rc BRS, update guard conditionals for non-stable API part 1 (i18n pass 1)
X-SVN-Rev: 41486
Norbert Runge [Wed, 30 May 2018 14:40:13 +0000 (14:40 +0000)]
ICU-13667 Moves digits_t, DEFAULT_THRESHOLD, and copyErrorTo() outside of U_HIDE_INTERNAL_API.
X-SVN-Rev: 41485
Peter Edberg [Wed, 30 May 2018 04:37:30 +0000 (04:37 +0000)]
ICU-13667 ICU 62rc BRS, update ICU4C APIChangeReport.html, generated from r41483
X-SVN-Rev: 41484
Shane Carr [Wed, 30 May 2018 03:34:41 +0000 (03:34 +0000)]
ICU-8610 Responding to number skeleton code review feedback.
X-SVN-Rev: 41483
Peter Edberg [Wed, 30 May 2018 03:34:29 +0000 (03:34 +0000)]
ICU-13667 ICU 62rc BRS, update urename.h
X-SVN-Rev: 41482
Peter Edberg [Wed, 30 May 2018 01:22:52 +0000 (01:22 +0000)]
ICU-13667 ICU 62rc BRS, update measurement unit constants
X-SVN-Rev: 41481
Jeff Genovy [Wed, 30 May 2018 00:49:34 +0000 (00:49 +0000)]
ICU-13667 Fix Samples test script for ucnv project.
X-SVN-Rev: 41480
Peter Edberg [Tue, 29 May 2018 22:33:10 +0000 (22:33 +0000)]
ICU-13792 Integrate data from cldr/tags/release-33-1-d02 to ICU trunk for ICU62rc
X-SVN-Rev: 41479
Yoshito Umaoka [Tue, 29 May 2018 21:26:24 +0000 (21:26 +0000)]
ICU-13667 BRS62 - Added ICU 62 serialization test data, removed ICU 57.
X-SVN-Rev: 41478
Yoshito Umaoka [Tue, 29 May 2018 21:12:48 +0000 (21:12 +0000)]
ICU-13667 BRS62 - added ICU4J 62 API signature file (and deleted ICU4J 52 API signature file).
X-SVN-Rev: 41477
Yoshito Umaoka [Tue, 29 May 2018 21:07:31 +0000 (21:07 +0000)]
ICU-13667 Updated API change report, fixed API report tool to handle 5 letter sub-package (number) properly.
X-SVN-Rev: 41476
Yoshito Umaoka [Tue, 29 May 2018 19:34:43 +0000 (19:34 +0000)]
ICU-13667 BRS62 Clean up import statements.
X-SVN-Rev: 41475
Yoshito Umaoka [Tue, 29 May 2018 17:26:56 +0000 (17:26 +0000)]
ICU-13667 Currency numeric code update for ICU 62 - added VES that will be effective on June 4.
X-SVN-Rev: 41474
Yoshito Umaoka [Tue, 29 May 2018 17:06:21 +0000 (17:06 +0000)]
ICU-13667 Fixing compiler warnings and API doc issues.
X-SVN-Rev: 41473
Jeff Genovy [Tue, 29 May 2018 01:59:42 +0000 (01:59 +0000)]
ICU-13788 Fixing issue with accidental UErrorCode conversion to UBool.
X-SVN-Rev: 41472
Jeff Genovy [Sun, 27 May 2018 03:08:42 +0000 (03:08 +0000)]
ICU-13788 Remove trailing semicolon that causes compiler warning.
X-SVN-Rev: 41471
Jeff Genovy [Sun, 27 May 2018 03:07:57 +0000 (03:07 +0000)]
ICU-13788 Fix compiler error C4251 on Windows (MSVC, Clang, MinGW).
X-SVN-Rev: 41470
Jeff Genovy [Sat, 26 May 2018 19:23:18 +0000 (19:23 +0000)]
ICU-13667 Update filters for VS project file for numberformatter.
X-SVN-Rev: 41469
Jeff Genovy [Fri, 25 May 2018 23:47:51 +0000 (23:47 +0000)]
ICU-13667 Fix discrepancy in text in 'configure'.
X-SVN-Rev: 41468
Jeff Genovy [Fri, 25 May 2018 23:39:14 +0000 (23:39 +0000)]
ICU-13667 Update ICU4J version number for 62.1 release candidate, and readme file.
X-SVN-Rev: 41467
Markus Scherer [Fri, 25 May 2018 23:39:01 +0000 (23:39 +0000)]
ICU-13630 update spoof checker inclusion/recommended sets from Unicode 9 to Unicode 11
X-SVN-Rev: 41466
Shane Carr [Fri, 25 May 2018 22:54:48 +0000 (22:54 +0000)]
ICU-13788 Fixing number_decimfmtprops C++ dependency issue.
X-SVN-Rev: 41465
Shane Carr [Fri, 25 May 2018 21:29:59 +0000 (21:29 +0000)]
ICU-13788 Fixing numparse_impl C++ dependency issues.
X-SVN-Rev: 41464
Jeff Genovy [Fri, 25 May 2018 21:29:10 +0000 (21:29 +0000)]
ICU-13667 Update ICU4C version number for 62.1 release candidate.
X-SVN-Rev: 41463
Markus Scherer [Fri, 25 May 2018 18:18:15 +0000 (18:18 +0000)]
ICU-13630 script metadata: Mongolian -> exclusion
X-SVN-Rev: 41462
Markus Scherer [Fri, 25 May 2018 17:57:30 +0000 (17:57 +0000)]
ICU-13667 update/fix/improve dependencies; better layering formatting->numberparser->numberformatter->number_representation
X-SVN-Rev: 41461
Jeff Genovy [Fri, 25 May 2018 07:27:56 +0000 (07:27 +0000)]
ICU-13775 Fix build issues on MinGW and Clang-for-Windows (with exported template instantiations).
X-SVN-Rev: 41460
Shane Carr [Fri, 25 May 2018 03:01:38 +0000 (03:01 +0000)]
ICU-13788 Minor coverity fixes for number code.
X-SVN-Rev: 41459
Shane Carr [Fri, 25 May 2018 02:27:51 +0000 (02:27 +0000)]
ICU-13788 Improving error message printing in DateFmtPerf.cpp
X-SVN-Rev: 41458
Shane Carr [Fri, 25 May 2018 00:26:00 +0000 (00:26 +0000)]
ICU-13722 Removing obsolete constructs FmtStackData and UCONFIG_FORMAT_FASTPATHS_49.
X-SVN-Rev: 41457
Shane Carr [Thu, 24 May 2018 21:28:11 +0000 (21:28 +0000)]
ICU-13677 Fixing up apidoc strings for precision setting.
X-SVN-Rev: 41456
Jeff Genovy [Thu, 24 May 2018 07:35:20 +0000 (07:35 +0000)]
ICU-13698 Add "samplecheck.bat" script, similar to "icucheck.bat" to run the ICU4C samples.
X-SVN-Rev: 41454
Jeff Genovy [Thu, 24 May 2018 05:59:09 +0000 (05:59 +0000)]
ICU-13556 Add missing order-only prerequisite in data/Makefile.in
X-SVN-Rev: 41453
Jeff Genovy [Thu, 24 May 2018 05:54:49 +0000 (05:54 +0000)]
ICU-13785 Adding dependency information to uconv project to prevent "NMAKE : fatal error U1077" on Win/VS builds.
X-SVN-Rev: 41452
Peter Edberg [Thu, 24 May 2018 05:52:01 +0000 (05:52 +0000)]
ICU-12936 Make RelativeDateTimeFormatter handle offset of -0
X-SVN-Rev: 41451
Shane Carr [Thu, 24 May 2018 04:35:16 +0000 (04:35 +0000)]
ICU-13736 Change number parsing to require locale currency when using non-currency parse function.
X-SVN-Rev: 41450
Shane Carr [Thu, 24 May 2018 04:31:06 +0000 (04:31 +0000)]
ICU-11739 Replying to Andy code review comments.
X-SVN-Rev: 41449
Shane Carr [Thu, 24 May 2018 04:26:26 +0000 (04:26 +0000)]
ICU-11645 Replying to Andy code review comments.
X-SVN-Rev: 41448
Shane Carr [Thu, 24 May 2018 04:19:28 +0000 (04:19 +0000)]
ICU-13788 Fixing small memory leak in ucurr.cpp; always register the main currency_cleanup function, not the helper functions.
X-SVN-Rev: 41447
Shane Carr [Thu, 24 May 2018 04:16:35 +0000 (04:16 +0000)]
ICU-13777 Adding tests to make sure currency long names round-trip through parsing.
X-SVN-Rev: 41446
Shane Carr [Thu, 24 May 2018 03:36:42 +0000 (03:36 +0000)]
ICU-13788 Disabling failing RBNF parse test; to be addressed in #13793
X-SVN-Rev: 41445
Peter Edberg [Thu, 24 May 2018 03:30:20 +0000 (03:30 +0000)]
ICU-13768 Update currency list for ucurr_openISOCurrencies
X-SVN-Rev: 41444
Shane Carr [Wed, 23 May 2018 21:59:30 +0000 (21:59 +0000)]
ICU-13788 Fixing data types in numparse_decimal.cpp; should fix MSVC test failure.
X-SVN-Rev: 41443
Shane Carr [Wed, 23 May 2018 21:08:53 +0000 (21:08 +0000)]
ICU-13763 Makes FieldPositionIterator offset by input string length in DecimalFormat, restoring ICU 61 behavior.
X-SVN-Rev: 41442
Shane Carr [Wed, 23 May 2018 04:34:41 +0000 (04:34 +0000)]
ICU-13717 Optimizing SimpleDateFormat's use of NumberFormat for new number formatting pipeline.
X-SVN-Rev: 41441
Shane Carr [Wed, 23 May 2018 04:21:24 +0000 (04:21 +0000)]
ICU-13717 During SimpleDateFormat#parseInt, avoid cloning the DecimalFormat unless necessary.
X-SVN-Rev: 41440
Shane Carr [Wed, 23 May 2018 04:03:19 +0000 (04:03 +0000)]
ICU-13717 Adds fast path for RBNF, which is not affect by min/max integer digits.
X-SVN-Rev: 41439
Shane Carr [Wed, 23 May 2018 02:00:03 +0000 (02:00 +0000)]
ICU-13717 Adds "fast formatters" optimization to smpdtfmt.cpp to greatly improve the performance of SimpleDateFormat with the new number formatting pipeline.
X-SVN-Rev: 41438
Shane Carr [Wed, 23 May 2018 01:18:07 +0000 (01:18 +0000)]
ICU-13717 Fixes memory leak in date format parsing by moving cloning into the parseInt function.
X-SVN-Rev: 41437