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-20310 omit "-true" in toLanguageTag #952

Merged
merged 1 commit into from Dec 30, 2019

Conversation

FrankYFTang
Copy link
Contributor

Checklist

@@ -3257,6 +3257,11 @@ public String toLanguageTag() {
subtags = tag.getExtensions();
for (String s : subtags) {
buf.append(LanguageTag.SEP);
if (s.endsWith("-true")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not be more logical to do this inside of LanguageTag.canonicalizeExtension() instead?

roubert
roubert previously approved these changes Dec 20, 2019
@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 FrankYFTang merged commit 79fac50 into unicode-org:master Dec 30, 2019
@FrankYFTang FrankYFTang deleted the ICU-20310-true branch January 4, 2020 05:00
manuelpuyol added a commit to manuelpuyol/hermes that referenced this pull request Mar 21, 2024
Versions before 67 had a bug with defaults, where they were adding
the `yes` and `true` defaults to Language Tags. See
unicode-org/icu#952 for their fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants