-
Notifications
You must be signed in to change notification settings - Fork 17
update to ICU 75 #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to ICU 75 #64
Conversation
Update TextDirection and PluralRules with latest information, especially -1 being "one" not "other" Use non-breaking space for "PM" Update 12hr am test to ignore es_AR, since checkAM fixes it
| <version>3.0.0-M8</version> | ||
| <configuration> | ||
| <!-- suppress all loggings for unit test --> | ||
| <argLine>@{argLine} -Djava.util.logging.config.file=src/test/resources/logging.properties</argLine> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes a warning when using GraalJS without GraalVM
| Date sampleDate = I18nDateUtil.parseTimestamp("2008-03-13 13:00:00"); | ||
| // In JDK 6, they fixed danish. | ||
| assertEquals("13.03.2008", BaseLocalizer.getLocaleDateFormat(new Locale("da"), tz).format(sampleDate)); | ||
| assertEquals("13.03.2008 13.00", BaseLocalizer.getLocaleDateTimeFormat(new Locale("da"), tz).format(sampleDate)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Danish now has a comma with the time
|
|
||
| // Validate with US | ||
| assertEquals("3/13/2008", BaseLocalizer.getLocaleDateFormat(Locale.US, tz).format(sampleDate)); | ||
| assertEquals("3/13/2008, 1:00 PM", BaseLocalizer.getLocaleDateTimeFormat(Locale.US, tz).format(sampleDate)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The format switched from space (U+20 to U+202F) for the non-breaking space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be undesirable...
| // H for 24-hours time format, h for 12-hours format. | ||
| if ((p.indexOf('a') == -1) && (p.indexOf('k') == -1) && (p.indexOf('B') == -1)) { | ||
| assertNotEquals("Locale:" + u_loc.getName() + " has incorrect time format " + p, -1, p.indexOf('H')); | ||
| // Locale has 12 hour time, but no am/pm marker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to include all the bad locales.
| public void testICUCurrencyCode2JDK() { | ||
| List<String> res = new ArrayList<String>(); | ||
| ImmutableSet<String> exceptions = ImmutableSet.of("MRU", "VES", "STN"); | ||
| ImmutableSet<String> exceptions = ImmutableSet.of("MRU", "VES", "STN", "XCG", "ZWG"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currency difference between JDK 22 and ICU for new currencies in 2025
|
@yoikawa FYI |
|
Thanks @steventamm! Do you need this fix as patch release? |
Update TextDirection and PluralRules with latest information, especially -1 being "one" not "other"
Use non-breaking space for "PM"
Update 12hr am test to ignore es_AR, since checkAM fixes it