-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Support null locale before locale initialization, Roll engine to cdd592f5be97e824 #23375
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
Conversation
|
|
||
| // Initial WidgetTester locale is new Locale('', '') | ||
| // Initial WidgetTester locale is null due to no platform intitializing it. | ||
| await tester.binding.setLocale('', ''); |
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.
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
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.
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.
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.
There should be no more Locale("", "") anymore, at least not produced by flutter.
|
Closing and reopening to attempt to force in latest changes (github is not updating this PR) |

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)