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

Never use fallback for baked segmentation data #4510

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

robertbastian
Copy link
Member

Fixes #4489

sffc
sffc previously approved these changes Jan 4, 2024
provider/datagen/src/driver.rs Show resolved Hide resolved
if fallback == FallbackMode::Runtime {
// segmenter uses hardcoded locales internally, so fallback is not necessary.
// TODO(#4511): Use auxiliary keys for segmenter
if fallback == FallbackMode::Runtime && !key.path().get().starts_with("segmenter") {
Copy link
Member

Choose a reason for hiding this comment

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

Optional

Suggested change
if fallback == FallbackMode::Runtime && !key.path().get().starts_with("segmenter") {
if fallback == FallbackMode::Runtime && !key.path().get().starts_with("segmenter/") {

@robertbastian robertbastian merged commit 0c9f657 into unicode-org:main Jan 4, 2024
29 checks passed
@robertbastian robertbastian deleted the seg branch January 4, 2024 15:16
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.

Problem with icu_segmenter and ICU4X_DATA_DIR
2 participants