diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-15 20:25:46 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-15 20:25:46 (GMT) |
commit | 3c6f53cb71429832fe49f7c987955e4d31c5de1b (patch) | |
tree | 9998b7eefaf838d5d4013f48e5d84f9af4d0bc01 /unix/tkUnixFont.c | |
parent | 3b704f9324a447a8eb37aee870bb3f1a9d8a7426 (diff) | |
parent | ebac6eafdd16d8e1b81b3ea2b10149cb158faac2 (diff) | |
download | tk-3c6f53cb71429832fe49f7c987955e4d31c5de1b.zip tk-3c6f53cb71429832fe49f7c987955e4d31c5de1b.tar.gz tk-3c6f53cb71429832fe49f7c987955e4d31c5de1b.tar.bz2 |
Don't use TCL_ENCODING_STOPONERROR any more, it's TCL_ENCODING_PROFILE_STRICT now
Diffstat (limited to 'unix/tkUnixFont.c')
-rw-r--r-- | unix/tkUnixFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c index e2540db..6c45bc4 100644 --- a/unix/tkUnixFont.c +++ b/unix/tkUnixFont.c @@ -904,7 +904,7 @@ Tk_MeasureChars( } else { lastSubFontPtr = FindSubFontForChar(fontPtr, ch, NULL); familyPtr = lastSubFontPtr->familyPtr; - Tcl_UtfToExternal(NULL, familyPtr->encoding, p, next - p, 0, NULL, + Tcl_UtfToExternal(NULL, familyPtr->encoding, p, next - p, TCL_ENCODING_PROFILE_TCL8, NULL, (char *)&buf[0].byte1, sizeof(buf), NULL, &dstWrote, NULL); if (familyPtr->isTwoByteFont) { newX += XTextWidth16(lastSubFontPtr->fontStructPtr, |