misleading Tcl_TranslateFileName docs
Closed / Fixed775220ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-21 19:29:12
Documentation for Tcl_TranslateFileName says: "This utility procedure translates a file name to a form suitable for passing to the local operating system. " But that's not entirely true. Notably the string returned by T_TFN is in Tcl's internal UTF-8 encoding. For many platforms, it must be converted to the system encoding before passing on to the operating system.
vincentdarleyplain2003-07-22 05:10:54
Logged In: YES user_id=32170 You're right. In fact something I only really realised after the whole vfs layer was put in is that the 'Translate' stuff is only there to provide a layer to deal with things like '~' in a cross- platform way. With the new Vfs code the whole concept of a 'translated' path is rather pointless --- normalized or native paths are the two important items. I'll update the documentation accordingly.
vincentdarleyplain2003-07-28 19:16:54
Logged In: YES user_id=32170 Committed improved documentation, clarifying both the need for utf-8 conversion, and the suggestion that other functions are better suited to most purposes.
Log in (anonymous is fine) to add a comment.