Skip to content
Tcl Source Code View Ticket
Login

View Ticket

zipfs canonical two argument form produces garbage in result

Closed / Fixed01d8f30342295486658798851bacf2dd26a3422bCreated 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-13 12:02:45

Leaving aside the question of zipfs canonical being implemented and documented in the manpages without being TIP'ed, it produces garbage in its two argument form.

% zipfs canonical mtpt
//zipfs:/mtpt
% zipfs canonical mtpt file
//zipfs:/ú½¼ûfile
% codepoints [zipfs canonical mtpt file]
U+00002F U+00002F U+00007A U+000069 U+000070 U+000066 U+000073 U+00003A U+00002F U+0000FA U+0000BD U+0000BC U+0000FB U+000066 U+000069 U+00006C U+000065
Referenced by5
apnadkarniplain2023-09-13 16:48:26
Fixed this particular issue of pointer miscalculation. Still lots of issues with undefined semantics of the command. Are multiple / to be collapsed? Are drive letters intentionally dropped? Is it intentional that only \\ is considered UNC but not // ?

Leaving open as a reminder to revisit semantics.
apnadkarniplain2023-09-15 15:46:33
Fixed in [2fd1277ae3].
apnadkarni Closed ticket [01d8f30342]. [History diff]2023-09-15 15:46:44
Log in (anonymous is fine) to add a comment.