-
Notifications
You must be signed in to change notification settings - Fork 184
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
Unclear what "ExtraneousLocale" error means #4165
Comments
Hmm, something's wrong here.
#[icu_provider::data_struct(marker(
CollationDiacriticsV1Marker,
"collator/dia@1",
extension_key = "co",
fallback_by = "collation",
fallback_supplement = "collation",
singleton,
))]
// ...
pub struct CollationDiacriticsV1<'data> but the rest of the configurations, as well as the way the key is loaded, suggest that it should not be singleton: let tailored_diacritics = metadata.tailored_diacritics();
let diacritics: DataPayload<CollationDiacriticsV1Marker> = provider
.load(if tailored_diacritics {
req
} else {
Default::default()
})?
.take_payload()?; Is it wrong that it is labeled as a singleton key? |
We should add a test that singleton keys don't have data in datagen that is non-singleton. |
Filed two follow-up issues for holes in our testing infrastructure that let something like this leak through. I also suspect that the upcoming Unicode Conformance test could have caught this since it has broader locale coverage. |
I double-checked the other collator keys labaled as singleton and verified that they are correctly being loaded as singleton, so this problem is isolated only to the "collator/dia@1" data key. |
https://docs.rs/icu_collator/1.3.3/icu_collator/index.html https://github.com/unicode-org/icu4x/releases/tag/ind%2Ficu_collator%401.3.3 |
Thanks a lot! |
My collator works with all languages but
vi
:I get the following message
I can't figure out what this error means. Since it's an provider error, is it an error in the data?
I got the data via
DatagenProvider::new_latest_tested()
.The text was updated successfully, but these errors were encountered: