-
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
NL375 D.19 [depr.fs.path.factory] Clarify that std::string is not good for UTF-8 LWG 3328 #371
Comments
SG16 plans to discuss this comment Tuesday morning: |
SG16 in Belfast: Recommend to accept with a modification to update the example in [depr.fs.path.factory]p4 to state that Rationale: The example code is representative of historic use of Removing the SG16 label. This now goes to LWG. Minutes are available at: |
New LWG issue submitted to update wording. |
The associated issue is LWG 3328 |
Full group in Prague Monday afternoon. Consensus to prioritize issue as P0. |
Accepted. LWG3328 will be moved on Saturday in Prague. |
Example in deprecated section implies that std::string is the type to use for utf8 strings.
[Example: A string is to be read from a database that is encoded in UTF-8, and used to create a
directory using the native encoding for filenames:
namespace fs = std::filesystem;
std::string utf8_string = read_utf8_data();
fs::create_directory(fs::u8path(utf8_string));
Proposed change:
Add clarification that std::string is the wrong type for utf8 strings
The text was updated successfully, but these errors were encountered: