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-13786 Fix addLikelySubtags/minimizeSubtags #1140
ICU-13786 Fix addLikelySubtags/minimizeSubtags #1140
Conversation
f52b74f
to
e93c2c5
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
e93c2c5
to
6f68fc7
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
PTAL I change the name of "outSink" back to "sink" but keep my other rename of "sink" of local variable as baseSink, tagSink and so on so it is clear which one is the local one and which one is the 'sink' which intend for the output. I also change the nullptr back to NULL as requested by roubert. |
ping |
1 similar comment
ping |
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.
lgtm pse squash
19a2496
to
acbdd2e
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
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.
lgtm
cannot figure out which one is not addressed in the newer version
ICU-13786 Fix addLikelySubtags/minimizeSubtags #1140 Bug: https://unicode-org.atlassian.net/browse/ICU-13786 PR: unicode-org/icu#1140 Bug: v8:10448 Change-Id: Id5e8b0037bbe76941fa89f7564d49cf27a990b2e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/2231777 Reviewed-by: Jungshik Shin <jshin@chromium.org>
https://github.com/tc39/test262/blob/master/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js
a) Make _ulocimp_addLikelySubtags propagate matching error so
minimizeSubtags can just return the no matching case unchanged.
b) rename the sink variable to outSink and local sink variables to
avoid confusion and mistake
c) Correct the implementation of minimizeSubtags by using the lang,
region, script of the "max" instead of the localeID in the algorithm.
Checklist