Skip to content

Conversation

@german-one
Copy link
Contributor

@german-one german-one commented Mar 4, 2020

Summary of the Pull Request

  • don't decrement backIter ahead of the string begin
  • ensure partial multibyte characters are still captured correctly if the state class gets them byte by byte

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

passes unit tests

@german-one german-one changed the title ensure til::u8u16 correctly handles receiving lead, and continuation … ensure til::u8u16 correctly handles receiving lead, and continuation bytes in separate operations Mar 4, 2020
@miniksa miniksa added Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Product-Conhost For issues in the Console codebase Product-Terminal The new Windows Terminal. labels Mar 4, 2020
@DHowett-MSFT DHowett-MSFT changed the title ensure til::u8u16 correctly handles receiving lead, and continuation bytes in separate operations ensure til::u8u16 handles lead & continuation bytes in separate txns Mar 4, 2020
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

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

thanks for the quick fix!

@DHowett-MSFT DHowett-MSFT changed the title ensure til::u8u16 handles lead & continuation bytes in separate txns ensure u8u16 handles lead & continuation bytes in separate txns Mar 4, 2020
@DHowett-MSFT DHowett-MSFT merged commit e58a648 into microsoft:master Mar 4, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/german_one/u8u16_backiter branch March 4, 2020 19:15
@DHowett-MSFT DHowett-MSFT restored the dev/german_one/u8u16_backiter branch March 4, 2020 19:15
@DHowett-MSFT DHowett-MSFT deleted the dev/german_one/u8u16_backiter branch March 4, 2020 19:15
@DHowett-MSFT DHowett-MSFT restored the dev/german_one/u8u16_backiter branch March 4, 2020 19:15
@DHowett-MSFT DHowett-MSFT deleted the dev/german_one/u8u16_backiter branch March 4, 2020 19:25
@german-one
Copy link
Contributor Author

Thank you for giving me the chance to resolve my own mistakes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Product-Conhost For issues in the Console codebase Product-Terminal The new Windows Terminal.

Projects

None yet

3 participants