Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.