]> granicus.if.org Git - icu/log
icu
4 years agoclang-format pass over new files, for good measure
Hugo van der Merwe [Sat, 28 Mar 2020 20:10:02 +0000 (21:10 +0100)]
clang-format pass over new files, for good measure

4 years agoClean up getConversionRatesInfo to prepare for review.
Hugo van der Merwe [Sat, 28 Mar 2020 19:56:51 +0000 (20:56 +0100)]
Clean up getConversionRatesInfo to prepare for review.

4 years agoMove testGetConversionRateInfo to UnitsDataTest
Hugo van der Merwe [Sat, 28 Mar 2020 18:29:37 +0000 (19:29 +0100)]
Move testGetConversionRateInfo to UnitsDataTest

4 years agoRename getunitsdata.{cpp,h} to unitsdata.{cpp,h}
Hugo van der Merwe [Sat, 28 Mar 2020 17:42:57 +0000 (18:42 +0100)]
Rename getunitsdata.{cpp,h} to unitsdata.{cpp,h}

4 years agoMerge pull request #21 from hugovdm/units_router_testfix
Hugo [Fri, 27 Mar 2020 19:04:40 +0000 (20:04 +0100)]
Merge pull request #21 from hugovdm/units_router_testfix

Remove failing volt-ampere test case, consider it non-sensical enough.

4 years agoRemove the volt-ampere test case, consider it non-sensical enough.
Hugo van der Merwe [Fri, 27 Mar 2020 18:31:37 +0000 (19:31 +0100)]
Remove the volt-ampere test case, consider it non-sensical enough.

4 years agoMerge pull request #20 from hugovdm/units_router
Younies Mahmoud [Fri, 27 Mar 2020 16:57:12 +0000 (17:57 +0100)]
Merge pull request #20 from hugovdm/units_router

Fix getConversionRateInfo compound-base-unit calculation bug

4 years agoComment out a test that is failing.
Hugo van der Merwe [Fri, 27 Mar 2020 15:25:25 +0000 (16:25 +0100)]
Comment out a test that is failing.

4 years agoAdd consistency checks for input and output units.
Hugo van der Merwe [Fri, 27 Mar 2020 15:01:18 +0000 (16:01 +0100)]
Add consistency checks for input and output units.

4 years agoFix getConversionRateInfo bug.
Hugo van der Merwe [Fri, 27 Mar 2020 14:58:03 +0000 (15:58 +0100)]
Fix getConversionRateInfo bug.

4 years agoMerge pull request #19 from younies/units_router_younies
Younies Mahmoud [Thu, 26 Mar 2020 18:06:19 +0000 (19:06 +0100)]
Merge pull request #19 from younies/units_router_younies

remove non-needed comment

4 years agoremove non-needed comment
Younies Mahmoud [Thu, 26 Mar 2020 18:01:19 +0000 (19:01 +0100)]
remove non-needed comment

4 years agoMerge pull request #18 from hugovdm/units_router
Hugo [Thu, 26 Mar 2020 14:45:19 +0000 (15:45 +0100)]
Merge pull request #18 from hugovdm/units_router

Fix for base unit complexity != 1. Eg: volume -> cubic-meter.

4 years agoFix for base unit complexity != 1. Eg: volume -> cubic-meter.
Hugo van der Merwe [Thu, 26 Mar 2020 14:29:44 +0000 (15:29 +0100)]
Fix for base unit complexity != 1. Eg: volume -> cubic-meter.

4 years agoMerge pull request #17 from hugovdm/units_router
Hugo [Thu, 26 Mar 2020 10:14:32 +0000 (11:14 +0100)]
Merge pull request #17 from hugovdm/units_router

Load data for compound units

4 years agoAlso rename source to sourceUnit (matching baseUnit).
Hugo van der Merwe [Wed, 25 Mar 2020 18:29:26 +0000 (19:29 +0100)]
Also rename source to sourceUnit (matching baseUnit).

4 years agoUse 'baseUnit' for conversion pivot unit rather than 'target'.
Hugo van der Merwe [Wed, 25 Mar 2020 18:25:33 +0000 (19:25 +0100)]
Use 'baseUnit' for conversion pivot unit rather than 'target'.

4 years agoImplement getConversionRatesInfo, plus cleanups&improvements.
Hugo van der Merwe [Wed, 25 Mar 2020 09:48:38 +0000 (10:48 +0100)]
Implement getConversionRatesInfo, plus cleanups&improvements.

4 years agoMerge pull request #16 from hugovdm/units_router_quickfix
Younies Mahmoud [Wed, 25 Mar 2020 10:52:49 +0000 (11:52 +0100)]
Merge pull request #16 from hugovdm/units_router_quickfix

Fixes to make complexunitsconverter and unitconverter compile again.

4 years agoFixes to make complexunitsconverter and unitconverter compile again.
Hugo van der Merwe [Wed, 25 Mar 2020 10:35:08 +0000 (11:35 +0100)]
Fixes to make complexunitsconverter and unitconverter compile again.

4 years agoMerge pull request #15 from younies/units_router_younies
Younies Mahmoud [Wed, 25 Mar 2020 02:49:16 +0000 (03:49 +0100)]
Merge pull request #15 from younies/units_router_younies

Merge sffc/units_staging branch

4 years agoMerge branch 'units-staging' of github.com:sffc/icu into units_router_younies
Younies Mahmoud [Wed, 25 Mar 2020 02:46:43 +0000 (03:46 +0100)]
Merge branch 'units-staging' of github.com:sffc/icu into units_router_younies

4 years agoMerge branch 'unit-id' into units-staging
Shane F. Carr [Tue, 24 Mar 2020 19:16:07 +0000 (14:16 -0500)]
Merge branch 'unit-id' into units-staging

4 years agoMerge branch 'master' into unit-id
Shane F. Carr [Tue, 24 Mar 2020 19:15:47 +0000 (14:15 -0500)]
Merge branch 'master' into unit-id

4 years agoICU-20920 Add support for CLDR 37 unit identifiers in ICU4C
Shane F. Carr [Tue, 24 Mar 2020 18:28:50 +0000 (18:28 +0000)]
ICU-20920 Add support for CLDR 37 unit identifiers in ICU4C

See #964

4 years agoICU-20976 GCC 8 fixes phase 1
Steven R. Loomis [Fri, 20 Mar 2020 21:41:01 +0000 (14:41 -0700)]
ICU-20976 GCC 8 fixes phase 1

Some initial fixes for GCC 8

- setup a GCC 8 buildbot with -Wextra
- rewrite ucol_sit to use CharString
- workaround for gcc7+ on mac
  see https://github.com/arbor-sim/arbor/issues/562#issuecomment-409970434
- fix ucnv_2022 strcpy site

4 years agoCode review feedback
Shane F. Carr [Tue, 24 Mar 2020 18:28:50 +0000 (13:28 -0500)]
Code review feedback

4 years agoMerge pull request #14 from younies/units_router_younies
Hugo [Tue, 24 Mar 2020 15:38:06 +0000 (16:38 +0100)]
Merge pull request #14 from younies/units_router_younies

Comment out broken tests

4 years agofix the testing
Younies Mahmoud [Tue, 24 Mar 2020 15:22:46 +0000 (16:22 +0100)]
fix the testing

4 years agoMerge pull request #13 from younies/units_router_younies
Younies Mahmoud [Tue, 24 Mar 2020 13:36:07 +0000 (14:36 +0100)]
Merge pull request #13 from younies/units_router_younies

Hook up the data into units router

4 years agohook up the data to units router
Younies Mahmoud [Tue, 24 Mar 2020 13:05:01 +0000 (14:05 +0100)]
hook up the data to units router

4 years agoICU-20956 Fix monetary symbol getters in DecimalFormat
Shane Carr [Fri, 6 Mar 2020 01:53:58 +0000 (01:53 +0000)]
ICU-20956 Fix monetary symbol getters in DecimalFormat

See #987

4 years agoMerge pull request #12 from younies/units_router_younies
Younies Mahmoud [Tue, 24 Mar 2020 00:12:28 +0000 (01:12 +0100)]
Merge pull request #12 from younies/units_router_younies

delete the hard coded test cases

4 years agodelete the hard coded test cases
Younies Mahmoud [Tue, 24 Mar 2020 00:09:47 +0000 (01:09 +0100)]
delete the hard coded test cases

4 years agoMerge pull request #11 from younies/units_router_younies
Younies Mahmoud [Tue, 24 Mar 2020 00:05:42 +0000 (01:05 +0100)]
Merge pull request #11 from younies/units_router_younies

Move getUnitsData to a separate file

4 years agoMove getUnitsData to a separate file
Younies Mahmoud [Tue, 24 Mar 2020 00:03:25 +0000 (01:03 +0100)]
Move getUnitsData to a separate file

4 years agoReply to code review feedback
Shane F. Carr [Mon, 23 Mar 2020 22:51:32 +0000 (17:51 -0500)]
Reply to code review feedback

4 years agoReply to code review feedback
Shane F. Carr [Mon, 23 Mar 2020 18:06:09 +0000 (13:06 -0500)]
Reply to code review feedback

4 years agoICU-21024 RBBI Table Builder / Coverity CID 1460598 "Dodgy Code" issue
Andy Heninger [Fri, 20 Mar 2020 21:19:44 +0000 (14:19 -0700)]
ICU-21024 RBBI Table Builder / Coverity CID 1460598 "Dodgy Code" issue

Fix the issue identified by Coverity.
The problem was in code handling the mapping from the table build time
representation of a set of status values for an RBBI rule to the corresponding
status data as saved in a binary RBBI rule file.

The problem was benign, the rbbi data built by the incorrect code would
would still operate correctly, although it might not byte-for-byte match
that built by ICU4C. (The problem was in Java only.)

4 years agoMerge pull request #10 from younies/tryingdouble
Younies Mahmoud [Sat, 21 Mar 2020 13:37:35 +0000 (14:37 +0100)]
Merge pull request #10 from younies/tryingdouble

pass the data to unit converter

4 years agoMerge branch 'units_router' into tryingdouble
Younies Mahmoud [Sat, 21 Mar 2020 13:37:20 +0000 (14:37 +0100)]
Merge branch 'units_router' into tryingdouble

4 years agomerge tryingdouble branch
Younies Mahmoud [Sat, 21 Mar 2020 09:48:31 +0000 (10:48 +0100)]
merge tryingdouble branch

4 years agouse CharString for internal data
Younies Mahmoud [Sat, 21 Mar 2020 07:17:28 +0000 (08:17 +0100)]
use CharString for internal data

4 years agoMerge pull request #9 from younies/tryingdouble
Younies Mahmoud [Sat, 21 Mar 2020 07:19:20 +0000 (08:19 +0100)]
Merge pull request #9 from younies/tryingdouble

move enum::constants to unitconverter.cpp and remove unnecessarily us…

4 years agoMerge pull request #8 from younies/units_router_younies
Younies Mahmoud [Sat, 21 Mar 2020 07:19:05 +0000 (08:19 +0100)]
Merge pull request #8 from younies/units_router_younies

Add Todo for Hugo

4 years agoMerge branch 'tryingdouble' of github.com:younies/icu into tryingdouble
Younies Mahmoud [Sat, 21 Mar 2020 07:17:54 +0000 (08:17 +0100)]
Merge branch 'tryingdouble' of github.com:younies/icu into tryingdouble

4 years agouse CharString for internal data
Younies Mahmoud [Sat, 21 Mar 2020 07:17:28 +0000 (08:17 +0100)]
use CharString for internal data

4 years agoMerge branch 'units_router' into tryingdouble
Younies Mahmoud [Sat, 21 Mar 2020 06:48:56 +0000 (07:48 +0100)]
Merge branch 'units_router' into tryingdouble

4 years agomove enum::constants to unitconverter.cpp and remove unnecessarily use of CharString
Younies Mahmoud [Sat, 21 Mar 2020 06:43:41 +0000 (07:43 +0100)]
move enum::constants to unitconverter.cpp and remove unnecessarily use of CharString

4 years agoMerge branch 'units_router' of github.com:younies/icu into units_router_younies
Younies Mahmoud [Sat, 21 Mar 2020 05:51:41 +0000 (06:51 +0100)]
Merge branch 'units_router' of github.com:younies/icu into units_router_younies

4 years agoadd a todo(hugo) for getUnitsData
Younies Mahmoud [Sat, 21 Mar 2020 05:43:00 +0000 (06:43 +0100)]
add a todo(hugo) for getUnitsData

4 years agoMerge pull request #7 from hugovdm/younies-units_router-convert
Younies Mahmoud [Fri, 20 Mar 2020 16:43:17 +0000 (17:43 +0100)]
Merge pull request #7 from hugovdm/younies-units_router-convert

Add string length checks to testGetUnitsData.

4 years agoAdd string length checks to testGetUnitsData.
Hugo van der Merwe [Fri, 20 Mar 2020 15:00:41 +0000 (16:00 +0100)]
Add string length checks to testGetUnitsData.

4 years agoMerge remote-tracking branch 'origin/unit_header' into units_router
Younies Mahmoud [Fri, 20 Mar 2020 15:06:35 +0000 (16:06 +0100)]
Merge remote-tracking branch 'origin/unit_header' into units_router

4 years agoMerge branch 'units_router' of github.com:younies/icu into units_router
Younies Mahmoud [Fri, 20 Mar 2020 14:44:49 +0000 (15:44 +0100)]
Merge branch 'units_router' of github.com:younies/icu into units_router

4 years agofix building units router branch
Younies Mahmoud [Fri, 20 Mar 2020 14:44:31 +0000 (15:44 +0100)]
fix building units router branch

4 years agoMerge pull request #6 from hugovdm/younies-units_router-convert
Younies Mahmoud [Fri, 20 Mar 2020 14:43:13 +0000 (15:43 +0100)]
Merge pull request #6 from hugovdm/younies-units_router-convert

Various resource-loading code and documentation improvements.

4 years agoVarious resource-loading code and documentation improvements.
Hugo van der Merwe [Fri, 20 Mar 2020 13:40:35 +0000 (14:40 +0100)]
Various resource-loading code and documentation improvements.

4 years agoMerge pull request #5 from hugovdm/younies-units_router-convert
Younies Mahmoud [Fri, 20 Mar 2020 11:53:09 +0000 (12:53 +0100)]
Merge pull request #5 from hugovdm/younies-units_router-convert

Hook up data-driven unit conversion tests

4 years agoAvoid adding duplicate conversion rate data.
Hugo van der Merwe [Fri, 20 Mar 2020 11:20:44 +0000 (12:20 +0100)]
Avoid adding duplicate conversion rate data.

Also includes some cosmetic and readability improvements.

4 years agoICU-21016 Special handling of Spanish and Hebrew list format until CLDR get the data
Frank Tang [Thu, 19 Mar 2020 01:57:29 +0000 (01:57 +0000)]
ICU-21016 Special handling of Spanish and Hebrew list format until CLDR get the data

See #1043

4 years agoLittle fixes to unitconverter.cpp
Hugo van der Merwe [Thu, 19 Mar 2020 20:38:20 +0000 (21:38 +0100)]
Little fixes to unitconverter.cpp

4 years agoHook up data-driven unit conversion tests: triggers segfault
Hugo van der Merwe [Fri, 13 Mar 2020 17:17:48 +0000 (18:17 +0100)]
Hook up data-driven unit conversion tests: triggers segfault

Contains a "FIXME_*" boolean for selecting between fprintf and
constructing a UnitConverter, because the UnitConverter constructor is
currently segfaulting.

Also contains some clean-up of testConversions code.

4 years agomerge tryingdouble branch
Younies Mahmoud [Thu, 19 Mar 2020 14:14:55 +0000 (15:14 +0100)]
merge tryingdouble branch

4 years agoMerge pull request #4 from hugovdm/younies_units_router_resources
Younies Mahmoud [Thu, 19 Mar 2020 13:33:55 +0000 (14:33 +0100)]
Merge pull request #4 from hugovdm/younies_units_router_resources

Add units resources data loading. (Unit test is WIP.)

4 years agoRemove namespace hacks. Trust code review will deal with 'work in progress'.
Hugo van der Merwe [Thu, 19 Mar 2020 12:44:32 +0000 (13:44 +0100)]
Remove namespace hacks. Trust code review will deal with 'work in progress'.

4 years agoFix default geq: 1, not 0.
Hugo van der Merwe [Thu, 19 Mar 2020 12:05:41 +0000 (13:05 +0100)]
Fix default geq: 1, not 0.

4 years agoMerge branch 'units_router' into younies_units_router_resources
Hugo van der Merwe [Thu, 19 Mar 2020 12:03:15 +0000 (13:03 +0100)]
Merge branch 'units_router' into younies_units_router_resources

4 years agoremove std::string
Younies Mahmoud [Thu, 19 Mar 2020 02:28:30 +0000 (03:28 +0100)]
remove std::string

4 years agoadd unitsroutertest.cpp
Younies Mahmoud [Thu, 19 Mar 2020 02:21:44 +0000 (03:21 +0100)]
add unitsroutertest.cpp

4 years agoaddress Shane's comments on number_formatter.h
Younies Mahmoud [Thu, 19 Mar 2020 02:20:36 +0000 (03:20 +0100)]
address Shane's comments on number_formatter.h

4 years agoAdd skeleton for testing units router
Younies Mahmoud [Thu, 19 Mar 2020 01:59:26 +0000 (02:59 +0100)]
Add skeleton for testing units router

4 years agoStrip down ConversionRateInfo to only four CharStrings.
Hugo van der Merwe [Thu, 19 Mar 2020 00:45:27 +0000 (01:45 +0100)]
Strip down ConversionRateInfo to only four CharStrings.

4 years agoWIP: Add base conversion rates for all preferences: with dupes.
Hugo van der Merwe [Thu, 19 Mar 2020 00:42:25 +0000 (01:42 +0100)]
WIP: Add base conversion rates for all preferences: with dupes.

4 years agoICU-21013 Fix OOM not checked in vtzone.cpp
Jeff Genovy [Wed, 11 Mar 2020 08:18:11 +0000 (01:18 -0700)]
ICU-21013 Fix OOM not checked in vtzone.cpp

Also change NULL to nullptr

4 years agoMove wip_units_resource_loader.* code into unitsrouter.*
Hugo van der Merwe [Wed, 18 Mar 2020 17:34:38 +0000 (18:34 +0100)]
Move wip_units_resource_loader.* code into unitsrouter.*

4 years agoDelete old wip_units_resources code.
Hugo van der Merwe [Wed, 18 Mar 2020 16:21:02 +0000 (17:21 +0100)]
Delete old wip_units_resources code.

4 years agoMerge remote-tracking branch 'younies/units_router' into wip_younies_units_router_res...
Hugo van der Merwe [Wed, 18 Mar 2020 17:57:27 +0000 (18:57 +0100)]
Merge remote-tracking branch 'younies/units_router' into wip_younies_units_router_resources

4 years agoICU-21019 x86: Add .note.gnu.property section for Intel CET
H.J. Lu [Tue, 10 Mar 2020 11:34:46 +0000 (04:34 -0700)]
ICU-21019 x86: Add .note.gnu.property section for Intel CET

Intel Control-flow Enforcement Technology (CET):

https://software.intel.com/en-us/articles/intel-sdm

contains shadow stack (SHSTK) and indirect branch tracking (IBT).  When
CET is enabled, ELF object files must be marked with .note.gnu.property
section.  GCC provides <cet.h> which can be included in assembly codes
to generate CET maker when compiling with -fcf-protection.

4 years agoWorking parsing and returning of units data.
Hugo van der Merwe [Wed, 18 Mar 2020 15:47:46 +0000 (16:47 +0100)]
Working parsing and returning of units data.

4 years agoWIP: c-style ures_* handling.
Hugo van der Merwe [Tue, 17 Mar 2020 21:31:59 +0000 (22:31 +0100)]
WIP: c-style ures_* handling.

4 years agoMerge branch 'units-staging' of github.com:sffc/icu into tryingdouble
Younies Mahmoud [Wed, 18 Mar 2020 13:39:41 +0000 (14:39 +0100)]
Merge branch 'units-staging' of github.com:sffc/icu into tryingdouble

4 years agofix comments
Younies Mahmoud [Wed, 18 Mar 2020 12:56:09 +0000 (13:56 +0100)]
fix comments

4 years agoadd getOutputUnit to FormattedNumber
Younies Mahmoud [Wed, 18 Mar 2020 12:52:21 +0000 (13:52 +0100)]
add getOutputUnit to FormattedNumber

4 years agoaddress Shane's comments on number_formatter.h
Younies Mahmoud [Wed, 18 Mar 2020 12:46:52 +0000 (13:46 +0100)]
address Shane's comments on number_formatter.h

4 years agoICU-21020 Document unchecked exception in various number formatter classes
Victor Chang [Fri, 13 Mar 2020 19:19:45 +0000 (19:19 +0000)]
ICU-21020 Document unchecked exception in various number formatter classes

4 years agoICU-20978 Reduce unnecessary building for tools when cross-building
Yuta Saito [Sun, 16 Feb 2020 08:16:26 +0000 (00:16 -0800)]
ICU-20978 Reduce unnecessary building for tools when cross-building

4 years agoICU-20916 late computation of roundedThreshold to ensure it is up to date
Markus Scherer [Tue, 17 Mar 2020 22:31:31 +0000 (15:31 -0700)]
ICU-20916 late computation of roundedThreshold to ensure it is up to date

4 years agoChange "+" to "-and-"
Shane F. Carr [Wed, 18 Mar 2020 00:47:09 +0000 (19:47 -0500)]
Change "+" to "-and-"

4 years agoUpdate simple unit identifiers
Shane F. Carr [Wed, 18 Mar 2020 00:44:48 +0000 (19:44 -0500)]
Update simple unit identifiers

4 years agoRename TempSingleUnit -> SingleUnitImpl
Shane F. Carr [Wed, 18 Mar 2020 00:30:11 +0000 (19:30 -0500)]
Rename TempSingleUnit -> SingleUnitImpl

4 years agoRevert changes to LocalArray (localpointer.h)
Shane F. Carr [Wed, 18 Mar 2020 00:29:59 +0000 (19:29 -0500)]
Revert changes to LocalArray (localpointer.h)

4 years agoaddress Shane's comments2
Younies Mahmoud [Tue, 17 Mar 2020 22:55:39 +0000 (23:55 +0100)]
address Shane's comments2

4 years agoadd another constructor to ComplexUnitConverter
Younies Mahmoud [Tue, 17 Mar 2020 20:47:53 +0000 (21:47 +0100)]
add another constructor to ComplexUnitConverter

4 years agoMerge branch 'units-staging' of github.com:sffc/icu into units_router
Younies Mahmoud [Tue, 17 Mar 2020 20:31:54 +0000 (21:31 +0100)]
Merge branch 'units-staging' of github.com:sffc/icu into units_router

4 years agoICU-20605 travis: make dist
Steven R. Loomis [Sat, 14 Mar 2020 01:32:38 +0000 (18:32 -0700)]
ICU-20605 travis: make dist

- run 'make dist' after the linux clang build

4 years agoICU-20797 fix UBS compilation error and UBS in test code
Steven R. Loomis [Sat, 31 Aug 2019 00:31:38 +0000 (17:31 -0700)]
ICU-20797 fix UBS compilation error and UBS in test code

Two issues here:

- fix 2 build issue in i18n when compiling with clang++ -fsanitize=undefined
the following two symbols were not exported (and they should be):
  typeinfo for icu::CollationCacheEntry
  typeinfo for icu::numparse::impl::CodePointMatcher

- remove undefined behavior warning in NumberFormatTestTuple.. minor, but very annoying
when repeated many times during every test run. Tends to mask real errors.

> numberformattesttuple.cpp:319:5: runtime error: member access within null pointer of type 'NumberFormatTestTuple'

4 years agoICU-20600 build icu-data-bin files
Steven R. Loomis [Sat, 14 Mar 2020 01:19:07 +0000 (18:19 -0700)]
ICU-20600 build icu-data-bin files

make dist will now produce:
- icu4c-67.1-data-bin-b.zip
- icu4c-67.1-data-bin-l.zip

4 years agoICU-20910 C API Change Report Tool updates
Steven R. Loomis [Wed, 2 Oct 2019 17:10:03 +0000 (10:10 -0700)]
ICU-20910 C API Change Report Tool updates

- This commit was used to generate ICU4C 65's report
- This commit was inadvertently left out of [ICU-20162]

Changes:
- fixup copyright messages
- code cleanup
- fix unreplaced '$rightVer' in born stable APIs

4 years agoMerge pull request #26 from hugovdm/units-staging-preferences
Shane F. Carr [Tue, 17 Mar 2020 03:12:04 +0000 (22:12 -0500)]
Merge pull request #26 from hugovdm/units-staging-preferences

Parse unitPreferencesTest.txt preparing to run data-driven tests