diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-09-29 12:38:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-09-29 12:38:54 (GMT) |
commit | 88ee425e30d88dd5cafc3f2387e5b5f50098517e (patch) | |
tree | 27b23d9828d8e560c051b9ff8b3130101c014b23 /generic/tkTextIndex.c | |
parent | 508dc0d9c60f4a9e75ebf487ef12167290509f71 (diff) | |
parent | 3bca7a22ca1dff514ae34de1506efc170620e0f0 (diff) | |
download | tk-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.c | 8 |
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; } |