Skip to content

Conversation

@stasoid
Copy link

@stasoid stasoid commented Jan 2, 2023

This PR makes console interpreter behavior on files with non-UNIX newlines match the behavior of online interpreter in Chrome/Firefox. Browsers replace \r\n and single \r with \n when pasting into textarea.

Also it fixes handling of Unicode characters beyond U+FFFF (they were treated as two characters before).

Also some improvements to README.md.

…ch the behavior of online interpreter in Chrome/Firefox.

Chrome and Firefox replace \r\n and single \r with \n when pasting into textarea.
This program should print 2:
"😊"v
    >1n;
   >2n;
@stasoid stasoid changed the title Dealing with weird newlines Fix handling non-UNIX newlines and Unicode surrogates Jan 3, 2023
@stasoid stasoid changed the title Fix handling non-UNIX newlines and Unicode surrogates Fix handling of non-UNIX newlines and Unicode surrogates Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant