summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-29 12:38:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-29 12:38:54 (GMT)
commit88ee425e30d88dd5cafc3f2387e5b5f50098517e (patch)
tree27b23d9828d8e560c051b9ff8b3130101c014b23 /generic/tkTextIndex.c
parent508dc0d9c60f4a9e75ebf487ef12167290509f71 (diff)
parent3bca7a22ca1dff514ae34de1506efc170620e0f0 (diff)
downloadtk-88ee425e30d88dd5cafc3f2387e5b5f50098517e.zip
tk-88ee425e30d88dd5cafc3f2387e5b5f50098517e.tar.gz
tk-88ee425e30d88dd5cafc3f2387e5b5f50098517e.tar.bz2
Fix [6c0d7aec67]: unicode text input Windows 8
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index 92ca03b..7aebc84 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -2298,9 +2298,9 @@ StartEnd(
int chSize = 1;
if (segPtr->typePtr == &tkTextCharType) {
- Tcl_UniChar ch;
+ int ch;
- chSize = Tcl_UtfToUniChar(segPtr->body.chars + offset, &ch);
+ chSize = TkUtfToUniChar(segPtr->body.chars + offset, &ch);
if (!Tcl_UniCharIsWordChar(ch)) {
break;
}
@@ -2343,9 +2343,9 @@ StartEnd(
int chSize = 1;
if (segPtr->typePtr == &tkTextCharType) {
- Tcl_UniChar ch;
- Tcl_UtfToUniChar(segPtr->body.chars + offset, &ch);
+ int ch;
+ TkUtfToUniChar(segPtr->body.chars + offset, &ch);
if (!Tcl_UniCharIsWordChar(ch)) {
break;
}