diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-18 08:14:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-18 08:14:47 (GMT) |
commit | 7035421b1ebd6767e98f5052a626955bee5d761a (patch) | |
tree | 89232e8eaa3d2b083a6cc609ab4c8e1574cfcc2f | |
parent | 48cd8747a366cb72f8622bb65e6579499c6bf5a3 (diff) | |
download | tk-7035421b1ebd6767e98f5052a626955bee5d761a.zip tk-7035421b1ebd6767e98f5052a626955bee5d761a.tar.gz tk-7035421b1ebd6767e98f5052a626955bee5d761a.tar.bz2 |
remove printf("TkSelGetSelection\n");
-rw-r--r-- | macosx/tkMacOSXClipboard.c | 3 | ||||
-rw-r--r-- | macosx/tkMacOSXFont.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/macosx/tkMacOSXClipboard.c b/macosx/tkMacOSXClipboard.c index a5f0ba1..bdcccf9 100644 --- a/macosx/tkMacOSXClipboard.c +++ b/macosx/tkMacOSXClipboard.c @@ -123,7 +123,6 @@ TkSelGetSelection( int haveExternalClip = ([[NSPasteboard generalPasteboard] changeCount] != changeCount); - printf("TkSelGetSelection\n"); if (dispPtr && (haveExternalClip || dispPtr->clipboardActive) && selection == dispPtr->clipboardAtom && (target == XA_STRING || target == dispPtr->utf8Atom)) { @@ -138,7 +137,7 @@ TkSelGetSelection( if (string) { int utfSize; char *tclUni = NSStringToTclUni(string, &utfSize); - + /* * Re-encode the string using the encoding which is used in Tcl * when TCL_UTF_MAX = 3. This replaces each UTF-16 surrogate with diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 8350908..aeb90f8 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -109,7 +109,7 @@ static void DrawCharsInContext(Display *display, Drawable drawable, * When Tcl is compiled with TCL_UTF_MAX = 3 (the default for 8.6) it cannot * deal directly with UTF-8 encoded non-BMP characters, since their UTF-8 * encoding requires 4 bytes. - * + * * As a workaround, these versions of Tcl encode non-BMP characters as a string * of length 6 in which the high and low UTF-16 surrogates have been encoded * using the UTF-8 algorithm. The UTF-8 encoding does not allow encoding @@ -117,7 +117,7 @@ static void DrawCharsInContext(Display *display, Drawable drawable, * NString class will refuse to instantiate an NSString from the 6-byte * encoding. This function allows creating an NSString from a C-string which * has been encoded using this scheme. - * + * * Results: * An NSString, which may be nil. * @@ -302,7 +302,7 @@ FindNSFont( size = [defaultFont pointSize]; } nsFont = [fm fontWithFamily:family traits:traits weight:weight size:size]; - + /* * A second bug in NSFontManager that Apple created for the Catalina OS * causes requests as above to sometimes return fonts with additional |