mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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,
|
multilen = WideCharToMultiByte(CP_ACP, 0, unitab+uindex, 1,
|
||||||
NULL, 0, NULL, NULL);
|
NULL, 0, NULL, NULL);
|
||||||
if (multilen != 1) {
|
if (multilen != 1) {
|
||||||
blen = sprintf(before, "{\\u%d", udata[uindex]);
|
blen = sprintf(before, "{\\uc%d\\u%d", multilen,
|
||||||
|
udata[uindex]);
|
||||||
alen = 1; strcpy(after, "}");
|
alen = 1; strcpy(after, "}");
|
||||||
} else {
|
} else {
|
||||||
blen = sprintf(before, "\\u%d", udata[uindex]);
|
blen = sprintf(before, "\\u%d", udata[uindex]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user