summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-27 15:21:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-27 15:21:16 (GMT)
commitbb5ffa4d6dd4518a1ce3d43f941f5ea766111418 (patch)
tree5bc0701b49839f4c2039e46686b5432d58c23b2d /generic/tkEntry.c
parent56bbfc9a93ab60e258275521f0e9230fab96815b (diff)
parent73b2c28849b73d0b903780b08c2836921cacc917 (diff)
downloadtk-bb5ffa4d6dd4518a1ce3d43f941f5ea766111418.zip
tk-bb5ffa4d6dd4518a1ce3d43f941f5ea766111418.tar.gz
tk-bb5ffa4d6dd4518a1ce3d43f941f5ea766111418.tar.bz2
Merge core-8-6-branch. More surrogate handling, e.g. in HandleIMEComposition()
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index ff3f134..9e25bed 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -3412,7 +3412,7 @@ ExpandPercents(
* list element. */
int number, length;
register const char *string;
- Tcl_UniChar ch;
+ int ch;
char numStorage[2*TCL_INTEGER_SPACE];
while (1) {
@@ -3445,7 +3445,7 @@ ExpandPercents(
before++; /* skip over % */
if (*before != '\0') {
- before += Tcl_UtfToUniChar(before, &ch);
+ before += TkUtfToUniChar(before, &ch);
} else {
ch = '%';
}
@@ -3465,7 +3465,7 @@ ExpandPercents(
string = Tk_PathName(entryPtr->tkwin);
break;
default:
- length = Tcl_UniCharToUtf(ch, numStorage);
+ length = TkUniCharToUtf(ch, numStorage);
numStorage[length] = '\0';
string = numStorage;
break;
@@ -3525,7 +3525,7 @@ ExpandPercents(
string = Tk_PathName(entryPtr->tkwin);
break;
default:
- length = Tcl_UniCharToUtf(ch, numStorage);
+ length = TkUniCharToUtf(ch, numStorage);
numStorage[length] = '\0';
string = numStorage;
break;