From 0fa57d5efc72eef6d6cc9528fbff31a060fe5497 Mon Sep 17 00:00:00 2001 From: dkf Date: Thu, 4 Mar 2010 13:34:00 +0000 Subject: Added note about transfer types, prompted by question on Tcler's Chat. --- ChangeLog | 4 ++++ doc/clipboard.n | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 163077a..d5c6158 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-04 Donal K. Fellows + + * doc/clipboard.n: Added note about STRING vs. UTF8_STRING types. + 2010-02-21 Donal K. Fellows * generic/tkText.c (TextEditCmd): [Bug 1799782]: Refix this, so that diff --git a/doc/clipboard.n b/doc/clipboard.n index d0ea02b..46c2a00 100644 --- a/doc/clipboard.n +++ b/doc/clipboard.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: clipboard.n,v 1.16 2007/12/13 15:23:43 dgp Exp $ +'\" RCS: @(#) $Id: clipboard.n,v 1.16.2.1 2010/03/04 13:34:00 dkf Exp $ '\" .so man.macros .TH clipboard n 8.4 Tk "Tk Built-In Commands" @@ -90,6 +90,11 @@ the data is to be returned and should be an atom name such as STRING or FILE_NAME. \fIType\fR defaults to STRING. This command is equivalent to .QW "\fBselection get \-selection CLIPBOARD\fR" . +.RS +.PP +Note that on modern X11 systems, the most useful type to retrieve for +transferred strings is not \fBSTRING\fR, but rather \fBUTF8_STRING\fR. +.RE .SH EXAMPLES Get the current contents of the clipboard. .CS -- cgit v0.12