Skip to content

Conversation

@steventamm
Copy link
Contributor

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

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>
Copy link
Contributor Author

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));
Copy link
Contributor Author

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));
Copy link
Contributor Author

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

Copy link
Contributor Author

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.
Copy link
Contributor Author

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");
Copy link
Contributor Author

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

@steventamm
Copy link
Contributor Author

@yoikawa FYI

@yoikawa yoikawa merged commit dde2420 into salesforce:main Feb 25, 2025
4 checks passed
@yoikawa
Copy link
Contributor

yoikawa commented Feb 25, 2025

Thanks @steventamm! Do you need this fix as patch release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants