-
Notifications
You must be signed in to change notification settings - Fork 4
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
GB225 20.20.02.2 Format alignment specifiers vs. text direction LWG 3327 #222
Comments
SG16 plans to discuss this comment Tuesday morning: |
Reviewed Monday in LWG small group. |
SG16 in Belfast: recommend to accept. Rationale: The proposed wording describes current implementation behavior and the desired behavior for right-to-left (RTL) text. For an implementation to conform to the current wording and actually align RTL text in the directions indicated, Removing the SG16 label. This is ready for LWG. SG16 minutes are available at: |
LWG large group wed. Will write and LWG issue to update the wording. |
The associated issue is LWG 3327 |
Friday AM in LWG - accept. |
Accepted. |
std::format() alignment specifiers should be independent of text direction
The align specifiers for formatting standard integer and string types are expressed in terms of "left" and "right". However, "left alignment" as currently defined in the format() specification might end up being right-aligned when the resulting string is displayed in a RTL or bidirectional locale.
This ambiguity can be resolved by removing "left" and "right" and replacing with "start" and "end", without changing any existing implementation and without changing the intent of the feature.
Proposed change:
In [tab:format.align]:
Forces the field to be
left-aligned withinaligned to the start of the available spaceand
Forces the field to be
right-aligned withinaligned to the end of the available spaceThe text was updated successfully, but these errors were encountered: