Tcl Source Code

View Ticket
Login
Ticket UUID: 2188665
Title: File join with a member that contain "//" caractere sequency
Type: Bug Created on: 2008-10-23 06:59:46
Submitter: nobody Assigned to: dgp
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2008-10-23 21:48:44
Status: Closed Closed by: dgp
Resolution: Duplicate Closed on: 2008-10-23 14:48:44
Version: None
Description:
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
User Comments:
dkf added on 2008-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.

dgp added on 2008-10-23 21:48:44:
This matter is already raised in
2187116.  Followup there.