-
Notifications
You must be signed in to change notification settings - Fork 227
Update ICU data to 78 #7025
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 ICU data to 78 #7025
Conversation
provider/source/src/lib.rs
Outdated
let url = if tag >= "release-78.1" { | ||
format!( | ||
"https://github.com/unicode-org/icu/releases/download/{tag}/icu4x-exportdata-{}.zip", | ||
tag.replace("release-", "") | ||
) | ||
} else { | ||
format!( | ||
"https://github.com/unicode-org/icu/releases/download/{tag}/icuexportdata_{}.zip", | ||
tag.replace('/', "-") | ||
) | ||
}; |
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.
Suggestion:
- Keep the
/
to-
substitution, in addition to the "release-" substitution - Special-case "release-77.1" and any other releases that this datagen version is compatible with
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.
Based on the agreement with the ICU TC, this change is no longer necessary.
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.
AFAICT, this pessimizes the compressibility check that before this change was formulated to validate the length upon construction so that bound checking was elided at access time. Perhaps that's not super-important, but it still seems bad to break that property if we could avoid breaking that property.
components/collator/src/provider.rs
Outdated
let field = self | ||
.last_primaries | ||
.get(MaxVariable::Currency as usize + usize::from(b >> 4)) | ||
.unwrap_or_else(|| CollationSpecialPrimaries::HARDCODED_FALLBACK[usize::from(b >> 4)]); |
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.
To keep the above comment true, shouldn't the compressibility bits be referenced as a fixed-length array in the collator constructor instead of doing slice access on every call to this method?
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.
done
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. Thanks.
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.
Please wait for @hsivonen to approve the collator changes (edit: looks like he already did)
#6787
Fixes #7034