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

Incorrect behavior of length(“\0\uff”) #10957

Closed
ScottPJones opened this issue Apr 23, 2015 · 2 comments
Closed

Incorrect behavior of length(“\0\uff”) #10957

ScottPJones opened this issue Apr 23, 2015 · 2 comments
Labels
unicode Related to unicode characters and encodings

Comments

@ScottPJones
Copy link
Contributor

This returns 0, and is not consistent with:
length(“\0q”) -> 2
length(utf16(“\0q”) -> 2
length(utf32(“\0q”) -> 2
length(utf16(“\0\uff) -> 2

@jiahao
Copy link
Member

jiahao commented Apr 23, 2015

I suspect this is the root cause of #10958. Closing as duplicate.

@ScottPJones your editor tries to convert input into smart quotes, which makes it hard to copy-paste code into the REPL for testing.

Also, please look at GitHub's triple-backtick syntax for encasing code snippets.

@jiahao jiahao closed this as completed Apr 23, 2015
@jiahao jiahao added the unicode Related to unicode characters and encodings label Apr 23, 2015
@pao
Copy link
Member

pao commented Apr 23, 2015

Also, please look at GitHub's triple-backtick syntax for encasing code snippets.

https://guides.github.com/features/mastering-markdown/ (Examples section, click "Code")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unicode Related to unicode characters and encodings
Projects
None yet
Development

No branches or pull requests

3 participants