From d0fbe7f27c205a3ea17b1c1b97f961f220a6e8ff Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 29 Mar 2024 13:22:41 +0000 Subject: (cherry-pick) Added minor detail to file attr -shortname handling docs. --- doc/file.n | 6 ++++-- generic/tclInt.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/file.n b/doc/file.n index 0ea53f4..baaee6d 100644 --- a/doc/file.n +++ b/doc/file.n @@ -71,8 +71,10 @@ expand each path element to its long version. This attribute cannot be set. \fB\-readonly\fR gives the value or sets or clears the readonly attribute of the file. \fB\-shortname\fR gives a string where every path element is replaced with its short (8.3) version of the -name. This attribute cannot be set. \fB\-system\fR gives or sets or -clears the value of the system attribute of the file. +name if possible. For path elements that cannot be mapped to short +names, the long name is retained. This attribute cannot be set. +\fB\-system\fR gives or sets or clears the value of the system +attribute of the file. .PP On Mac OS X and Darwin, \fB\-creator\fR gives or sets the Finder creator type of the file. \fB\-hidden\fR gives or sets or clears diff --git a/generic/tclInt.h b/generic/tclInt.h index 7efaf80..a6e8dfd 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -4007,7 +4007,7 @@ MODULE_SCOPE void TclDbInitNewObj(Tcl_Obj *objPtr, const char *file, #define TclUtfToUCS4(src, ucs4Ptr) \ (((UCHAR(*(src))) < 0x80) ? \ ((*(ucs4Ptr) = UCHAR(*(src))), 1) \ - : TclpUtfToUCS4(src, ucs4Ptr)) + : TclpUtfToUCS4(src, ucs4Ptr)) /* *---------------------------------------------------------------- -- cgit v0.12