sg16-unicode / sg16

SG16 overview and general information
46 stars 5 forks source link

Specify what constitutes a new-line #70

Open tahonermann opened 3 years ago

tahonermann commented 3 years ago

The C++ standard defines behavior that depends on the presence of a new-line, but does not define what characters or character sequences constitute a new-line. Uses of the "newline" and "new-line" terms appear in:

P2178 proposal 2 sought to clarify the set of characters and character sequences that constitute new-lines and proposed the following set. This set was derived from information in UAX #14.

This set matches the guidance in Unicode 13, chapter 5.8, "Newline Guidelines".

When addressing this issue, we should settle on one of either "newline" or "new-line". The Unicode standard uses "newline". ISO 10646 only mentions newline in character names.

tahonermann commented 3 years ago

P2295 addresses this. The wording in revision 0 proposes the same set of characters as in P2178.

tahonermann commented 3 years ago

The following CWG issues are relevant with regard to the form of a newline:

tahonermann commented 3 years ago

Later revisions of P2295 no longer address this.

cor3ntin commented 3 years ago

P2348 - of which an early draft is there https://isocpp.org/files/papers/D2348R0.pdf rewords the handling of whitspaces and new lines without extending the set

The following CWG issues are relevant with regard to the form of a newline:

I hope we can address all of these in P2348