projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a7419ea
)
Whoops - missed out a vital bit of RTF Unicode fallback handling
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 8 Nov 2001 09:20:36 +0000
(09:20 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 8 Nov 2001 09:20:36 +0000
(09:20 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1374
cda61777
-01e9-0310-a592-
d414129be87e
window.c
patch
|
blob
|
blame
|
history
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) {
- 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]);