Commit Graph

31323 Commits

Author SHA1 Message Date
Ikko Ashimine
ecf5fab30b ICU-21293 Fix typo in rematch.cpp comment
arguements→arguments
2020-09-29 15:02:27 -07:00
Jeff Genovy
b4d056ab93 ICU-13845 Windows timezone detection: When DST is off, map to an Etc/GMT+-hh zone.
The Windows 'Date and Time' Control Panel has a setting for "Automatically
adjust clock for DST". When this setting is manually unchecked, the DST
setting is considered OFF, and the clock does not adjust for DST.

This change detects when the setting is OFF and uses the non-DST offset
to map to an Etc/GMT+-hh zone.

- Also refactor uprv_detectWindowsTimeZone

Co-authored-by: Jungshik Shin <jshin@chromium.org>
2020-09-29 13:57:39 -07:00
Yoshito Umaoka
b2edfb89cc ICU-21249 ICU 68 BRS - Clean up import statements 2020-09-29 13:17:51 -04:00
Yoshito Umaoka
802aedc659 ICU-21249 Update copy of LICENSE file in icu4j tree
Lao dictionally repo location was updated in LICENSE file in icu4c, but a copy in icu4j tree was not. Sync the icu4j copy with the icu4c one.
2020-09-29 12:14:25 -04:00
Yoshito Umaoka
b11e4bcba1 ICU-21249 ICU4J 68 API status updates
See https://docs.google.com/spreadsheets/d/1OIezmSf2mN-hiRnIrpwugCHTzCFIm_-GyeA3ng4QFP8
2020-09-29 09:12:29 -04:00
Rich Gillam
1ff371c225 ICU-21249 ICU4C API promotions 2020-09-28 17:19:04 -07:00
Markus Scherer
2b87e39ceb ICU-21124 fix minor LocaleMatcher API doc issues 2020-09-28 08:47:27 -07:00
Markus Scherer
697608f30a ICU-21257 remove #License suffix from pull request template 2020-09-28 08:39:28 -07:00
younies
9a06bdb651 ICU-21010 add the @draft to the public methods
See #1369
2020-09-26 22:17:50 +02:00
Markus Scherer
1c8bc80789 ICU-21249 restore tests of Version resources 2020-09-25 12:09:38 -07:00
Peter Edberg
43aa7ddda2 ICU-21249 integrate CLDR release-38-beta to ICU trunk 2020-09-25 09:33:13 -07:00
Frank Tang
cddb569261 ICU-21297 Fix crash when ICU runs with stubdata only
See #1361
2020-09-24 17:14:04 -07:00
gnrunge
5a922544be ICU-21248 Adds line ending check to Travis CI check. The eol check fits
quite well into what the script is doing already.
Note that one file, 'testrunner.cmd', contains \r, which seems to
be acceptable since it is a Windows file.
2020-09-24 09:56:55 -07:00
Peter Edberg
4881333155 ICU-21249 BRS68rc update urename.h 2020-09-23 16:57:10 -07:00
Markus Scherer
68c66ef33c ICU-20846 remove header guard from .cpp file 2020-09-23 16:18:26 -07:00
Markus Scherer
fba8cecffa ICU-21236 better document UniqueCharStrings 2020-09-23 16:06:37 -07:00
Jacob
4e861e2044 ICU-21282 Fixup date patterns and date field symbols display
No content changes.  This make the display of date patterns, date field symbols, and skeletons consistent.
- Date field symbols are in a code block (e.g. `y` or `yyyy`)
- Date patterns are quoted in a code block (e.g. `"y"` or `"MMMM d 'at' h:mm a"`)
- Skeletons are the same as date patterns (e.g. `"MMMMdjmm"`)
- Strings that might be the result of a date pattern are quoted (e.g. "April 2 at 5:00 PM")
Thus `"y"` denotes the date pattern containing the date field symbol `y`
2020-09-23 15:49:20 -07:00
Jeff Genovy
6a78e67995 ICU-21249 BRS68RC: Fix ICU4C Samples.
- Changes for TRUE/FALSE macros.
- Samples: Add casts
- Samples: Clean up ufortune and ugrep vcxproj files.
- Set codepage to UTF-8 in samplecheck.bat
2020-09-23 14:52:07 -07:00
Elango Cheran
ce90c383f1 ICU-21034 Convert part of ICU4C Readme info to User Guide 2020-09-23 10:13:33 -07:00
Hugo van der Merwe
81d43a2092 ICU-20568 Fix "1 foot 12 inches" behaviour
See #1337
2020-09-23 08:10:22 +02:00
Peter Edberg
3d8ae5eb6d ICU-20590 Ensure time format consistency for SHORT vs j patterns if no locale data 2020-09-22 22:50:36 -07:00
Elango Cheran
47230019c6 ICU-21270 Update FixedDecimal in Java to support exponent 2020-09-22 21:16:12 -07:00
gnrunge
f773df26fd ICU-21028 Modifies ICU data generator so that the CLDR version is
no longer added to the .txt data files with the exception of the
root.txt files. This will drastically limit the number of changed
files during a version upgrade because the version change is the
only change in many of the data files.

ICU-21028 Fixed an indent.

ICU-21028 Factor in feedback from review.
2020-09-22 19:51:09 -07:00
gnrunge
9f388a34f9 ICU-21259 Adds a filter to pseudolocale generator to switch a particular
datetime pattern item from 12 hrs to 24 hrs format to prevent a unit
test failure.

ICU-21259 Disables pseudolocale generation in ICU data generation script.
Should not have stayed enabled in the earlier commit.

ICU-21259 Fix indents.

ICU-21259 Modify changes according to review feedback.
2020-09-22 17:12:57 -07:00
Shane F. Carr
6b3a7a64ab ICU-21190 Adding PluralRules select for number ranges
See #1309
2020-09-22 15:49:30 -05:00
Frank Tang
12dc3772b1 ICU-21236 Correct Locale canonicalization
See #1254
2020-09-21 19:35:13 -07:00
Steven R. Loomis
e3a43c7fb8 ICU-21251 release icu4j.jar/utilities.jar to GH Maven
- on a release (created from Github), publish to
<https://github.com/unicode-org/icu/packages> as
    1. icu4j-for-cldr
    2. utilities-for-cldr
- also fix a doc bug in DecimalFormat
- this is intended for CLDR use.
- a tag such as 'cldr/2019-09-15' will turn into a
maven version '68.1-SNAPSHOT-cldr-2019-09-15'
2020-09-21 15:32:30 -05:00
Shane Carr
3112d9ebb9 ICU-21191 Fixing testtagsguards.sh 2020-09-21 09:38:53 -07:00
Markus Scherer
8dc85529e1 ICU-21249 add hide-draft guards for some @draft ICU 68 API 2020-09-20 21:04:41 -05:00
Hugo van der Merwe
e3bb5e5f07 ICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (2/2)
* Throw UnsupportedOperationException for "unsanctioned units"
* Deal with the parent issue for LongNameMultiplexer
* Fix NullPointerException: UnitConversionHandler.processQuantity must
  call fParent.processQuantity
* toSkeleton not supported for not-built-in units
* Add and use interface
  LongNameMultiplexer.ParentlessMicroPropsGenerator
* Match up C++ and Java unit tests in NumberFormatterApiTest.java
* Permit user-override of precision() for usage(), closes icu-units#95
* Use BogusRounder to propagate mathContext.
* Port C++ change from PR #1322, commit c84ded050a, to Java.
* Test the usage-without-unit error. Document it in
  NumberFormatterSettings.java
* General review and corrections.
2020-09-19 01:31:08 +02:00
younies
7ba2b48f7b ICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (1/2) 2020-09-19 01:31:08 +02:00
gnrunge
5e0cec2c2b ICU-21248 Adds source file check (UTF-8 and absence of BOM) to
Travis Continued Integration.

ICU-21248 Factors in review comments.

ICU-21248 Changes: no more filtering of markdown files, moved the
script to icu/tools/script/ directory, removed BOM from one
README.md file.

ICU-21248 Adjusts path to the icu-file-utf8-check script.

ICU-21248 Extends coverage of UTF-8/BOM check to all of icu/ directory.
2020-09-18 13:17:50 -07:00
Jeff Genovy
f64ee1216a ICU-21291 Increase the timeout for the Exhaustive Test CI builds 2020-09-17 17:03:44 -07:00
gnrunge
10face8140 ICU-21249 Adds !UCONFIG_NO_BREAK_ITERATION around selected test data items.
The corresponding code that implements the feature under test is likewise
enclosed.
2020-09-17 13:22:05 -07:00
Frank Tang
5769803253 ICU-21283 Fix Java for calendar bugs
This is the java port of ICU-21043 (for C++)
This PR fixes
ICU-21043 Erroneous date display in indian calendar of all dates prior to 0001-01-01.
ICU-21044 Hebrew Calendar calculation is incorrect when the year < 1
ICU-21045 Erroneous date display in islamic and islamic-rgsa calendars of all dates prior to 0622-07-18.
ICU-21046 Erroneous date display in islamic-umalqura calendar of all dates prior to -195366-07-23.

The problem in the IndianCalendarl is
ICU-21043 the gregorian/julain convesion is wrong. Swith to use the
calculation function in the Calendar class.

The problem in the HebrewCalendar is
ICU-21044 the use of bulit in / is wrong when the year or month could be < 1.

The problem in the IslamicCalendar is

ICU-21045: The math of % negative number for year and month is wrong.
Also add tests to exhaust test 8000 years for all calendar. In quick
mode, only test 2.5 years.

reduce the number of date in quick mode
2020-09-17 12:20:47 -07:00
dependabot[bot]
4583c1e77c ICU-21249 Bump ant from 1.10.6 to 1.10.8 in /tools/cldr/cldr-to-icu
Bumps ant from 1.10.6 to 1.10.8.

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-17 11:34:20 -07:00
Steven R. Loomis
6b35e70b68 ICU-20717 move small files out of lfs: .dat, .gz, .gif 2020-09-17 11:09:48 -07:00
Hugo van der Merwe
c84ded050a ICU-20568 Have macrosToMicroGenerator do input unit calculation.
This moves input unit calculation out of UnitConversionHandler making
it simpler and clearer, and localises the "MacroProps interpretation"
work in macrosToMicroGenerator, where it belongs.
2020-09-17 12:11:26 +02:00
Roman Savchenko
5a42118a6f ICU-21280 Correct source bytes counting in UTF8->UTF8 conversion 2020-09-16 17:50:21 -07:00
Hugo van der Merwe
5ed09dc9b8 ICU-20568 Improve MacroProps error handling.
In particular: actually handle Usage memory allocation errors.
Also: correct Scale's error condition.
2020-09-17 01:13:45 +02:00
Peter Edberg
7888b23e87 ICU-21249 integrate CLDR release-38-alpha2 to ICU trunk 2020-09-16 15:10:05 -07:00
Hugo van der Merwe
48cf3ace11 ICU-21287 Enable asserts for 'ant checkTest' 2020-09-16 23:43:04 +02:00
Eberhard Beilharz
bd6ecc90af ICU-21163 Update URL to lao-dictionary project in LICENSE 2020-09-16 14:10:31 -04:00
gnrunge
3a55ce096a ICU-21249 Adds #if !UCONFIG_NO_FORMATTING around all code in number_symbolswrapper.cpp.
If UCONFIG_NO_FORMATTING is set to 1 in uconfig.h nothing in
number_symbolswrapper.cpp compiles. Note, for example, that the entirety
of the included numberformatter.h header file is inclosed in
!UCONFIG_NO_FORMATTING.

ICU-21249 Properly arrange #if !UCONFIG_NO_FORMATTING.
2020-09-16 09:19:03 -07:00
gnrunge
215ca37e4b ICU-21249 Adds #if !UCONFIG_NO_BREAK_ITERATOR to prevent compilation
error (toTitle() not found) when this configuration flag is set.
2020-09-16 09:18:40 -07:00
Hugo van der Merwe
4bcefe1c4b ICU-20568 Cleanup: drop declaration for no longer existing factory. 2020-09-16 12:40:20 +02:00
Shane F. Carr
5a35a31e9a ICU-21021 Changing MeasureUnit::splitToSingleUnits to return std::pair 2020-09-15 20:53:51 -05:00
Shane F. Carr
b41f12065f ICU-21249 Fix TODOs to reference ICU-21284 instead of ICU-20920 2020-09-15 12:27:44 -05:00
Shane F. Carr
74b7882a86 ICU-21249 Remove obsolete TODO for ICU-13591 2020-09-15 12:27:44 -05:00
Shane F. Carr
7111def494 ICU-21249 Fix logKnownIssue for ICU-13574 2020-09-15 12:27:44 -05:00