Skip to content

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Oct 22, 2018

The engine will roll a change that makes uninitialized locales null very soon, but this still works without the change.

Engine Roll:
git log --oneline --no-merges 4c79e42..cdd592f
cdd592f Reland 'Pass null instead of 'none' locale' (#6632)
2cd8920 Roll src/third_party/skia b1a002e850e1..327955b1ba19 (12 commits) (#6631)
edfe024 13771 - iOS dictation bug (#6607)
cadf440 Roll src/third_party/skia b9998cdceec7..b1a002e850e1 (13 commits) (#6626)

@GaryQian GaryQian requested review from tvolkert and yjbanov October 22, 2018 18:01

// Initial WidgetTester locale is new Locale('', '')
// Initial WidgetTester locale is null due to no platform intitializing it.
await tester.binding.setLocale('', '');
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if we don't do this? Can we adjust the expectations below? Namely, it seems like $locale shouldn't return "_", so we should probably adjust the toString() implementation of Locale

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this, the null handling (after the engine-side change) resolves the locale to the first supported locale, which is en_US. I'll go ahead and check for en_US and roll the engine with this test change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There should be no more Locale("", "") anymore, at least not produced by flutter.

@yjbanov
Copy link
Contributor

yjbanov commented Oct 22, 2018

lgtm

@GaryQian GaryQian changed the title Support null locale before locale initialization. Support null locale before locale initialization, Roll engine to cdd592f5be97e824 Oct 22, 2018
@GaryQian
Copy link
Contributor Author

Closing and reopening to attempt to force in latest changes (github is not updating this PR)

@GaryQian GaryQian closed this Oct 23, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants