You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appending to an UNC path with only the host name (e.g., \\server) doesn't append the preferred separator before the appended path.
If the UNC path contains share names (e.g., \\server\share), appending works fine.
The text was updated successfully, but these errors were encountered:
rikyoz
changed the title
Wrong append to UNC paths with only the host name
Wrong result when appending to UNC paths with only the host name
Jan 23, 2025
Describe the bug
Appending to an UNC path with only the host name (e.g.,
\\server
) doesn't append the preferred separator before the appended path.If the UNC path contains share names (e.g.,
\\server\share
), appending works fine.To Reproduce
Code:
Output:
Expected behavior
When appending to the path, the preferred path separator should also be appended before the appended path (in the example,
\\\\server\\abc
).Additional context
Godbolt
The text was updated successfully, but these errors were encountered: