mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Whoops - missed out a vital bit of RTF Unicode fallback handling
[originally from svn r1374]
This commit is contained in:
parent
7f1e73904a
commit
98948bf236
3
window.c
3
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]);
|
||||
|
Loading…
Reference in New Issue
Block a user