diff options
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r-- | generic/tclEncoding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index 4d5743c..2095b4c 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.c @@ -2454,11 +2454,14 @@ UtfToUtfProc( } if (PROFILE_REPLACE(profile)) { ch = UNICODE_REPLACE_CHAR; + ++src; } else { /* TCL_ENCODING_PROFILE_TCL8 */ ch = UCHAR(*src); + char chbuf[2]; + chbuf[0] = UCHAR(*src++); chbuf[1] = 0; + TclUtfToUCS4(chbuf, &ch); } - ++src; } else { /* |