~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle incoming SSH2_MSG_CHANNEL_REQUEST (by refusing all requests).
[sgt/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
a195cc6
..
1ff3f28
100644
(file)
--- 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) {
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]);
alen = 1; strcpy(after, "}");
} else {
blen = sprintf(before, "\\u%d", udata[uindex]);