summaryrefslogtreecommitdiffstats
path: root/tcl8.6/doc/Translate.3
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-10-17 19:50:58 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-10-17 19:50:58 (GMT)
commit9b7a6c3507ea3383c60aaecb29f873c9b590ccca (patch)
tree82ce31ebd8f46803d969034f5aa3db8d7974493c /tcl8.6/doc/Translate.3
parent87fca7325b97005eb44dcf3e198277640af66115 (diff)
downloadblt-9b7a6c3507ea3383c60aaecb29f873c9b590ccca.zip
blt-9b7a6c3507ea3383c60aaecb29f873c9b590ccca.tar.gz
blt-9b7a6c3507ea3383c60aaecb29f873c9b590ccca.tar.bz2
rm tcl/tk 8.6.7
Diffstat (limited to 'tcl8.6/doc/Translate.3')
-rw-r--r--tcl8.6/doc/Translate.371
1 files changed, 0 insertions, 71 deletions
diff --git a/tcl8.6/doc/Translate.3 b/tcl8.6/doc/Translate.3
deleted file mode 100644
index 38831d3..0000000
--- a/tcl8.6/doc/Translate.3
+++ /dev/null
@@ -1,71 +0,0 @@
-'\"
-'\" Copyright (c) 1989-1993 The Regents of the University of California.
-'\" Copyright (c) 1994-1998 Sun Microsystems, Inc.
-'\"
-'\" See the file "license.terms" for information on usage and redistribution
-'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-'\"
-.TH Tcl_TranslateFileName 3 8.1 Tcl "Tcl Library Procedures"
-.so man.macros
-.BS
-.SH NAME
-Tcl_TranslateFileName \- convert file name to native form and replace tilde with home directory
-.SH SYNOPSIS
-.nf
-\fB#include <tcl.h>\fR
-.sp
-char *
-\fBTcl_TranslateFileName\fR(\fIinterp\fR, \fIname\fR, \fIbufferPtr\fR)
-.SH ARGUMENTS
-.AS Tcl_DString *bufferPtr in/out
-.AP Tcl_Interp *interp in
-Interpreter in which to report an error, if any.
-.AP "const char" *name in
-File name, which may start with a
-.QW ~ .
-.AP Tcl_DString *bufferPtr in/out
-If needed, this dynamic string is used to store the new file name.
-At the time of the call it should be uninitialized or free. The
-caller must eventually call \fBTcl_DStringFree\fR to free up
-anything stored here.
-.BE
-.SH DESCRIPTION
-.PP
-This utility procedure translates a file name to a platform-specific form
-which, after being converted to the appropriate encoding, is suitable for
-passing to the local operating system. In particular, it converts
-network names into native form and does tilde substitution.
-.PP
-However, with the advent of the newer \fBTcl_FSGetNormalizedPath\fR and
-\fBTcl_FSGetNativePath\fR, there is no longer any need to use this
-procedure. In particular, \fBTcl_FSGetNativePath\fR performs all the
-necessary translation and encoding conversion, is virtual-filesystem
-aware, and caches the native result for faster repeated calls.
-Finally \fBTcl_FSGetNativePath\fR does not require you to free anything
-afterwards.
-.PP
-If
-\fBTcl_TranslateFileName\fR has to do tilde substitution or translate
-the name then it uses
-the dynamic string at \fI*bufferPtr\fR to hold the new string it
-generates.
-After \fBTcl_TranslateFileName\fR returns a non-NULL result, the caller must
-eventually invoke \fBTcl_DStringFree\fR to free any information
-placed in \fI*bufferPtr\fR. The caller need not know whether or
-not \fBTcl_TranslateFileName\fR actually used the string; \fBTcl_TranslateFileName\fR
-initializes \fI*bufferPtr\fR even if it does not use it, so the call to
-\fBTcl_DStringFree\fR will be safe in either case.
-.PP
-If an error occurs (e.g. because there was no user by the given
-name) then NULL is returned and an error message will be left
-in the interpreter's result.
-When an error occurs, \fBTcl_TranslateFileName\fR
-frees the dynamic string itself so that the caller need not call
-\fBTcl_DStringFree\fR.
-.PP
-The caller is responsible for making sure that the interpreter's result
-has its default empty value when \fBTcl_TranslateFileName\fR is invoked.
-.SH "SEE ALSO"
-filename(n)
-.SH KEYWORDS
-file name, home directory, tilde, translate, user