Blink: TestFlight v10.306.2: Unicode characters in paste result in mojibake

Created on 18 May 2018  Â·  3Comments  Â·  Source: blinksh/blink

This problem is newly-arisen in the TestFlight version of Blink; the App Store version does not exhibit this behavior. It is possibly a regression but I have not attempted this in other versions to find out.

Steps to reproduce:

  1. Select and copy the following text block from an iOS browser:
Certain text, such as letters with diacritics(åéîøüùñ), elipses (…), dashes (—, –) and other non-ASCII symbols (e.g., × † ÷) get pasted incorrectly.¹
—
¹ Unlike in prior versions of Blink.
  1. Open a Blink ssh or mosh session to a host capable of handling UTF-8 input and output streams.
  2. Execute a program able to accept free input (such as an editor or cat > /dev/null).
  3. Paste (with ⌘ V or the long-press menu item).

Expected results:

The following text pasted:

Certain text, such as letters with diacritics(åéîøüùñ), elipses (…), dashes (—, –) and other non-ASCII symbols (e.g., × † ÷) get pasted incorrectly.¹
—
¹ Unlike in prior versions of Blink.

Actual results:

Mojibake in the pasted results, like:

Certain text, such as letters with diacritics(åéîøüùñ), elipses (â¦), dashes (â, â) and other non-ASCII symbols (e.g., Ã â  Ã·) get pasted incorrectly.¹                                    
â                                                                                                                                                                                        

¹ Unlike in prior versions of Blink.

Note that _copying_ Unicode characters _from_ Blink and pasting into another iOS app seems to work correctly.

But even copying these characters off the Blink terminal (if you can produce them another way) and immediately pasting them back results in the mojibake. This seems to indicate an NFC/NFD normalization mismatch.

RTT

Most helpful comment

Hi @treyharris,

Thank you for your feedback and great repro steps. Fix will be on next release.

All 3 comments

Hi @treyharris,

Thank you for your feedback and great repro steps. Fix will be on next release.

Can confirm fix works in today's TestFlight 10.329 (1). Thanks!

Thank you. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zaptrem picture zaptrem  Â·  4Comments

peppy picture peppy  Â·  4Comments

carloscabanero picture carloscabanero  Â·  4Comments

jra picture jra  Â·  5Comments

jwr picture jwr  Â·  3Comments