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
[LWG motion 8] P2845R8 Formatting of std::filesystem::path #6910
Conversation
Consistency with what? No other The Could this be "Formatting support" like [stacktrace.format] ? |
If \tcode{charT} is \keyword{char}, | ||
\tcode{path::value_type} is \keyword{wchar_t}, and | ||
the literal encoding is UTF-8, | ||
then the escaped path is transcoded from the native encoding for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think "the escaped path" is correct here, but that's what the paper says so I'll ask LWG.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs an LWG issue, the paper is wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll leave this with you if that's OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now LWG 4070.
I was being consistent with "hash support", but sure, "formatting support" works, will go with that, thanks! |
source/iostreams.tex
Outdated
If \tcode{charT} and \tcode{path::value_type} are the same | ||
then no transcoding is performed. | ||
Otherwise, transcoding is | ||
\impldef{transcoding of the escaped path when \tcode{charT} and \tcode{path::value_type} differ}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. When the character types differ, transcoding is required whether the path is escaped or not.
\impldef{transcoding of the escaped path when \tcode{charT} and \tcode{path::value_type} differ}. | |
\impldef{transcoding of a formatted path when \tcode{charT} and \tcode{path::value_type} differ}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could address this as part of the LWG I'm going to open, but I worry that the index text will be forgotten, because it's not visible in this subclause (only the words "implementation defined" are shown here, the rest is in the annex).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please open an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't open issues against unmerged wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll use your suggestion for now, and I'll send you a reminder when you've opened the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is covered by LWG 4070 too.
4e894ff
to
f17e363
Compare
Editorial changes: * Used Oxford commas, and added commas to help the parsing of longer sentences. * Named the sections "formatter support" for consistency. * Used "fmtr" instead of "fmt" in section names to avoid confusion with existing section names. * Moved the grammar for path-format-spec to the front of the subclause, and add an introductory half-sentence.
f17e363
to
8fa6e0d
Compare
Editorial changes:
Fixes #6879.
Fixes cplusplus/papers#1516