Skip to content
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

ICU-22434 Not calling setFirstDayOfWeek(MONDAY) if the locale has fw #2523

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

FrankYFTang
Copy link
Contributor

@FrankYFTang FrankYFTang commented Jul 6, 2023

The Calendar constructor already take care of the fw override. We should not set the first day of week for iso8601 to Monday if we have a fw keyword/type in the locale.

Also fix a bug which caused by an incorrect calendar= keyword extraction code which cannot handle more than one keyword/type, by replacing the correct one from Locale class.

Checklist
  • Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22434
  • Required: The PR title must be prefixed with a JIRA Issue number.
  • Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
  • Required: Each commit message must be prefixed with a JIRA Issue number.
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • icu4c/source/test/intltest/caltest.cpp is different
  • icu4c/source/test/intltest/caltest.h is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

pedberg-icu
pedberg-icu previously approved these changes Jul 6, 2023
The Calendar constructor already take care of the fw override.
We should not set the first day of week for iso8601 to Monday if
we have a fw keyword/type in the locale.

ICU-22434 Fix incorrect calendar keyword extraction
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@FrankYFTang
Copy link
Contributor Author

@macchiati Mark - could you take a look at the unit test and approve if you think that is the right expected outcome for these cases.

Thanks.

@FrankYFTang FrankYFTang merged commit 5826bf7 into unicode-org:main Jul 13, 2023
101 checks passed
@FrankYFTang FrankYFTang deleted the ICU-22434-fw branch July 13, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants