diff options
| -rw-r--r-- | generic/tclStubInit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index 41958f8..8b98a46 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -216,6 +216,10 @@ Tcl_WinTCharToUtf( } blen = Tcl_UniCharToUtf(*w, p); p += blen; + if ((*w >= 0xD800) && (blen < 3)) { + /* Indication that high surrogate is handled */ + blen = 0; + } w++; } if (!blen) { |
