X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/a7419ea4b837b23a36ea0eb71b0c24a31a49d3fc..ebb0a59087941283764805d47cebfb56ae13e428:/window.c?ds=sidebyside diff --git a/window.c b/window.c index a195cc6b..1ff3f288 100644 --- a/window.c +++ b/window.c @@ -3724,7 +3724,8 @@ void write_clip(wchar_t * data, int len, int must_deselect) multilen = WideCharToMultiByte(CP_ACP, 0, unitab+uindex, 1, NULL, 0, NULL, NULL); if (multilen != 1) { - blen = sprintf(before, "{\\u%d", udata[uindex]); + blen = sprintf(before, "{\\uc%d\\u%d", multilen, + udata[uindex]); alen = 1; strcpy(after, "}"); } else { blen = sprintf(before, "\\u%d", udata[uindex]);