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

Spanning algorithm assumes all codepoints have width equal to 1 #28899

Closed
nagisa opened this issue Oct 7, 2015 · 1 comment
Closed

Spanning algorithm assumes all codepoints have width equal to 1 #28899

nagisa opened this issue Oct 7, 2015 · 1 comment

Comments

@nagisa
Copy link
Member

nagisa commented Oct 7, 2015

/tmp/test.rs:2:23: 2:23 error: invalid unicode character escape
/tmp/test.rs:2     let a = "きききききき\u{}";
                                     ^
/tmp/test.rs:3:37: 3:37 error: invalid unicode character escape
/tmp/test.rs:3     let a = "ōōōōōōōōōō\u{}";
                                                   ^
error: aborting due to 2 previous errors

the first example has several codepoints that occupy space of more than one regular ASCII character and 2nd example has several codepoints that occupy no space (combining characters).

@huonw
Copy link
Member

huonw commented Oct 7, 2015

This is essentially a dupe of #8706. In particular, this issue (and that one) was fixed in #21499, but #24428 reverted it when moving the unicode functionality out.

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

No branches or pull requests

2 participants