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

[Editorial] Clarify UTF-8 character literal definition #1678

Closed
wants to merge 1 commit into from

Conversation

dhouck
Copy link

@dhouck dhouck commented Jul 21, 2017

In [lex.ccon], the definition of UTF-8 character literals almost parallels the definition of char16_t literals, but there are a few differences.

One of the differences was that the definition of UTF-8 character literals was missing a few words, making a later pronoun lack an antecedent which made sense.

The definition of UTF-8 character literals almost paralleled that of
char16_t character literals, but there were a few differences; this
commit removes those.

One of the differences in particular was that the specification of the
value of a UTF-8 character literal was missing the phrase "containing a
single c-char", which is necessary both as the antecedent of "its" later
in the sentence.
is representable with a single UTF-8 code unit
(that is, provided it is in the C0 Controls and Basic Latin Unicode block).
is representable with a single UTF-8 code unit.
(That is, provided it is in the C0 Controls and Basic Latin Unicode block.)
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to change the char16_t wording to incorporate the parenthetical in the prior sentence rather than changing this wording to split it into a separate sentence.

Copy link
Author

Choose a reason for hiding this comment

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

I would have too, but I chose this way because the char16_t wording has been around for longer. I can change it to the other version for both if other people prefer it too.

I didn’t see in the How to submit an editorial issue page whether you’d prefer an amended commit or a separate one; I would guess amended, and that I should also rebase while I’m at it?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, please amend and rebase this PR.

@tkoeppe tkoeppe added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Nov 12, 2017
@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 24, 2017

Please reopen if you're still interested in this and have addressed the above comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants