Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-10-23
21:48 • Closed ticket [2188665fff]: File join with a member that contain "//" ... artifact: fe48146051 user: dgp
14:56 • Ticket [2188665fff]: 5 changes artifact: e80e654407 user: dkf
06:59 • New ticket [2188665fff]. artifact: f49535c5fb user: nobody

File join with a member that contain "//" caractere sequency

Closed / Duplicate2188665fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-10-23 06:59:46
set Toto "sync://mssync.tun.com:8080/Projects"
set nothing "Tunisien"

when we execute 

->[file join $Toto $nothing]

We get

->sync:/mssync.tun.com:8080/Projects/Tunisien

and Not 

->sync://mssync.tun.com:8080/Projects/Tunisien

Can i know more about this bug

Thanks
dkfplain2008-10-23 14:56:22
Standard native path normalization converts // to / (hence the effect you see) and you've apparently not installed any extension that teaches Tcl that sync:// is a special filesystem root.

The tcllib uri package is probably more use, so long as you convert the sync: prefix to http: during processing.
dgpplain2008-10-23 21:48:44
This matter is already raised in
2187116.  Followup there.
Log in (anonymous is fine) to add a comment.