Tcl Library Source Code

View Ticket
Login
Ticket UUID: 75d132cbb2e7b3389218f20110bdbea91f607158
Title: uri split failure
Type: Bug Version: 1.2.7
Submitter: griffin Created on: 2020-01-23 15:26:38
Subsystem: uri Assigned To:
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2020-01-23 17:25:49
Resolution: By Design Closed By: griffin
    Closed on: 2020-01-23 17:25:49
Description:
uri::split <path> "file" fails on Windows when the <path> contains a drive letter:

% uri::split C:/Users/fred/address.txt file
scheme=C
unknown scheme 'C' in 'C:/Users/fred/address.txt'

In this case, the presence of the ':' is overriding the explicit choice of "file" for the scheme. 
This use to work in version 1.2.1, but that appears to have been by accident because a regexp ignored uppercase letters.  A lowercase 'c' would fail the same way in the older release.

I would think the explicit "file" parameter should override any guessing by the code.
User Comments: griffin added on 2020-01-23 17:25:49:
Never mind.  One should read the manual first!