Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-04-23
19:07 • Closed ticket [931823ffff]: Tcl_FSPathSeparator() inconsistency plus 7 other... artifact: b7a4fb118a user: vincentdarley
2004-04-08
23:39 • Ticket [931823ffff]: 4 changes artifact: 2baceb3b6b user: vincentdarley
15:51 • New ticket [931823ffff]. artifact: 35610794dc user: dgp

Tcl_FSPathSeparator() inconsistency

Closed / Fixed931823ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-08 15:51:59
If a Tcl_Filesystem does not define
a Tcl_FSFilesystemSeparatorProc
then all internal parts of the core
forgive that and assume a separator
of "/" for the filesystem.  That seems
fine.

However, the result of Tcl_FSPathSeparator()
on a path in such a filesystem does not
agree.  It will return NULL, which accurately
reflects that the filesystem has left its separator
undefined, but doesn't accurately reflect what
the core will use as a separator on that path.

I think it would be better for Tcl_FSPathSeparator()
to fill in the "/" default.  A nice side effect is that
this would make the definition of a
Tcl_FSFilesystemSeparatorProc truly
optional for most filesystems.
vincentdarleyplain2004-04-08 23:39:07
Logged In: YES 
user_id=32170

Sounds like a sensible suggestion -- do you have a patch
available?
vincentdarleyplain2004-04-23 19:07:31
Logged In: YES 
user_id=32170

Thanks -- applied fix to cvs.
Log in (anonymous is fine) to add a comment.