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

Fix issue 1357 - permit \uFFFE and \uFFFF codepoints #5624

Merged
merged 1 commit into from Apr 14, 2016

Conversation

DmitryOlshansky
Copy link
Member

Just like phobos does. There is no need to disallow them they are internal use but valid regardless.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
1357 Cannot use FFFF and FFFE in Unicode escape sequences.

@@ -22,9 +22,6 @@ bool utf_isValidDchar(dchar c)
// surrogate pairs
if (0xD800 <= c && c <= 0xDFFF)
return false;
// non-characters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a comment here saying specifically that FFFE and FFFF are allowed for internal use, so the next maintainer won't 'fix' it back again. A link to the discussion https://issues.dlang.org/show_bug.cgi?id=1357 would be helpful as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dazz!

@WalterBright
Copy link
Member

Auto-merge toggled on

@WalterBright WalterBright merged commit f0fa398 into dlang:master Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants