summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-01 11:03:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-01 11:03:25 (GMT)
commitd6a967c9d8c6cc6dc8d5792070e2c2349f6ce3d8 (patch)
treef457723f6c9c163d1c168a068b173aff785506a5 /win/tkWinKey.c
parentc1921c6eef90ee6e058c465fa2a61c2b9439454e (diff)
downloadtk-d6a967c9d8c6cc6dc8d5792070e2c2349f6ce3d8.zip
tk-d6a967c9d8c6cc6dc8d5792070e2c2349f6ce3d8.tar.gz
tk-d6a967c9d8c6cc6dc8d5792070e2c2349f6ce3d8.tar.bz2
Somewhat more progress on [a179564826]: Tk 8.6: prevent issues when encountering non-BMP Unicode characters.
Increase XMaxTransChars from 4 to 7, at the same time reducing the nbytes field from int to unsigned char. This makes more room to NULL-terminate the trans_chars array in the XEvent, even when it's 4 bytes in length. (fully binary compatible, since the nbytes field is not supposed to be accessed externally)
Diffstat (limited to 'win/tkWinKey.c')
-rw-r--r--win/tkWinKey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinKey.c b/win/tkWinKey.c
index 234a158..4130579 100644
--- a/win/tkWinKey.c
+++ b/win/tkWinKey.c
@@ -122,7 +122,7 @@ TkpGetString(
if (((keysym != NoSymbol) && (keysym > 0) && (keysym < 256))
|| (keysym == XK_Return) || (keysym == XK_Tab)) {
- len = Tcl_UniCharToUtf(keysym & 255, buf);
+ len = TkUniCharToUtf(keysym & 255, buf);
Tcl_DStringAppend(dsPtr, buf, len);
}
}