Title
[filesys.ts] [PDTS] Append behavior underspecified if target is empty
Status
open
Section
[path.append]
Submitter
CH-11

Created on 2014-01-20.00:00:00 last changed 82 months ago

Messages

Date: 2016-01-28.01:00:35

Proposed resolution:

Change 8.4.3 [path.append]:

Effects:

Appends path::preferred_separator to pathname unless:

  • an added separator would be redundant, or

  • would change an relative path to an absolute path [Note: An empty path is relative. — end note], or

  • p.empty(), or

  • *p.native().cbegin() is a directory separator.

Then appends p.native() to pathname.

Date: 2014-02-12.00:00:00

[ 2014-02-12 LWG/SG-3 Issaquah: The text is correct as written, however adding a note will clarify this and address the NB comment. ]

Date: 2014-02-07.00:00:00

[ 2014-02-07: Beman Dawes comments ]

The second bullet item is supposed to deal with the empty() condition.

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

Is the added separator redundant in p1 /= p2, where p1 is empty? I.e. does the result start with a separator?

Suggested action:

Specify what behaviour is required.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-01-28 01:00:35adminsetmessages: + msg7749
2016-01-28 01:00:35adminsetmessages: + msg7748
2016-01-28 01:00:35adminsetmessages: + msg7747
2014-01-20 00:00:00admincreate