Comment out calls to removeNonAsciiChars. This makes it possible to
copy-paste non-ascii characters.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@297 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb_win32/Clipboard.cxx b/rfb_win32/Clipboard.cxx
index 96d1e94..867f885 100644
--- a/rfb_win32/Clipboard.cxx
+++ b/rfb_win32/Clipboard.cxx
@@ -126,7 +126,7 @@
} else {
CharArray unix_text;
unix_text.buf = dos2unix(clipdata);
- removeNonAsciiChars(unix_text.buf);
+ // removeNonAsciiChars(unix_text.buf);
notifier->notifyClipboardChanged(unix_text.buf, strlen(unix_text.buf));
}
} else {
@@ -162,7 +162,7 @@
// - Pre-process the supplied clipboard text into DOS format
CharArray dos_text;
dos_text.buf = unix2dos(text);
- removeNonAsciiChars(dos_text.buf);
+ // removeNonAsciiChars(dos_text.buf);
int dos_text_len = strlen(dos_text.buf);
// - Allocate global memory for the data