Skip to content
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

repl: surrogate pair upsets repl / terminal #690

Closed
bnoordhuis opened this issue Feb 2, 2015 · 14 comments
Closed

repl: surrogate pair upsets repl / terminal #690

bnoordhuis opened this issue Feb 2, 2015 · 14 comments
Labels
confirmed-bug Issues with confirmed bugs. repl Issues and PRs related to the REPL subsystem. stalled Issues and PRs that are stalled.

Comments

@bnoordhuis
Copy link
Member

$ out/Release/iojs
> Buffer([0,0xD8,0,0xDC]).toString('utf16le')
'
# screen freezes

The REPL still accepts input but no longer echoes it. Typing in process.exit() cleanly shuts down the process but the terminal isn't reset, leaving it in an unusable state until you run reset(1).

@bnoordhuis bnoordhuis added the repl Issues and PRs related to the REPL subsystem. label Feb 2, 2015
@jasnell
Copy link
Member

jasnell commented Feb 2, 2015

Unable to replicate the behavior in io.js 1.0.4 on macosx 10.10.

@bnoordhuis
Copy link
Member Author

Sorry, I should have mentioned that this is with v1.x HEAD and that I can reproduce it with the stock FC21 terminal emulator and with the OS X 10.8 terminal emulator when ssh'ing into an FC21 box but not when run locally - and only when TERM=screen, TERM=xterm works.

@jasnell
Copy link
Member

jasnell commented Feb 2, 2015

Ah... Just for completeness... did you double check the locale on the FC21 box?

@bnoordhuis
Copy link
Member Author

It's en_US.UTF-8. Starting screen with e.g. LC_ALL=C doesn't make a difference. I'm not sure if screen is locale-aware, though.

@Fishrock123
Copy link
Member

Seems to work fine on mine...?

screen shot 2015-04-04 at 6 30 55 pm

(I can't seem to copy that character to my clipboard though..)

@Fishrock123
Copy link
Member

but not when run locally - and only when TERM=screen

Oh, missed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. repl Issues and PRs related to the REPL subsystem. stalled Issues and PRs that are stalled.
Projects
None yet
Development

No branches or pull requests

7 participants