Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@shoryukenn
Copy link
Contributor

@shoryukenn shoryukenn commented Sep 5, 2019

We optimized the character handling so that it can accept and display Unicode characters well.

We use the standard library: codecvt, which is already used in flutter/fml. codecvt handles complex and error-prone character conversion logic that was previously handled separately on each platform. (Example: utf8/16/32, wchar_t(16/32)...)

ISSUE: flutter/flutter#30661

WXWorkCapture_15677038421072

@gspencergoog
Copy link
Contributor

Whoa, we used char before to add code points? That's so wrong... Thank you for fixing this!

Could you please add some tests that test adding non-ASCII Unicode strings?

@stuartmorgan-g stuartmorgan-g self-requested a review September 5, 2019 18:21
@stuartmorgan-g
Copy link
Contributor

Whoa, we used char before to add code points? That's so wrong...

FWIW, the goal at the time of writing was "just get basic ASCII input working". We knew it would need to be rewritten.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Looks good; this should be a significant improvement. Thanks!

I'll summarize the work I'm aware is remaining in the bug; please add anything else that you know of.

@stuartmorgan-g stuartmorgan-g merged commit 38d545e into flutter:master Sep 8, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 9, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 11, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 11, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 11, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 11, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants