Sorry guys, testing Jan's latest change I'm totally confused now. It seems on my tablet that all Emojis are entered as surrogate pairs when typed into the Tk console window. The text rendering shows nice Emojis, however the string length is wrong when TCL_UTF_MAX=6 is in place. And when a selection is activated on Emojis the surrogate pairs become visible by two replacement characters. When I paste an Emoji sequence from e.g. an undroidwish (SDL2 based) into a plain wish, the string length is correct. I'm afraid this means "Go back to start, do not pass go", bummer.